> > Hi Cecile !! (just a question : aren't you french ??)
My english is so bad? :)

> I really thank you for your help !! your proposition works ....
> but does it mean that we can't send a call with any types of parameter ??
> I am forced to pass only XML elements parameters ??
> in fact, I think I don't understand exactly what is the goal of a
> Serializer !!!
If you want to pass not a basic typed parameter but a class defined, you need a 
serializer for this class.
A serializer is needed to transform  your object parameter into a form that can be 
sent in a socket.
Basic types serializer exist already.
(If you want to learn more about serialization see
http://www.jguru.com/faq/home.jsp?topic=Serialization)
XML file is not a basic type and Apache SOAP provides a serializer for it.
If you want to pass an array for example, which is not a basic type, you have to write 
an ArraySerializer and, in your deployment
descriptor, add a map tag to inform SOAP classes to use your ArraySerializer for your 
parameter.

If  I'm not clear you can write me in french :)


Cecile Saint-Martin
[EMAIL PROTECTED]

> regards
>
>
> Try
>         params.addElement (new Parameter("addedfile", Element.class,
> docXML.getDocumentElement(),
> org.apache.soap.Constants.NS_URI_LITERAL_XML));
>
> Cecile Saint-Martin
> [EMAIL PROTECTED]
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 05, 2001 2:53 PM
> Subject: Question about Parameters
>
>
> > Hi,
> >
> > I'd like to send a service invocation to a server with any types
> parameter
> > .... for example, I have a "XML" file, I want to parse it and constructs
> a
> > DOM tree representation ... and I'd like to send it to a SOAP server in
> > order to get the content of an element ... so I tried to send a "call"
> with
> > one "dom.Document" parameter .... here is the client program (without
> catch
> > etc ....):
> >
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to