Skip to Content
avatar image
Former Member

Import adaptive Web service model

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Feb 10, 2010 at 11:17 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 10, 2010 at 11:19 AM

    Hi

    Have a look on this answered thread

    1.[Exception on execution of web service with WSDL URL|Exception on execution of web service with WSDL URL 'http://ctsinpunsap:500;

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

    Best Regard

    Satish Kumar

    Add comment
    10|10000 characters needed characters exceeded