on 08-10-2006 7:19 AM
Hii All,
I have created a webservice using EJB to fetch the Data from the oralce DataBase, Now i want to access this webservice from MI Client(using Jsp Application). Can any one help me out in this regard as i m new to this thing, from where to start and how to proceed.
Thanks in Advance.
Devendra Phate.
hello deven,
i haven't tried consuming a ws from a jsp page...
anyway but i think it will work just like a standalone app.
first, you have to create the proxy/stub classes for your
WS basing on the WSDL. you can make use of wsdl2java tools
from Axis or you SAP <a href="http://help.sap.com/saphelp_nw04/helpdata/en/97/7d5e3c754e476ee10000000a11405a/frameset.htm">Java Proxy Generation</a> tool.
The latter however is somewhat pretty stick to XI. So I
would suggest you to use Axis tools.
e.g. you have Myapp.wsdl defined for your WS.
using the wsdl2java you will have (i think) 4 files.
MyappSoapBindingStub.java
MyappServiceLocator.java
MyappService.java
Myapp.java
now on your jsp page, you can invoke your WS as follows:
MyappService service = new MyappServiceLocator();
Myapp port = service.getMyapp();
String ret = port.<i>myMethod()</i> ;
the result here is just a string. but you might have a
different one dependeding on your definition. again im
not sure if this works, but might worth a try...
regards
jo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.