Hi,

On 6/27/07, Tim Freeman <[EMAIL PROTECTED]> wrote:

On Wed, 27 Jun 2007 20:42:06 +0200
"Francois Hornoy" <[EMAIL PROTECTED]> wrote:

>  Hi Tim,
>
> On 6/27/07, Tim Freeman < [EMAIL PROTECTED]> wrote:
> >
> > 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.
>
>  You mean i should avoid using non-basic datatypes in argument/return
values
> ?

No I mean use explicit datatypes and not xsd:any which is a sort of
wildcard.


Yeah that's my question. But is there a defined datatype in XML Schema for
an Object ? Or should i define a new datatype somehow?


cf. http://www.ibm.com/developerworks/xml/library/ws-tip-xsdcaution.html


Oh ok, thanks for the link.



> >
> > >    *  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/
>
>
> Actually, i'm following GT4 Book. And although they give a few
explanations
> about that issue, they don't enter indetails. Hence my question :)

I'm not sure what the issue is.  Do you mean what specific methods to call
for
a particular WSDL->Java generated package?  I always just look at the
generated
stub code directly (typically via IDE inspection mechanisms).



I mean, in the book, there are only simple examples. Remote methods only
take basic datatypes as arguments (int, string, float, no argument.. or
sequence of those) and return values (int, string, float, void..).

In my code, i want to get an instance of a class as argument, and return an
instance of another class. So i wonder how to specify this in WSDL. That's
the issue :)

Cheers,

Francois.


Tim

>
> Cheers,
>
> Francois.
>
> Tim
> >
> >
> > >
> > >
> > > Cheers,
> > >
> > > Francois.
> > >
> >
> >
> > -----------------------------------------
> > Tim Freeman - [EMAIL PROTECTED]
> > 
http://www-unix.mcs.anl.gov/~tfreeman/<http://www-unix.mcs.anl.gov/%7Etfreeman/>
> > Grid Search: http://www.gridindex.org
> >
>


-----------------------------------------
Tim Freeman - [EMAIL PROTECTED]
http://www-unix.mcs.anl.gov/~tfreeman/<http://www-unix.mcs.anl.gov/%7Etfreeman/>
Grid Search: http://www.gridindex.org

Reply via email to