axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Moez Benmbarka <moez.benmba...@cryptolog.com>
Subject Re: formatting the soap response ?
Date Wed, 13 Aug 2008 08:12:10 GMT
Hi,

I think the type attributes are due to the use of the WSDL RPC/Encoded 
style in your web service.
To receive the response you want, you should use a wrapped 
Document/Literal style.
Look at this tutorial for choosing an appropriate WSDL style : 
http://www-128.ibm.com/developerworks/webservices/library/ws-whichwsdl/

Regards,
Moez BM

pierre betz wrote:
> Hi everybody, I have a little .. important question :
>
> here is the response i retrieve when I call my web service :
>
> <?xml version='1.0' encoding='utf-8'?>
> <soapenv:Envelope 
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>  <soapenv:Body>
>   <ns3:SearchVslUserResponse xmlns:ns3="http:/localhost/User/operations/">
>    <VslUserList xmlns:ns2="http:/localhost/schema/VSLUserTypes" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
> xsi:type="ns2:VslUserListType">
>  
>     <VslUser xsi:type="ns2:VslUserType">
>      <UserId>PERSONNE____________0000000774</UserId>
>     </VslUser>
>
>    </VslUserList>
>   </ns3:SearchVslUserResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
>
> As you can see, the field <VslUser> as the xsi:type="ns2:VslUserType" 
> in the braket...
>
> My question, really simply, is : how can I have just the response like 
> taht : without the xsi:type everywhere ?
>
> <?xml version='1.0' encoding='utf-8'?>
> <soapenv:Envelope 
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>  <soapenv:Body>
>   <ns3:SearchVslUserResponse xmlns:ns3="http:/localhost/User/operations/">
>    <VslUserList>
>  
>     <VslUser>
>      <UserId>PERSONNE____________0000000774</UserId>
>     </VslUser>
>
>    </VslUserList>
>   </ns3:SearchVslUserResponse>
>  </soapenv:Body>
>
>
> ? any ideas ?
>


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message