# SOAP web services support in servoy

**URL:** <https://forum.servoy.com/t/soap-web-services-support-in-servoy/19586>\
**Category:** Classic Servoy\
**Created:** [January 30, 2018, 10:44am UTC](https://forum.servoy.com/t/soap-web-services-support-in-servoy/19586 "2018-01-30T10:44:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![aurobindo.parida](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@aurobindo.parida](https://forum.servoy.com/u/aurobindo.parida)\
**Post date:** [January 30, 2018, 10:44am UTC](https://forum.servoy.com/t/soap-web-services-support-in-servoy/19586/1 "2018-01-30T10:44:48Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![juan.cristobo](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@juan.cristobo](https://forum.servoy.com/u/juan.cristobo)\
**Post date:** [January 30, 2018, 5:06pm UTC](https://forum.servoy.com/t/soap-web-services-support-in-servoy/19586/2 "2018-01-30T17:06:20Z")

</div>

Do you mean Servoy as client? You can use http plugin to call a webservice

---

<div class="post-metadata">

**Author:** ![aurobindo.parida](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@aurobindo.parida](https://forum.servoy.com/u/aurobindo.parida)\
**Post date:** [January 30, 2018, 5:53pm UTC](https://forum.servoy.com/t/soap-web-services-support-in-servoy/19586/3 "2018-01-30T17:53:20Z")

</div>

okay.  
Yes as a client.  
And when I get back the responses in XML do I need special plugins like to handle those ?

---

<div class="post-metadata">

**Author:** ![juan.cristobo](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@juan.cristobo](https://forum.servoy.com/u/juan.cristobo)\
**Post date:** [January 31, 2018, 12:16pm UTC](https://forum.servoy.com/t/soap-web-services-support-in-servoy/19586/4 "2018-01-31T12:16:17Z")

</div>

You can use XmlReader plugin, it ships with Servoy

---

<div class="post-metadata">

**Author:** ![aurobindo.parida](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@aurobindo.parida](https://forum.servoy.com/u/aurobindo.parida)\
**Post date:** [January 31, 2018, 2:14pm UTC](https://forum.servoy.com/t/soap-web-services-support-in-servoy/19586/5 "2018-01-31T14:14:00Z")

</div>

Okay thanks

---

<div class="post-metadata">

**Author:** ![sdevlin](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/sdevlin/32/4488_2.png) [@sdevlin](https://forum.servoy.com/u/sdevlin)\
**Post date:** [January 31, 2018, 4:22pm UTC](https://forum.servoy.com/t/soap-web-services-support-in-servoy/19586/6 "2018-01-31T16:22:35Z")

</div>

If the xml that you are consuming has complex types / lots of nested elements, you could consider using the [WSDL2Java](http://cxf.apache.org/docs/overview.html) 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:

```auto
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.

---

<div class="post-metadata">

**Author:** ![aurobindo.parida](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@aurobindo.parida](https://forum.servoy.com/u/aurobindo.parida)\
**Post date:** [January 31, 2018, 4:44pm UTC](https://forum.servoy.com/t/soap-web-services-support-in-servoy/19586/7 "2018-01-31T16:44:53Z")

</div>

> sean:  
> If the xml that you are consuming has complex types / lots of nested elements, you could consider using the [WSDL2Java](http://cxf.apache.org/docs/overview.html) 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:
> 
> ```auto
> 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.
