Vic Cekvenich wrote:


I am trying to write a hello world soap client to talk to any soap service on the web, just to ping and get a simplest message.
So I wrote attached.


But, I do not know how to match the Message and Response to a service.

Help? How do I write a class that matches, looking at WSDL?
tia,
.V



Hi Vic,

You'd need the Message and Response to define data values matching the WSDL service description, which can be found at http://www.asleep.net/soap/services.php?wsdl , then you'd need to define a JiBX binding for those classes to take them to and from XML. You should be able to do this by extracting the <schema> component of the WSDL to a separate file, then running Xsd2Jibx on that schema file.

Right now this step of extracting the schema and running Xsd2Jibx has to be done manually, but it should be pretty easy to make this automatic for most web services in the future. If you understand schema definitions you can also just skip Xsd2Jibx and write your own classes and binding definition for more flexibility, but Xsd2Jibx will give you a starting point even if you don't understand schema.

 - Dennis


------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ jibx-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to