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 Nathaniel Richand <nr...@gmail.com> on 2008/02/25 14:40:40 UTC

Don't send a tag in the xml flow

Hi,

I'm facing some problems with one of my webservices provider. This one want
that the null fields not to appear in the flow, besides the use of the
attribute xsi:nil.

He doesn' allow this :
<My_input>
   <a></a>
   <b></b>
</My_input>

Nor this :
<My_input>
   <a></a>
   <b xsi:nil />
</My_input>

But want :
<My_input>
   <a></a>
</My_input>


Here is the WSDL he provides :
<message name="My_input">
        <part name="a" type="xsd:string"></part>
        <part name="b" type="xsd:string"></part>
</message>

I cant't find how to do this with Axis. Is this a possibilité to change the
generation? Maybe a param to WSDL2JAVA ? Or maybe in the definition of the
type in xsd?

If anyone can help me...
Thank's

Re: Don't send a tag in the xml flow

Posted by Jinyuan Zhou <zh...@gmail.com>.
Are you sure are calling the right method?  In any case you can always try
to modify  the message by  message handlers.
Jack
On Mon, Feb 25, 2008 at 5:40 AM, Nathaniel Richand <nr...@gmail.com>
wrote:

> Hi,
>
> I'm facing some problems with one of my webservices provider. This one
> want that the null fields not to appear in the flow, besides the use of the
> attribute xsi:nil.
>
> He doesn' allow this :
> <My_input>
>    <a></a>
>    <b></b>
> </My_input>
>
> Nor this :
> <My_input>
>    <a></a>
>    <b xsi:nil />
> </My_input>
>
> But want :
> <My_input>
>    <a></a>
> </My_input>
>
>
> Here is the WSDL he provides :
> <message name="My_input">
>         <part name="a" type="xsd:string"></part>
>         <part name="b" type="xsd:string"></part>
> </message>
>
> I cant't find how to do this with Axis. Is this a possibilité to change
> the generation? Maybe a param to WSDL2JAVA ? Or maybe in the definition of
> the type in xsd?
>
> If anyone can help me...
> Thank's




-- 
Jinyuan Zhou
office phone: 818-575-9888 x439

Some people lived like they will never die
and died like they have never lived