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/ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
