This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.
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.!!
Joined: Jan 14, 2003
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 :