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 Neil Blue <ne...@1spatial.com> on 2007/04/16 17:06:17 UTC

Too many nulls

Hello,

I am using the simple RPCServiceClient to connect to a remote service. I have 
a problem with null values. If an object that is passed to the service has 
more than one null value then I get an error as the nil namespace prefix is 
not bound often enough. 

For example:

xml sent
...
             <parameters>
                  <name xmlns:nil="http://www.w3.org/2001/XMLSchema-instance" 
nil:nil="true"></name>
                  <value>value</value>
               </parameters>
               <parameters>
                  <name xmlns:nil="http://www.w3.org/2001/XMLSchema-instance" 
nil:nil="true"></name>
                  <value nil:nil="true"></value>
               </parameters>
...

Is there a work around for this? maybe defining the xmlschema namespace in the 
root element?

Thanks
Neil

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


Re: Too many nulls

Posted by Neil Blue <ne...@1spatial.com>.
Thanks Ryan,

This looks like an error that also produces invalid WSDL when using addressing 
in the wsdl2java tool.

Neil

On Monday 16 April 2007 16:21, Ryan Nelsestuen wrote:
> OMSerializerUtil

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


RE: Too many nulls

Posted by Ryan Nelsestuen <ry...@issinc.com>.
Assuming you are using Axis2, that looks a bit like this (unresolved) bug:

https://issues.apache.org/jira/browse/WSCOMMONS-175

You may be able to patch the OMSerializerUtil class to address.

-----Original Message-----
From: Neil Blue [mailto:neil.blue@1spatial.com] 
Sent: Monday, April 16, 2007 9:06 AM
To: axis-user@ws.apache.org
Subject: Too many nulls

Hello,

I am using the simple RPCServiceClient to connect to a remote service. I
have 
a problem with null values. If an object that is passed to the service has 
more than one null value then I get an error as the nil namespace prefix is 
not bound often enough. 

For example:

xml sent
...
             <parameters>
                  <name
xmlns:nil="http://www.w3.org/2001/XMLSchema-instance" 
nil:nil="true"></name>
                  <value>value</value>
               </parameters>
               <parameters>
                  <name
xmlns:nil="http://www.w3.org/2001/XMLSchema-instance" 
nil:nil="true"></name>
                  <value nil:nil="true"></value>
               </parameters>
...

Is there a work around for this? maybe defining the xmlschema namespace in
the 
root element?

Thanks
Neil

---------------------------------------------------------------------
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