axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Immi <michael.im...@nowhow.ch>
Subject Complex type deserializing: Empty parameter
Date Mon, 26 Feb 2007 10:28:08 GMT

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
==========
<SOAP-ENV: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:Body>
		<m:testService xmlns:m="http://nowhow.ch/isgate/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
			<inParam xsi:type="m0:Parameter">
				<name xsi:type="m1:string" id="" href="">dsfs</name>
			</inParam>
		</m:testService>
	</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

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


Mime
View raw message