This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes Web Services and the fly likes Apache SOAP newbie Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Apache SOAP newbie" Watch "Apache SOAP newbie" New topic
Author

Apache SOAP newbie

Sachin Dere
Ranch Hand

Joined: Jan 14, 2003
Posts: 80
Hi guys,
I have to develop a SOAP Client to an existing WebService(of which i have no idea about).I have the sample WSDL file. Now my question is after installing Apache SOAP, do i still need to configure Tomcat? I just have to invoke a method and pass the parameters to existing WebService? what is that i need to configure here?
Also, is it ok to use a Java application? As i have to pick up the paramters from DB periodically.
Please help me here

thanks,
Sachin
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Apache SOAP website got a documentation on Writing RPC Clients, if i assume your wsdl uses rpc encodings. If you are writing only the client then you don't need to do any special configuration in tomcat, all you need is the soap jars on the client claspath.

The other easy way is to use
WSDL2Javawhich comes with Apache Axis, pretty easy to use. It will creare all the necessary client stubs(java files), which you can direclty use in your application.


Spritle Software Blogs
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Originally posted by Sachin Dere:

Also, is it ok to use a Java application? As i have to pick up the paramters from DB periodically.

Could you please explain this scenario a bit more.!!
Sachin Dere
Ranch Hand

Joined: Jan 14, 2003
Posts: 80
Hey Bala,
thanks for replying.Well,there is already MSSOAP toolkit installed at the server side. Now my problem is i have to use Apache Soap as RPC Client to talk to invoke the methods in Microsoft Soap WSDL file.For this i have to pick up the parameters from DB and post it to MSSOAP using Apache SOAP.
I managed to test a small code but it gave me this error :

The call failed:
Fault Code = SOAP-ENV:Server
Fault String = WSDLReader: The operation requested in the Soap message with soapAction (null) isn't defined in the WSDL file. This may be because it is in the wrong namespace or has incorrect case
what could be the reason here?
Also as per my understanding,I can use any programing language to invoke methods on the server.
is it true?
Here is my Code :


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Apache SOAP newbie