Hi Jeff,
Thanks for your comments and I do agree with you. The service was deployed by third party and I want to consume the service. I have created my stub using wsdl (Eclipse IDE). TIA, -senthil _____ From: Walker, Jeff [mailto:[EMAIL PROTECTED] Sent: Monday, October 15, 2007 5:08 PM To: [email protected] Subject: RE: sending calendar object in axis stub 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: [email protected] 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.java:21 5) at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationC ontext.java:1502) My code is transfer.setIssueDate(Calendar.getInstance()); stub.insertTransfer(transfer); TIA, -senthil
