on 06-27-2009 2:04 PM
Hello,
I'm using SAP Trial Versions NW CE 7.1 SP5 and EhP1 for CE 7.1. I would like to consume ABAP Web Service in an Adaptive WebService Model and need to set/configure destination in Visual Admin Tool.
However there is no Visual Admin. I tried searching for go.bat in my whole hard disk, without success.
Finally to work around it I tried to provide WSDL itself as follows:
1) First Method
I downloaded WSDL to local directory and provided it while creating a model -> SUCC
I deployed and run the WS application -> FileNotFoundException occured. However the WSDL file configured in the Model exists and is not protected anyhow.
2) Second Method
I provided the HTTP link to the WSDL file of my ABAP web service while creating a model-> SUCC
I tried to deploy and run the application -> ERR because could not connect to the HTTP link provided(as it is basic authentication protected)
So I hard coded the sap-user and sap-password in the properties of the model. Deployment and Run was SUCC. However while trying to execute the web service request 401 unauthorized error occured because in the WSDL file there is a destination http://<server>:<port>. and there are no credential so the application cannot connect.
Could You please help me out with this one?
I would either need to solve the FileNotFoundException so I could hard code the sap-user and sap-password in the local WSDL file, or I would set connection credentials somewhere( where if not in Visual Admin) to be able to get rid of this 401 unauthorized error.
any suggestions?
best regards
simon:)
============================
After trying out some other possibilities I was able to authenticate the connection with:
wdContext.currentRequest_CourseByTitleQueryResponse_InElement()
.modelObject().setInvokerProperty(
javax.xml.rpc.Stub.USERNAME_PROPERTY, "user");
wdContext.currentRequest_CourseByTitleQueryResponse_InElement()
.modelObject().setInvokerProperty(
javax.xml.rpc.Stub.PASSWORD_PROPERTY, "********");
It is however still not solved as there has to be a possibility to set a destination somewhere. Otherwise this trial version is not very useful for such exercises.
best regards
simon:)
Edited by: Simon P. Bolek on Jun 27, 2009 3:45 PM
There is no Visual Admin tool in CE versions. Use the web based NWA tool (Netweaver Administrator) to do every configuration that you have been doing in Visual Admin in the earlier Netweaver versions.
Log on to: http://<host>:<port>/nwa (with Administrator credentials).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank You I had tried that before and after your post I tried that again.
The first time I did that under:
http://<host>:<port>/nwa logged in as (Administrator/****)
->Configuration Management -> Security(or Infrastructure) -> Destinations
but it did not work, I could not ping my destination I created.
And today I went to:
http://<host>:<port>/nwa logged in as (Administrator/****)
-> SOA Management -> Destination Template Management
again and corrected the URL in the WSDL destination I had created a couple of days before.
After that I was able to connect to my ABAP Web Service without any problems whatsoever.
Thank You for the hint though!
best regards
simon:)
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.