axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Taylor <>
Subject Re: Webservice client
Date Fri, 03 Jun 2005 13:57:03 GMT
Hey folks,
          I've a query on a similar issue. I'm using axis's WSDL2Java tool to
make client and server style stubs but my service takes the data from the
client, queries a database but instead of sending back a resultset of found
object sends back an xml String result which is basically a xml document. The
issue is this is not rpc is it. It semms more like sending documents then
objects, but the service is rpc in its wsdd.
          I know its a design issue but should I just send back the objects to
the client and let them make xml outa them? Also if i'm sending documents what
would be a better way to do the above?

Quoting Anne Thomas Manes <>:

> The service is defined as document/literal, therefore that's how you
> must encode the messages. But you can still "invoke" it using an RPC
> style -- at least from your application's perspective. This WSDL
> conforms to the "wrapped" convention, so Axis allows you to invoke it
> using an RPC programming style.
> The right way to do that is to use WSDL2Java to generate a client
> proxy stub and to invoke methods on the stub. Because the service uses
> anyType, you also need to define custom deserializers.
> What exactly are you looking to do?
> Anne
> On 6/2/05, Ravi Krishnamurthy <> wrote:
> > Hello:
> > I 'm a newbie to Axis. Was looking into the following wsdl:
> >
> >
> > Was able to use WSDL2JAVA from Axis to generate the stubs and hence invoke
> the
> > webservice.
> >
> > Wondering is there any other way to invoke the webservice successfully
> > instead of using WSDL2JAVA. The webservices has datatypes that could be
> complex types and would like to invoke RPC as well as Document style.
> >
> > I'm looking only as a client to invoke the webservices. Also any
> suggestions design approach for this is welcome.
> >
> > Thanks for your time.
> > Regards,
> > Ravi
> >
> >
> >

Between the question and the answer lies free will

View raw message