> as far as i know the xmlns attribute belongs to the NCName
> domain so it can't be an empty string, then it's not a valid
> xml.... this could justify why jax-rpc ignored the stream.
> maybe an exception should be raised?
It can be an empty string, setting xmlns="" makes the default namespace 'no'
namespace, this is what you get if you don't use namespaces at all, i.e.
<foo /> is equivalent to
<foo xmlns="" />
and is often used to turn the default namespace off (in fact IIRC Axis
generates SOAP packets that use this construct).
Chrisjan, I would check to see what your SOAP message looks like, it may be
that the xmlns="" is turning off the default namespace that maybe needed, so
you may have something like
<SOAP:Envelope xmlns:SOAP="[SOAP-URI]"] xmlns="[MY-URI]">
<SOAP:Body>
<foo xmlns="">
or maybe
<Envelope xmlns="">
Either way your solution has worked
Kevin Jones
http://public.xdi.org/=kevin.jones
skype (www.skype.com): kevinrjones
> -----Original Message-----
> From: Alessio Cervellin [mailto:alessio.cervellin_at_sun-cs-italy.com]
> Sent: 17 January 2005 21:39
> To: users_at_jax-rpc.dev.java.net
> Subject: Re: Empty SOAPElement from .net WebService
>
> Chrisjan Matser wrote:
>
> > Turns out that the XML the .Net web service was returning
> to me had a
> > xmlns="" in the root element, a namespace attribute with and empty
> > namespace. JAX-RPC decides to ignore the entire xml stream
> for this
> > response field.
>
> as far as i know the xmlns attribute belongs to the NCName
> domain so it can't be an empty string, then it's not a valid
> xml.... this could justify why jax-rpc ignored the stream.
> maybe an exception should be raised?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
> For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net