if you send a self closing tag to Axis2, it will work fine. But if you
want Axis2 to send only self closing tags, I do not think it it there.
XML spec give us the freedom of send <foo/> or <foo></foo> as we see
fit.

to figure out what is going on, you have to look at axiom code.
--Srinath

On Wed, Sep 8, 2010 at 8:36 AM, Rama Mohan Reddy <[email protected]> wrote:
> Thank you Srinath for your response.
>
> With current version of Axis 2.0(JAX-WS Reference Implementation), You would
> like to confirm it's not implemented?...
>
> Am I Right?.
>
> According to W3C school, it was mentioned that we need to support
> self-closing tags.
>
> Axis 1.x is supporting self closing tags(We had tried with Axis 1.2 and 1.3
> versions), from Axis 1.4(Axis 2.0- JAX-WS..Imp), it's giving us the
> challenge.
>
> Appreciate all your support!.
>
> Thanks,
> Ram
>
> On Wed, Sep 8, 2010 at 7:07 AM, Srinath Perera <[email protected]>
> wrote:
>>
>> I do not know a way to do this with Axis2. </employee> is valid XML,
>> and I do not think we have incorporated what you asked for.
>>
>> In the future please try axis user/dev lists
>> --Srinath
>>
>>
>> On Tue, Sep 7, 2010 at 3:31 PM, Rama Mohan Reddy <[email protected]>
>> wrote:
>> > Hi All, Good Morning!. Hope you are doing great.
>> >
>> > We are using Axis 2.x(with JAX-WS) to generate the WSDL stubs and when
>> > we
>> > try to generate request xml, for some of the
>> > elements we are generating non-self closing tags and they are understood
>> > by
>> > one of our travel partners as OTA(Open Travel) does not understand
>> > these.
>> >
>> > <?xml version="1.0" encoding="UTF-8"?>
>> >
>> > <soapenv:Envelope
>> > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>> >
>> >                 <soapenv:Body>
>> >
>> >                                 <InventoryRequest
>> >
>> >
>> >
>> > xmlns="http://www.americanexpress.com/schemas/as/loyalty/shoppingcart/inventory/ws/request/v1/";
>> >
>> >
>> >
>> > xmlns:ns2="http://www.americanexpress.com/schemas/as/loyalty/shoppingcart/inventory/ws/response/v1/";>
>> >
>> >                                                 <employee src="src"
>> > alt="alt" />
>> >
>> >                                 </InventoryRequest>
>> >
>> >                 </soapenv:Body>
>> >
>> > </soapenv:Envelope>
>> >
>> >
>> >
>> >
>> >
>> > Request xml in tcp/ip monitor:  We Should not get </employee> where we
>> > are
>> > getting from Axis 2.x
>> >
>> >
>> >
>> > <?xml version="1.0" encoding="UTF-8"?>
>> >
>> > <soapenv:Envelope
>> > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>> >
>> >                 <soapenv:Body>
>> >
>> >                                 <InventoryRequest
>> >
>> >
>> >
>> > xmlns="http://www.americanexpress.com/schemas/as/loyalty/shoppingcart/inventory/ws/request/v1/";
>> >
>> >
>> >
>> > xmlns:ns2="http://www.americanexpress.com/schemas/as/loyalty/shoppingcart/inventory/ws/response/v1/";>
>> >
>> >                                                 <employee alt="alt"
>> > src="src"></employee>
>> >
>> >                                 </InventoryRequest>
>> >
>> >                 </soapenv:Body>
>> >
>> > </soapenv:Envelope>
>> >
>> > Thanks
>> > Ram
>> > +91-8008777747
>> >
>>
>>
>>
>> --
>> ============================
>> Srinath Perera, Ph.D.
>>    WSO2 Inc. http://wso2.com
>>    Blog: http://srinathsview.blogspot.com/
>
>
>
> --
> Thanks
> Ram
> +91-8008777747
>



-- 
============================
Srinath Perera, Ph.D.
   WSO2 Inc. http://wso2.com
   Blog: http://srinathsview.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to