imindeu / play-cxf

Apache CXF custom transport module for using SOAP with Play Framework.
Apache License 2.0
35 stars 34 forks source link

javax.xml.ws.soap.SOAPFaultException: Play! Transport doesn't support client operation mode! #9

Open mohammadnaseri opened 8 years ago

mohammadnaseri commented 8 years ago

In my project, I have to utilize services like this :

 http://212.16.81.29:8011/MaliatWS.asmx?wsdl 

As you mentioned in your guidance, we have the following dependency in build.sbt :

 libraryDependencies += "org.apache.cxf" % "cxf-rt-frontend-jaxws" % "3.1.2"

Unfortunately, this dependency causes problem for using that service. and it shows the following exception :

 javax.xml.ws.soap.SOAPFaultException: Play! Transport doesn't support client operation mode!

When I omit that dependency, there is no problem. But for SOAP service we need that dependency.

kustra commented 8 years ago

I've pushed a new sample that demonstrates this. Have a look at the applicationContext.xml file and the build.sbt new dependency.

NOTE that this is only a workaround. It will likely change in a future version. Also when using the Java-first approach, the generated WSDL will disable SoapUI's automatic test request generation because it uses a custom transport ID.

JamesMcIntosh commented 6 years ago

-