cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with calling Webservice from Java Webdynpro

Former Member
0 Kudos

Hi,

I have a scenario where I need to call a Webservice through my Webdynpro application. I need to pass few parameters(of type string) and the Webservice is suppose to retrun a few records based on the input values.

When I run the webservice directly using the browser, the output is in XML format.

When I create a model for the webservice in webdynpro, the return value is a Node element of type java.lang.Object. From webdynpro, I am successfully able to make a call to the Webservice (as there is no exception with model execute command), but the return value is always null. I am not sure if the webservice is not returning any data or if I am not reading the correct context element. There is no documentation available for the webservice either.

Can anyone tell me what is that I am missing. Is it not possible for Webdynpro to call a webservice which can return only XML data?

Any help on this issue would be greatly appreciated.

Thanks,

Sudheer

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Sudheer,

You can refer to wiki link (& other links available at the end in this)

https://www.sdn.sap.com/irj/scn/wiki?path=/display/wdjava/faq-Models-AdaptiveWebService

Kind Regards,

Nitin

sanyev
Active Participant
0 Kudos

Hi Sudheer,

Go through [this|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1766] [original link is broken] [original link is broken] [original link is broken]; blog. This might help you.

Regards,

Sanyev