I've gotten past my schema validation error by using the XMLBeans data
binding.  XMLBeans data binding option did NOT insert the xmlns="" attribute
however, it did generate XML that passed the web service validation.

Thanks,
Rod

On Wed, Mar 9, 2011 at 11:36 AM, Rod Biresch
<[email protected]>wrote:

> I'm upgrade an old Axis1 client to Axis 2 ver. 1.5.4.  I was able to
> refactor the code just fine and ran some tests against the web service.  It
> turns out that I have a problem with one xml element.  The element is
> missing xmlns="", which is causing a validation error on the server.  If I
> simply modify the payload and add only that xmlns="" attribute to the Order
> xml element (i.e. <Order xmlns="">) the payload validates and the web
> service works fine.
>
> I assume the WSDL controls how the code is generated to render this
> element.  A part of the WSDL...
>
> <s:schema elementFormDefault="qualified" targetNamespace="http://blah/blah
> ">
> ...
>     <s:element minOccurs="0" maxOccurs="1" form="unqualified" name="Order">
> ...
>
> So, the question is how can I have Axis2 send the <Order xmlns=""> instead
> of <Order> ?
>
> Oh, I generated the code using the following command:
>
> $ wsdl2java.sh -uri sample.wsdl -p <package name> -d adb -s
>
> btw...the Axis1 client works fine and produces <Order xmlns=""> in the
> payload.
>
> Thanks in advance,
> Rod
>

Reply via email to