Hi Senthil,
Don't pass language specific constructs like Calendar, in a web service
call.
 
You are better taking the less obvious route; just pass the minimal
amount number fo fields in the Calendar object that can be used by a
client to regenerate the equivalent object on their side. That is, build
a new complexType in XML Schema and use Doc/Lit-wrapped web services.
 
The main reason is simply, interoperability. Even of you know all of
your clients will be Java going forward, it's bad practice to pass
language specific objects in a web service. If indeed all of your
clients will always be Java, then you would benefit from RMI or EJB
where you would get a significant speed increase. Web Services is for
interoperability across disparate systems.
Regards,
-jeff
 
  _____  

From: Senthivel U S [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 15, 2007 8:27 AM
To: axis-user@ws.apache.org
Subject: sending calendar object in axis stub



        Hi,

         

        I have a stub, in that I want to pass calendar object, while
passing I am getting the following error.  Is any serializer to be
included to pass calendar object.

         

        java.io.IOException: Non nillable element 'issuedDate' is null.

                at
org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.jav
a:215)

                at
org.apache.axis.encoding.SerializationContext.serializeActual(Serializat
ionContext.java:1502)

        

        My code is 

         

        transfer.setIssueDate(Calendar.getInstance());

        stub.insertTransfer(transfer);

         

        TIA,

        -senthil

         

Reply via email to