Skip to main content

PHP programm unable to consume Web Service on Glassfish

1 reply [Last post]
vandunen
Offline
Joined: 2012-01-19
Points: 0

I try to consume a web service provided by a Java 1.6 based web application under glassfish 3.1 / windows server 2003. The web services is to be consumed by php script under linux which retrieves the WSDL by using the library php2WSDl.
Well the php script tries to call a web services method but does not
get any response like an acknowledge on the TCP level. The web services bases on SOAP 1.1
The same web application deployed on Tomcat 6.0 gives a response to the PHP script and
executes its progammed routine. What might be the problem?
If I use the web services META data like @WebMethod glassfish executes the the method but @Webparam parameters are always null like java.lang.String and java.util.Date though the parameters are filled by the php.

What might be the reason for this problem?
What solution to this problem would you suggest?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vandunen
Offline
Joined: 2012-01-19
Points: 0

The answer is simple: The aforementioned php program used to use SOAP 1.1. to send messages.
The JAX-WS interface expected 1.2. The annotation @BindingType I used to tell the interface to
expect SOAP.1.1 was written falsely like @BindingType(SOAPBinding.SOAP11HTTP_BINDING) though the compiler did not complain.
But it supposed to be @BindingType(value=SOAPBinding.SOAP11HTTP_BINDING).
That's it.