Page 1 of 1

SOAP web services support in servoy

PostPosted: Tue Jan 30, 2018 12:44 pm
by aurobindo.parida
Is SOAP webservices not supported in servoy ?
I saw some posts which tell about kydome plugin, but that plugin looks to have been become obsolete.


Thanks.

Re: SOAP web services support in servoy

PostPosted: Tue Jan 30, 2018 7:06 pm
by juan.cristobo
Do you mean Servoy as client? You can use http plugin to call a webservice

Re: SOAP web services support in servoy

PostPosted: Tue Jan 30, 2018 7:53 pm
by aurobindo.parida
okay.
Yes as a client.
And when I get back the responses in XML do I need special plugins like to handle those ?

Re: SOAP web services support in servoy

PostPosted: Wed Jan 31, 2018 2:16 pm
by juan.cristobo
You can use XmlReader plugin, it ships with Servoy

Re: SOAP web services support in servoy

PostPosted: Wed Jan 31, 2018 4:14 pm
by aurobindo.parida
Okay thanks

Re: SOAP web services support in servoy

PostPosted: Wed Jan 31, 2018 6:22 pm
by sean
If the xml that you are consuming has complex types / lots of nested elements, you could consider using the WSDL2Java tool from Apache.
We've taken this approach for complex corporate services, like UPS/FedEx, etc.

It will generate Java classes that map to the service. You can compile them and and place them in your classpath (i.e. plugins dir)
Then all the HTTP and XML parsing and error handling is done for you and you get method calls, like:
Code: Select all
myRequest.execute().getAddress().getCity().getValue()


You don't need to know java, but you would need to install the JDK so you can compile the stubs.
Starting from scratch it should take no more than a few hours, but it's probably not worth doing for simpler SOAP services.

Re: SOAP web services support in servoy

PostPosted: Wed Jan 31, 2018 6:44 pm
by aurobindo.parida
sean wrote:If the xml that you are consuming has complex types / lots of nested elements, you could consider using the WSDL2Java tool from Apache.
We've taken this approach for complex corporate services, like UPS/FedEx, etc.

It will generate Java classes that map to the service. You can compile them and and place them in your classpath (i.e. plugins dir)
Then all the HTTP and XML parsing and error handling is done for you and you get method calls, like:
Code: Select all
myRequest.execute().getAddress().getCity().getValue()


You don't need to know java, but you would need to install the JDK so you can compile the stubs.
Starting from scratch it should take no more than a few hours, but it's probably not worth doing for simpler SOAP services.




Now that was going to be my next question on this.
And I know java. So It's great.