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 Ni...@fastmobile.com on 2007/01/02 22:24:37 UTC

Prefix [xsi] used without binding it to a namespace

Hi,
I'm still very much an axis2 newbie, so sorry if this is a dumb
question:
 
I'm getting the above error returned from a third party server.
This makes sense to me because the soap envelope looks like this:
 
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
...
</soapenv:Envelope>
 
...and the body contains this element (among other things):
 
<lastSyncDtime xsi:nil="true"></lastSyncDtime>
 
there are other elements in the body that /do/ include the namespace.
eg.
 
<clientDeviceCd xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
<http://www.w3.org/2001/XMLSchema-instance> "
xsi:nil="true"></clientDeviceCd>
 
 
It seems to me that the namespace declaration should be in the soap
envelope rather than included with every element that needs it - but
maybe I don't get to control that.
 
I'm using wsdl2Java on a wsdl supplied by the third party, and I'm using
XMLBeans binding.
I'm running java 1.5
 
 
Where did I go wrong, and how do I fix this?
Did I miss something in the code generation step?
Do I need to add custom code to the stub?
Maybe I got one of the dependent jars wrong?
Maybe I didn't configure a module correctly (I think the only one I'm
using is "addressing")?
 
 
Overwhelmed and needing help,
Nick

Re: Prefix [xsi] used without binding it to a namespace

Posted by Davanum Srinivas <da...@gmail.com>.
Please check if it works when you use ADB data binding.

thanks,
dims

On 1/2/07, Nick.Southwell@fastmobile.com <Ni...@fastmobile.com> wrote:
>
>
> Hi,
> I'm still very much an axis2 newbie, so sorry if this is a dumb question:
>
> I'm getting the above error returned from a third party server.
> This makes sense to me because the soap envelope looks like this:
>
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> ...
> </soapenv:Envelope>
>
> ...and the body contains this element (among other things):
>
> <lastSyncDtime xsi:nil="true"></lastSyncDtime>
>
> there are other elements in the body that /do/ include the namespace.  eg.
>
> <clientDeviceCd
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:nil="true"></clientDeviceCd>
>
>
> It seems to me that the namespace declaration should be in the soap envelope
> rather than included with every element that needs it - but maybe I don't
> get to control that.
>
> I'm using wsdl2Java on a wsdl supplied by the third party, and I'm using
> XMLBeans binding.
> I'm running java 1.5
>
>
> Where did I go wrong, and how do I fix this?
> Did I miss something in the code generation step?
> Do I need to add custom code to the stub?
> Maybe I got one of the dependent jars wrong?
> Maybe I didn't configure a module correctly (I think the only one I'm using
> is "addressing")?
>
>
> Overwhelmed and needing help,
> Nick


-- 
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org