SOAP web services support in servoy

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

SOAP web services support in servoy

Postby aurobindo.parida » Tue Jan 30, 2018 12:44 pm

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.
aurobindo.parida
 
Posts: 15
Joined: Tue Apr 25, 2017 2:42 pm

Re: SOAP web services support in servoy

Postby juan.cristobo » Tue Jan 30, 2018 7:06 pm

Do you mean Servoy as client? You can use http plugin to call a webservice
Juan
Madrid (Spain)

Servoy 7.4.x - MySQL / SQL Server 2008-2016
Windows 10 Pro
juan.cristobo
 
Posts: 184
Joined: Thu Apr 19, 2012 9:12 am

Re: SOAP web services support in servoy

Postby aurobindo.parida » Tue Jan 30, 2018 7:53 pm

okay.
Yes as a client.
And when I get back the responses in XML do I need special plugins like to handle those ?
aurobindo.parida
 
Posts: 15
Joined: Tue Apr 25, 2017 2:42 pm

Re: SOAP web services support in servoy

Postby juan.cristobo » Wed Jan 31, 2018 2:16 pm

You can use XmlReader plugin, it ships with Servoy
Juan
Madrid (Spain)

Servoy 7.4.x - MySQL / SQL Server 2008-2016
Windows 10 Pro
juan.cristobo
 
Posts: 184
Joined: Thu Apr 19, 2012 9:12 am

Re: SOAP web services support in servoy

Postby aurobindo.parida » Wed Jan 31, 2018 4:14 pm

Okay thanks
aurobindo.parida
 
Posts: 15
Joined: Tue Apr 25, 2017 2:42 pm

Re: SOAP web services support in servoy

Postby sean » Wed Jan 31, 2018 6:22 pm

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.
Software Engineer
Servoy USA
sean
 
Posts: 97
Joined: Mon May 21, 2007 6:26 pm
Location: USA

Re: SOAP web services support in servoy

Postby aurobindo.parida » Wed Jan 31, 2018 6:44 pm

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.
aurobindo.parida
 
Posts: 15
Joined: Tue Apr 25, 2017 2:42 pm


Return to Programming with Servoy

Who is online

Users browsing this forum: Google [Bot] and 5 guests

cron