I tried the beanmapping too but it didn't work. This is the the complex type i want to send and the deploy.wsdd file:

Deploy.wsdd:

<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
    <service name="EJBTestService" provider="java:EJB">
        <parameter name="wsdlTargetNamespace" value="http://ejb.test.com"/>
        <parameter name="beanJndiName" value="ejb/TestService"/>
        <parameter name="homeInterfaceName" value="com.test.ejb.TestServiceHome"/>
        <parameter name="remoteInterfaceName" value="com.test.ejb.TestService"/>
        <parameter name="allowedMethods" value="*"/>
        <operation name="sendData" qname="operNS:SendData" xmlns:operNS="http://test.com/ejb/" returnQName="retNS:Result" xmlns:retNS="http://test.com/ejb/" returnType="rtns:int" xmlns:rtns="http://www.w3.org/2001/XMLSchema">
            <parameter qname="pns:reqData" xmlns:pns="http://test.com/ejb/" type="ns:RequestData" xmlns:tns="http://www.w3.org/2001/XMLSchema" />
        </operation>
        <parameter name="allowedMethods" value="*"/>
        <beanMapping xmlns:ns="http://ejb.test.com/rd" qname="ns:RequestData" languageSpecificType="java:com.test.ejb.rd.RequestData"/>
    </service>
</deployment>

---

public class RequestData implements java.io.Serializable{

private String x;
private String y;
private int num;

public void setX(String x)
          this.x = x;
public void setY(String y)
          this.y = y;
public void setNum(String n)
          this.num = n;

public String getX(){
    return x;
}

public String getY(){
    return y;

}

public int getNum{
 return num;
}

}

If you see something wrong please tell me...






Anne Thomas Manes <[EMAIL PROTECTED]> έγραψε:
I think you need to use a beanmapping element rather than a typemapping element.
If that doesn't work, please post more information.

Anne

On 5/25/06, Roy <[EMAIL PROTECTED]> wrote:
Hello all,

I have deployed an ejb service with a method that takes as input a complex object (it contains 2 Strings and one int var). When i generate the code in the client with WSDL2Java and call the method i can see that this complex type object becomes null. I can see in the monitor that the request object isn't null but in the debug mode i can see that the service receives a null object. This problem doesn't occur when I use simple types to transfer.
I tried the same code on a non-ejb service and works normally.
In the deploy wsdd i use a typemapping element to describe the object and i use the BeanSerializerFactory and BeanDeSerializer factory as serializer-deserializer.

Can someone explain why is this happening?

Regards,
Roy


Χρησιμοποιείτε Yahoo!
Βαρεθήκατε τα ενοχλητικά μηνύ ματα (spam); Το Yahoo! Mail διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών μηνυμάτων
http://login.yahoo.com/config/mail?.intl=gr



Χρησιμοποιείτε Yahoo!
Βαρεθήκατε τα ενοχλητικά μηνύ ματα (spam); Το Yahoo! Mail διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών μηνυμάτων
http://login.yahoo.com/config/mail?.intl=gr

Reply via email to