Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache SOAP newbie

 
Sachin Dere
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 :


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic