You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by John Baker <jb...@sasami.atomised.org> on 2005/07/11 15:18:05 UTC

Axis XML generation in requests

Hi,

Consider this XML fragment from an Axis client request:

<ns1:DatabaseID xsi:type="xsd:string">UNI7TEST</ns1:DatabaseID>
<ns1:UniformUserName xsi:type="xsd:string">crmtest</ns1:UniformUserName>
<ns1:UniformPassword xsi:type="xsd:string">crmtest</ns1:UniformPassword>

Is there a way to prevent Axis from including the xsi:type attributes?

Thanks,


John

Re: Axis XML generation in requests

Posted by Anne Thomas Manes <at...@gmail.com>.
If you're using RPC style, then you can add this parameter to your WSDD:

<parameter name="sendXsiTypes" value="false"/>

Anne

On 7/19/05, Anne Thomas Manes <at...@gmail.com> wrote:
> Use document style and define the element types in your WSDL.
> (If you don't define the types, it defaults to xsd:anyType, and then
> Axis must specify the type in the message.)
> 
> Anne
> 
> On 7/11/05, John Baker <jb...@sasami.atomised.org> wrote:
> > Hi,
> >
> > Consider this XML fragment from an Axis client request:
> >
> > <ns1:DatabaseID xsi:type="xsd:string">UNI7TEST</ns1:DatabaseID>
> > <ns1:UniformUserName xsi:type="xsd:string">crmtest</ns1:UniformUserName>
> > <ns1:UniformPassword xsi:type="xsd:string">crmtest</ns1:UniformPassword>
> >
> > Is there a way to prevent Axis from including the xsi:type attributes?
> >
> > Thanks,
> >
> >
> > John
> >
>

Re: Axis XML generation in requests

Posted by Anne Thomas Manes <at...@gmail.com>.
Use document style and define the element types in your WSDL. 
(If you don't define the types, it defaults to xsd:anyType, and then
Axis must specify the type in the message.)

Anne

On 7/11/05, John Baker <jb...@sasami.atomised.org> wrote:
> Hi,
> 
> Consider this XML fragment from an Axis client request:
> 
> <ns1:DatabaseID xsi:type="xsd:string">UNI7TEST</ns1:DatabaseID>
> <ns1:UniformUserName xsi:type="xsd:string">crmtest</ns1:UniformUserName>
> <ns1:UniformPassword xsi:type="xsd:string">crmtest</ns1:UniformPassword>
> 
> Is there a way to prevent Axis from including the xsi:type attributes?
> 
> Thanks,
> 
> 
> John
>