cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a simple client by consuming a WSDL in NWDS

Former Member
0 Kudos

Hi Guys,

I have a task of creating a client in NWDS by consuming a WSDL file.Could kindly suggest the links or the simple methods.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Tauseef,

following the rules of CAF you have to include your webservice as an external service on the cas level.

1) create an caf project.

2) under the external section right mouse click

3) import webservice

and go straight forward...

best regards. jens

Answers (7)

Answers (7)

Former Member
0 Kudos

The reason or the above is i was using NWDS sp1,wherein the feature is available in sp3

Former Member
0 Kudos

Hi Ivaylo,

Thanks for ur response..

In J2EE perspective ,I have imported the wsdl for sales order from remote/file system,when i validatethe wsdl it shows error.

when i try to generate client it gets the the java classes in the src folder.

Now how do i run the application??

do i still have to code something???

or run it as jsp after writing the code for the same.

Anxiously awaiting reply

Former Member
0 Kudos

Hi Ivalyo,

Thanks for the links,

I have completed the creation of the proxies,

Im having a bit of a problem with the code part of the JSP.

Any documnets to help on the same.

Former Member
0 Kudos

Hi Tauseef,

the page Creating Web Service Client Applications (see link in the above posts) contains the code already. The only difference if you call it from a JSP is that you can't use the annotation @WebServiceRef to inject the service. Therefore, you'd have to use use lookup to get it, e.g.

InitialContext ctx = new InitialContext();

   CurrencyExchangeService obj = (CurrencyExchangeService) 

      ctx.lookup("java:comp/env/ExchangeService");

Hope this helps!

Former Member
0 Kudos

Hi,

I did go through the links u have provided,

In creating web proxy,the help document says keep the cursor at 'Develop Client' position and a blog by Mr Borris sez keep it at 'Start Client'.

Pls clarify

Former Member
0 Kudos

Hi,

I would like to create the client in J2EE perspective,

i have imported the wsdl,

now how do i consume the wsdl(webservice)??

Former Member
0 Kudos

Hi,

check the following two pages in the documentation:

<a href="http://help.sap.com/saphelp_nwce10/helpdata/en/45/100c6be9f87201e10000000a155369/frameset.htm">Creating Web Service Proxies</a>

<a href="http://help.sap.com/saphelp_nwce10/helpdata/en/45/113a1221337249e10000000a155369/frameset.htm">Creating Web Service Client Applications</a>

Former Member
0 Kudos

Hi Jan,

thanks a ton

jan_rauscher
Advisor
Advisor
0 Kudos

Hi,

You can find <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/11669cea-0c01-0010-63b2-b98c35b1b370">here</a> a tutorial how a web service can be imported into a CAF project. Don't be confused that the tutorial talks about SAP CAF 7.0 (under SAP NetWeaver 2004s), under SAP NetWeaver CE 7.1, the procedure to import and use web services into CAF projects (in NWDS) does not differ very much.

Regards,

Jan