axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Nick.Southw...@fastmobile.com>
Subject RE: Prefix [xsi] used without binding it to a namespace
Date Wed, 03 Jan 2007 15:22:21 GMT
Dims,
Thanks for the response!

I tried ADB, and now I have a legal soap request - according to the
third party server anyway.

I'd still like to use xmlbeans if I can though.
Is there a way to get xmlbeans to work for this element?

Xmlbeans is trying to bind the element to a type of java.lang.Calendar
The WSDL for the element looks like this:
  <xsd:element type="xsd:dateTime" name="lastSyncDtime" minOccurs="1"
maxOccurs="1" nillable="true"/>

..and I'm trying to pass a null value.

Thanks,
Nick

-----Original Message-----
From: Davanum Srinivas [mailto:davanum@gmail.com] 
Sent: Wednesday, January 03, 2007 6:23 AM
To: axis-user@ws.apache.org
Subject: Re: Prefix [xsi] used without binding it to a namespace

Please check if it works when you use ADB data binding.

thanks,
dims

On 1/2/07, Nick.Southwell@fastmobile.com <Nick.Southwell@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


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


Mime
View raw message