Re: [SOAP] PHP5 SoapClient and Apache Axis interop
| From: | Mark Slater | Date: | Mon, 11 Apr 2005 02:09:17 +0000 |
| Subject: | Re: [SOAP] PHP5 SoapClient and Apache Axis interop | ||
| References: | 1 2 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-1839@lists.php.net to get a copy of this message | ||
There is no SOAP response. Apache Axis throws a java.lang.IncompatibleClassChangeError and (since its running in Tomcat), the response is basically a Tomcat error page (HTML).
I was hoping someone might have some experience (maybe an example of axis server and php client?) and know the incantation to make them talk to each other. This could be an Axis problem (I've posted to that user group as well, no responses so far), but it happens with RPC encoding or Document/literal encoding.... same error. Since the WSDL seems to be correct with either method, and Axis has been around longer, I'm leaning towards there being a problem with the PHP side; but again, that's just a guess.
I don't think I included it in my first message, but the $userService is created with:
$userService =
new SoapClient(
"https://localhost:8043/whisper-server/ws/UserService?wsdl",
array(
'trace' => 1,
'soap_version' => SOAP_1_2 ) );
Mark
On Apr 10, 2005, at 3:43 PM, George Schlossnagle wrote:
On Apr 10, 2005, at 3:02 PM, Mark Slater wrote:=================================================== Using the SoapClient, I've done this: $msgParams = array(The namespacing in the above request looks correct for your wsdl. Your wsdl's types section sets the targetNamespace to http://rpc.whisper.ucsc.edu, and username/password are not explicitly namespaced, so they should also be in http://rpc.whisper.ucsc.edu. Can you post the response you get to that message? George'username' => $this->username, 'password' => $this->password );$result = $userService->confirmCredentials( (object) $msgParams ); which generates this request: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelopexmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://rpc.whisper.ucsc.edu"><SOAP-ENV:Body> <ns1:confirmCredentials><ns1:username>123</ns1:username> <ns1:password>poi</ns1:password></ns1:confirmCredentials> </SOAP-ENV:Body> </SOAP-ENV:Envelope>