on 02-10-2010 10:55 AM
Hi,
to create a model based on the external web service with HTTP authorization.
Do the following:
1. Create a model based on the wsdl description
2. Then try to invoke a method of this service. All methods require HTTP authentication. After the call I get an error:
"Exception on execution of web service with WSDL URL"
calling code is as follows:
SynergyCenterTaskServiceModel model = new SynergyCenterTaskServiceModel();
Request_GetTaskStat request2 = new Request_GetTaskStat(model);
wdContext.nodeRequest_GetTaskStat().bind(request2);
try {
request2.setInvokerProperty(Stub.USERNAME_PROPERTY, "****");
request2.setInvokerProperty(Stub.PASSWORD_PROPERTY, "****");
request2.execute();
wdContext.nodeResponse().invalidate();
}
catch (Exception e) {
wdComponentAPI.getMessageManager().raiseException(e.getMessage(), true);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
to gayathri kavi:
Tell me more as a wrapper
to satish jhariya:
I read what is on these links, made as it is written:
request2.setInvokerProperty(Stub.USERNAME_PROPERTY, "****");
request2.setInvokerProperty(Stub.PASSWORD_PROPERTY, "****");
But still it did not help. I tested the other services, which also requires authentication, and it worked. But the service was located on the WEB AS. Now I need to call an external service (((
Hi,
Create a wrapper for the external service using CAF and then import the webservice in your WebDynpro DC using Adaptive Web Service Model.
Regards,
Gayathri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
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.