On Wed, 27 Jun 2007 16:59:49 +0200
"Francois Hornoy" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I would like to invoke a service that take an object as argument, and
> return an object as value. So my questions are:
>
> * what to put in the WSDL file ? Can i just specify <xsd:complexType/>
> without specifying the Object?
Web services are strongly typed, you marshall data using an XML description.
To not specify datatypes you could conceivably use xsd:any, but this still
requires some knowledge of what is there to deserialize it and I would suggest
staying away from that approach until you know it is explictly needed.
>
> * how to deal, in the Client/Service code, with MyRemoteMethod /
> MyRemoteMethodResponse ?
>
> Must pass in the client:
> portType.myRemoteMethod( new MyRemoteMethod( theObject ) ) ?
>
> And in the server:
> public MyRemoteMethodResponse myRemoteMethod( MyRemoteMethod params )
> {
> // how to grab the object ?
> MyObject theObject = params.getMyObject(); // ??
>
> // code here
> MyReturnObject myReturnObject = new MyReturnObject(..);
>
> // return ??
> return new MyRemoteMethodResponse( theReturnObject );
>
>
> I've been learning XML Schemas on w3schools.com but found nothing about
> object type.
>
> Thank you for pointing me to a useful link/tutorial/document, or for helping
> me here ;)
I would suggest starting here, it addresses all of your questions and provides
a lot of context as well:
http://gdp.globus.org/gt4-tutorial/
Tim
>
>
> Cheers,
>
> Francois.
>
-----------------------------------------
Tim Freeman - [EMAIL PROTECTED]
http://www-unix.mcs.anl.gov/~tfreeman/
Grid Search: http://www.gridindex.org