Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Consuming SOAP webservices Play framework 2.1.2

Hi i m new to play framework. There are SOAP based java web services running under jetty server in my back end cluster. I m developing a web based Application using play 2.1.2 which should call the SOAP web services running in the back end cluster.

I searched through google and found some links but I couldnt make out from them http://playframework.wordpress.com/2010/08/15/web-services-using-play/

Can someone tell me what should be the code or how i should write to call the SOAP web services in play framework 2.1.2?

Thanks

like image 596
Santhosh Avatar asked Jul 25 '13 05:07

Santhosh


Video Answer


2 Answers

I came across this library:

http://downloads.typesafe.com/rp/play-soap/SbtWsdl.html

Even I'm faced with a situation where I have to consume SOAP based web services from within my Play application. My plan is to use the Play SOAP library. Give it a try!

like image 26
joesan Avatar answered Oct 12 '22 22:10

joesan


Play2 only supports making call to REST web services using standard GET and POST arguments. If you want to work with SOAP webservices, they use a specific XML format and their parameters are defined by WSDL and XSD files. To call SOAP services within Play2, you'll have to use a SOAP client library for Scala such as ScalaXB

I've been attempting this myself for a project, but I ran into a compilation error using Scalaxb and posted it on their issue tracker: https://github.com/eed3si9n/scalaxb/issues/235

like image 123
djsumdog Avatar answered Oct 12 '22 22:10

djsumdog