Re: [SOAP] ClassCastException
| From: | ales | Date: | Tue, 19 Aug 2003 09:26:10 +0000 |
| Subject: | Re: [SOAP] ClassCastException | ||
| References: | 1 2 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-958@lists.php.net to get a copy of this message | ||
Hi Chris,
thank for your interest. I cannot send link to the WSDL file because this
file is in local network. I send pieces of WSDL file which are related to
method "getEmployeeByLogin" and "getComparison":
<wsdl:definitions ...
targetNamespace="http://localhost:8080/axis/services/TestService"
xmlns:impl="http://localhost:8080/axis/services/TestService"
xmlns:tns1="urn:BeanService" ...>
<wsdl:types>
<schema targetNamespace="urn:BeanService"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="Employee">
<sequence>
<element name="id" nillable="true" type="xsd:string"/>
<element name="login" nillable="true" type="xsd:string"/>
<element name="name" nillable="true" type="xsd:string"/>
<element name="surname" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</schema>
<schema targetNamespace="http://localhost:8080/axis/services/TestService"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="ArrayOf_tns1_Employee">
<complexContent>
<restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType"
wsdl:arrayType="tns1:Employee[]"/>
</restriction>
</complexContent>
</complexType>
<complexType name="ArrayOf_xsd_string">
<complexContent>
<restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/>
</restriction>
</complexContent>
</complexType>
</schema>
</wsdl:types>
...
<wsdl:message name="getEmployeeByLoginResponse">
<wsdl:part name="getEmployeeByLoginReturn" type="tns1:Employee"/>
</wsdl:message>
<wsdl:message name="getComparisonResponse">
<wsdl:part name="getComparisonReturn" type="xsd:int"/>
</wsdl:message>
...
<wsdl:portType name="TestApp">
...
<wsdl:operation name="getEmployeeByLogin" parameterOrder="login">
<wsdl:input message="impl:getEmployeeByLoginRequest"
name="getEmployeeByLoginRequest"/>
<wsdl:output message="impl:getEmployeeByLoginResponse"
name="getEmployeeByLoginResponse"/>
</wsdl:operation>
<wsdl:operation name="getComparison" parameterOrder="employee1
employee2">
<wsdl:input message="impl:getComparisonRequest"
name="getComparisonRequest"/>
<wsdl:output message="impl:getComparisonResponse"
name="getComparisonResponse"/>
</wsdl:operation>
...
</wsdl:portType>
...
<wsdl:binding name="TestServiceSoapBinding" type="impl:TestApp">
...
<wsdlsoap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getEmployeeByLogin">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getEmployeeByLoginRequest">
<wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://impl.service.test.r2003.ab.sk"
use="encoded"/>
</wsdl:input>
<wsdl:output name="getEmployeeByLoginResponse">
<wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://localhost:8080/axis/services/TestService"
use="encoded"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getComparison">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getComparisonRequest">
<wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://impl.service.test.r2003.ab.sk"
use="encoded"/>
</wsdl:input>
<wsdl:output name="getComparisonResponse">
<wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://localhost:8080/axis/services/TestService"
use="encoded"/>
</wsdl:output>
</wsdl:operation>
...
</wsdl:binding>
...
</wsdl:definitions>
Ales
"Chris Coe" <info@intelligentstreaming.com> píse v diskusním príspevku
news:5.1.0.14.2.20030818195411.0334c828@mail.intelligentstreaming.com...
> At 18:46 18/08/2003, ales wrote:
> >Hello,
> >I have problem with PHP SOAP client which calls two web service methods.
> >First method takes as parameter string and returns object of type
> >'Employee'. Second method takes two parameters of type 'Employee' and
> >returns result of their comparison. Code:
>
> Hi Ales,
>
> Please can you post a link to the WSDL file you are using?
>
> Chris.
>