Is it possible to pass javabeans as arguments from soap client to the soap
service without having to
code for custom serializers and de-serializers?
Thanks,





"Olivier Lamy" <[EMAIL PROTECTED]> on 28 Oct 2003 12:14

Please respond to [EMAIL PROTECTED]



To:    "Axis-User" <[EMAIL PROTECTED]>
Subject:    adding an element (a field in a bean) in a webservice without
changing the stubs


****************************************************************************

 This message originated from the Internet.  Its originator may or
 may not be who they claim to be and the information contained in
 the message and any attachments may or may not be accurate.
****************************************************************************


Hello,
I have a webservices in a version.
In the next version, I want to add a field in bean which add an element in
the soap.
If I don't generate again the stubs with the ant task, i get an exception :
    [junit] org.xml.sax.SAXException: Invalid element in
com.accor.services.ws.cli
ent.data.geo.GeoResult - hotelsFound
    [junit]     at
org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(Bean
Deserializer.java:260)
    [junit]     at
org.apache.axis.encoding.DeserializationContextImpl.startElemen
t(DeserializationContextImpl.java:963)
    [junit]     at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecor
der.java:198)

I don't understand why ?
Because, the new field which was not in the scope of the first stubs, it
should be ignored.
But it doesn't had to generate an exception ?


**********************************************************************
This e-mail, any attachments and the information contained therein ("this
message") are confidential and intended solely for the use of the
addressee(s). If you have received this message in error please send it
back to the sender and delete it. Unauthorized publication, use,
dissemination or disclosure of this message, either in whole or in part is
strictly prohibited.

Ce message electronique et tous les fichiers joints ainsi que  les
information contenues dans ce message ( ci apres "le message" ), sont
confidentiels et destines exclusivement a l'usage de la  personne a
laquelle ils sont adresses. Si vous avez recu ce message par erreur, merci
de le renvoyer a son emetteur et de le detruire. Toute diffusion,
publication, totale ou partielle ou divulgation sous quelque forme que se
soit non expressement autorisees de ce message, sont interdites.
**********************************************************************


(See attached file: winmail.dat)







************************************************************************
 This E-mail is confidential. It may also be legally privileged. If you
 are not the addressee you may not copy, forward, disclose or use any
 part of it. If you have received this message in error, please delete
 it and all copies from your system and notify the sender immediately
 by return E-mail.

 Internet communications cannot be guaranteed to be timely, secure,
 error or virus-free. The sender does not accept liability for any
 errors or omissions.
************************************************************************

Attachment: winmail.dat
Description: Binary data

Reply via email to