cancel
Showing results for 
Search instead for 
Did you mean: 

NWDS Java client creation

Former Member
0 Kudos

Hi Experts,

Could you provide the link/doc to create a Java client for the webservices(wsdl file) from NWDS?

Thanks & Regards

Sara

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
Former Member
0 Kudos

We can't create Java client from PI. Right?

Regards

Sara

Former Member
0 Kudos

Hi,

No in PI there is no feature available to create client that will test the Webservice.

You may use other tools like xmlSPY or soapUI. These are also helpful and easy to handle

Thanks

Swarup

Answers (3)

Answers (3)

Former Member
0 Kudos

hi,

you can create webservice using SAP PI,

but inorder to test the webservice you can use XML SPY software,

if you want to use NWDS to trigger webservice.. go thru this blog;

/people/riyaz.sayyad/blog/2006/05/10/consuming-xi-web-services-using-web-dynpro-150-ui-design-part-iii

Thanks,

Madhav

Note: Points if useful

Former Member
0 Kudos

Hi Sara,

There is a difference in the way NWDI generated the service interface for web services client in SP3.

Until SP3 we used tha SUN RI JAX-WS runtime. In order to deliver the WSDL location packaged with the archive we used ClassLoader.getResource(..).

SP3 uses SAP JAX-WS Runtime which extracts the WSDL Location from annotations in case of deployable client and from static variable when the clients are standalone.

However we made a distinct difference and changed the generation so deployable clients could no be instantiated with "new" and the default constructor.

It should be clarified that deplyable clients should be instantiated using JNDI lookup or injection wuth @WebServiceRef annotation.

So if you need a standalone WS client generate a standalone proxy from the NWDI and it will contain the required code for initialization.

If you are making a java ee application please use the instantiation methods advised by the jave ee specification (lookup or injection).

Check these articles

http://pt.sun.com/sunnews/events/2006/javapt/pdf/SAP_JavaPT06_16102006.pdf

http://www.sapag.co.in/Portal-HOW-to/How%20to%20Configure%20the%20J2EE%20Engine%20Deployment%20Descr...

https://admin.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/309c816e-7c51-2a10-05b6-9e0151...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90d95d37-3f65-2a10-8fa9-a13738c9...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6b5e9a90-0201-0010-39bd-ca7430d6...

Hope this help.

Regards,

Suryanarayana

Former Member
0 Kudos

Refer from page no - 41

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c2188ae5-0601-0010-dd93-c23e381e...

You need to create deployable proxy where in you have to give your WSDL file. Refer to the document