On Jan 9, 2008 5:37 PM, Corsin Capol <[EMAIL PROTECTED]> wrote:

> > Did you generate the Service using the wsdl2java tool. i.e. you start
> with
> > the wsdl file. or you generate the service with the classes i.e using
> POJOs.
>
> I genereated the service client with the wsdl2java tool.
>
> This are my tcpmon data...
>
> POST /axis2/services/cobexSMService HTTP/1.1
> Content-Type: application/soap+xml; charset=UTF-8;
> action="urn:getEmployee"
> User-Agent: Axis2
> Host: 127.0.0.1:8888
> Transfer-Encoding: chunked
>
> 93
> <?xml version='1.0' encoding='UTF-8'?>
>   <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope
> ">
>      <soapenv:Body />
>   </soapenv:Envelope>0
>
> --
>
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Content-Type: application/soap+xml;
> action="urn:getEmployeeResponse";charset=UTF-8
> Transfer-Encoding: chunked
> Date: Wed, 09 Jan 2008 12:04:11 GMT
>
> 270
> <?xml version='1.0' encoding='UTF-8'?>
>   <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope
> ">
>      <soapenv:Body>
>         <ns:getEmployeeResponse xmlns:ns="http://axis2.cobex.ch";
> xmlns:ax21="http://servicemanagement.cobex.ch/xsd";
> xmlns:ax22="http://base.cobex.ch/xsd";>
>            <ns:return type="ch.cobex.base.Employee">


check the response with the wsdl. because what wsdl2java do is to check the
response
is valid according to the wsdl schema. that attribute must be xsi:type.

thanks,
Amila.

>
>               <ax22:department>IT - Software Engineering</ax22:department>
>               <ax22:job>Software Architect</ax22:job>
>               <ax22:firstname>Hans</ax22:firstname>
>               <ax22:lastname>Example</ax22:lastname>
>               <ax22:mail>[EMAIL PROTECTED]</ax22:mail>
>               <ax22:personId>1</ax22:personId>
>            </ns:return>
>         </ns:getEmployeeResponse>
>      </soapenv:Body>
>   </soapenv:Envelope>
> 0
>
>
> Any idea?
>
> thanks,
> Corsin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.

Reply via email to