Re: [SOAP] ClassCastException

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
5.1.0.14.2.20030818195411.0334c828@mail.intelligentstreaming.com">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.
>



-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux