• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Apache SOAP newbie

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 :


 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic