cancel
Showing results for 
Search instead for 
Did you mean: 

Import adaptive Web service model

Former Member
0 Kudos

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);
}

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member185086
Active Contributor
0 Kudos

Hi

Have a look on this answered thread

1.[Exception on execution of web service with WSDL URL|;

2.[Common checks for WS|http://wiki.sdn.sap.com/wiki/display/WDJava/FAQ-Models-AdaptiveWebService]

Best Regard

Satish Kumar

Former Member
0 Kudos

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 (((

Former Member
0 Kudos

Base using CAF, tried to import the service:

External Service Configuration -> Service Registry -> Import new service

but got the following error:

Service could not be imported: Invalid wsdl schema unhandled complex type structure (probably any)

Former Member
0 Kudos

Hi,

Try to import the external service using "Remote Location or File System" instead of Service Registry. Place the Binding WSDL of the external service and check whether you are able to import the Service.

Hope it Helps.

Regards,

Gayathri.

Former Member
0 Kudos

When I load the WSDL from the local file system, then it is loaded, but not executed.

When I try to load the WSDL from the URL I get the following:

Link: [ERROR LOG|http://62.149.5.84.nyud.net/i4/de/4c/5d1e4a500d48bb7eae0d4c22c516.gif]

Former Member
0 Kudos

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