axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Immi <michael.im...@nowhow.ch>
Subject Re: [Axis2] Complex type deserializing: Empty parameter
Date Mon, 26 Feb 2007 15:33:04 GMT

Thanks Wayne,

unfortunately I can't access the AXIS JIRA site at the moment.

Your hint will be useful later when I try to map arrays of complex types, 
and thats where I want to go but first I have to make it work with complex
types.

Michael


Wayne Johnson wrote:
> 
> There is also a bug similar to this open:
> https://issues.apache.org/jira/browse/AXISCPP-1015
> 
> I believe it also depends if you have an array to a complex type of null,
> or an empty (zero length) array.  There appears to be a difference.
> 
> Anne Thomas Manes <atmanes@gmail.com> wrote: How are you
> building/deploying this service?
> Can you post the WSDD? WSDL?
> 
> Note that the .jws deployment option does not support complex types.
> 
> Anne
> 
> On 2/26/07, Immi  wrote:
>>
>> My service has one complex type parameter of type "Parameter".
>>             testService(Parameter arg);
>>
>> Now I'm sending a SOAP envelope (see bottom) to my Java server.
>> When I read the parameters using
>>       RPCElement body = ... (contains body element of SOAP envelope)
>>       body.getParams()
>> I'm getting an value of RCPParam with value = null!!!
>> For deserializing, I'm using Axis BeanDeserializer!
>>
>> Why is this null?
>> It's working with simple types and String arrays but not with complex
>> types!
>>
>> Regards
>> Michael
>>
>> SOAP ENVELOPE
>> ==========
>> 
>> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
>> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>> xmlns:m0="http://types.archiv.isgate.nowhow.ch"
>> xmlns:m1="http://schemas.xmlsoap.org/soap/encoding/">
>>         
>>                 
>> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
>>                         
>>                                 dsfs
>>                         
>>                 
>>         
>> 
>>
>> COMPLEX TYPE JAVA CLASS
>> =================
>> public class Parameter implements Serializable {
>>     private String name;
>>
>>     public Parameter() {
>>         super();
>>     }
>>
>>     public String getName() {
>>         return name;
>>     }
>> --
>> View this message in context:
>> http://www.nabble.com/Complex-type-deserializing%3A-Empty-parameter-tf3291993.html#a9156530
>> Sent from the Axis - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> 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
> 
> 
> 
> 
> --- 
> Wayne Johnson,                         | There are two kinds of people:
> Those 
> 3943 Penn Ave. N.          | who say to God, "Thy will be done," 
> Minneapolis, MN 55412-1908 | and those to whom God says, "All right, 
> (612) 522-7003                         | then,  have it your way." --C.S.
> Lewis
> 
>  
> ---------------------------------
> Don't pick lemons.
> See all the new 2007 cars at Yahoo! Autos.
> 

-- 
View this message in context: http://www.nabble.com/Complex-type-deserializing%3A-Empty-parameter-tf3291993.html#a9160886
Sent from the Axis - User mailing list archive at Nabble.com.


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