cancel
Showing results for 
Search instead for 
Did you mean: 

Adaptive Web Service won't work

Former Member
0 Kudos

Hi,

i'm currently developing an application using web dynpro JAVA and having some Problems with including a webservice. The Webservice takes a ID as argument and returns a detailed record with the Sales corresponding to this id. I'm using SAP NetWeaver 7.1 EhP 1 SP00 PAT0000.

I performed the following steps:

1. Imported the Model through a wsdl-File

2. Created a Logical Destination for this Webservice on my AS

3. I used the "Service Controller" - Template to generate the Context Bindings and the method for invoking the webservice.

4. I created a simple Form for entering the ID and a button whos actionmethod invokes the webservice.

5. Then when i'm deploying the project everything works fine until i click on the button and invoke the webservice. Following error is displayed.

Exception on execution of web service on destination SalesOrder_EXEC for operation SalesOrderByIDQueryResponseIn in interface {http://sap.com/xi/NWDemo}SalesOrderByIDQueryResponseIn

It would be really nice if someone has a solution or at least some ideas.

Greets

Carl Heckmann

View Entire Topic
Former Member
0 Kudos

Hi Carl,

After importing the model in Web Dynpro and generating the context binding with service controller you have to initialize the request part (request node and all subnodes in the request node) of the model in the wdDoinit method of the component controller. After this you can perform step 4 and deploy your application.

Please check the following links for detailed information.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2076831c-efce-2910-7582-ff2b4495...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0eeea30-f1ce-2910-c180-d5758441...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50038f8d-fbce-2910-e289-92154874...

Regards,

Yasar