File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Using SOAP with J2EE Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Using SOAP with J2EE Application " Watch "Using SOAP with J2EE Application " New topic
Author

Using SOAP with J2EE Application

Jyothi Lalitha
Greenhorn

Joined: May 27, 2010
Posts: 7
Hi

Can somebody help me out with this pleaseeeeeeeeeeeeee...

I want to create a sample program to know how Java interacts with SOAP web service.
How Application Server can communicate with the Web Service and how things work.

How does a client send messages to SOAP web service and how is the response received in J2EE environment (App Server)?

Please explain me along with the envt which i have to install. A sample program to add 2 numbers would do...


pleaseeeeeeeeeee help me out

Thanks in advance


Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41076
    
  43
Please explain me along with the envt which i have to install. A sample program to add 2 numbers would do.

That example is probably part of every single SOAP stack's tutorial/user guide. (I know it is for Axis2.) So you could just download Axis2 and work through its user guide; all sample code you need are part of the Axis2 distribution.

It really goes beyond what a forum like this can do, to ask for complete step-by-step instructions when those are so readily available for all major SOAP implementations.


Ping & DNS - my free Android networking tools app
Jyothi Lalitha
Greenhorn

Joined: May 27, 2010
Posts: 7
Actually i have installed J2EE 1.4 SDK App server and created an interface and implemting class as explained here http://java.sun.com/developer/technicalArticles/J2EE/j2ee_ws/

I followed all the steps till step 5 (Packaging and Deploying the Service) .

I was unable open the link http://localhost:8080/math-service/math. Its giving file not found 404 error.

No idea about the error. can anyone help me.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41076
    
  43
What do you expect at that URL? The addresses both of the WSDL and of the actual service are different (as mentioned in that article).
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Here http://netbeans.org/kb/docs/websvc/jax-ws.html you have a complete tutorial, including a web service and, among other things, two different JavaEE clients.
If you download NetBeans, then you'll get everything; development environment, application server (GlassFish) with a web service stack built in. Absolutely no need to think!
Best wishes!

P.S. I assume you use J2EE in a way that does not imply that you have to use a Java version earlier than 5.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using SOAP with J2EE Application
 
Similar Threads
SCDJWS Beta!!!!!!
SOAP with attachments service & client example
SOAP logging mechanism
Help needed for testing web service
wsdl and xsd.