You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by ma...@cnedi69.cnafmail.fr on 2001/06/06 09:16:41 UTC

Réf. : Re: Question about Parameters



> Hi Cecile !! (just a question : aren't you french ??)
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 !!!
regards


Try
        params.addElement (new Parameter("addedfile", Element.class,
docXML.getDocumentElement(),
org.apache.soap.Constants.NS_URI_LITERAL_XML));

Cecile Saint-Martin
csaintmartin@symetrx.com
----- Original Message -----
From: <ma...@cnedi69.cnafmail.fr>
To: <so...@xml.apache.org>
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: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


Re: Réf. : Re: Question about Parameters

Posted by Saint-Martin Cecile <cs...@symetrx.com>.
> > 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
csaintmartin@symetrx.com

> regards
>
>
> Try
>         params.addElement (new Parameter("addedfile", Element.class,
> docXML.getDocumentElement(),
> org.apache.soap.Constants.NS_URI_LITERAL_XML));
>
> Cecile Saint-Martin
> csaintmartin@symetrx.com
> ----- Original Message -----
> From: <ma...@cnedi69.cnafmail.fr>
> To: <so...@xml.apache.org>
> 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: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


Re: Réf. : Re: Question about Parameters

Posted by Saint-Martin Cecile <cs...@symetrx.com>.
> > 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
csaintmartin@symetrx.com

> regards
>
>
> Try
>         params.addElement (new Parameter("addedfile", Element.class,
> docXML.getDocumentElement(),
> org.apache.soap.Constants.NS_URI_LITERAL_XML));
>
> Cecile Saint-Martin
> csaintmartin@symetrx.com
> ----- Original Message -----
> From: <ma...@cnedi69.cnafmail.fr>
> To: <so...@xml.apache.org>
> 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: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org