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
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.
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 :
Stop it! You're embarassing me! And you are embarrassing this tiny ad!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop