When using wrapped style, the wrapper element for your input message has the same name as the operation, so from a programming perspective, it looks and feels like RPC style -- but it is in fact document style.
Anne
On 10/6/05, Merten Schumann <[EMAIL PROTECTED]> wrote:
Got my AxisClient working against doc/lit! The problem was, besides from
call.setOperationStyle("document") I have to use a QName with the
namespace set correctly instead of just a String for my method
parameters in call.addParameter() ... Uff.
I'm still not able to get my JAX-RPC (Dynamic Invocation Interface)
client running. It's not working with both Sun JAX-RPC and Axis JAX-RPC.
There's no possibility there to set a QName in addParameter, as far as I
can see ...
Bhuvan Gupta sent me a helpful link,
http://www-128.ibm.com/developerworks/webservices/library/ws-whichwsdl/.
The document leads me to the impression, that for a web service to be
"document style ready" the method parameter names should be named in a
way to allow the web service server side to find out (by given parameter
names only) which method to be called (since in the SOAP envelope no
operation name is included). Is this correct?
Ummm, it's not really easy with this style/use combinations :-)
Merten
> -----Original Message-----
> From: Merten Schumann [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 06, 2005 11:08 AM
> To: [email protected]
> Subject: RE: problems against doc/lit service with AxisClient
> or Axis JAX-RPC client
>
> Ummm, I think I need to learn my lessons.
> As I mentioned, clients are working against wrapped/literal.
> Well, I thought wrapped/literal is a kind of document-style?!?
> But when I do use
> call.setOperationStyle("document")
> it's not working (I get the message "No such operation 'txt'" back).
> It's working, when I do
> call.setOperationStyle("rpc")
> or nothing (so "rpc" seems to be the default).
>
> Ummm, so is wrapped/literal at the end "rpc" style?
> Merten
>
> > -----Original Message-----
> > From: Merten Schumann [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, October 06, 2005 10:45 AM
> > To: [email protected]
> > Subject: problems against doc/lit service with AxisClient or
> > Axis JAX-RPC client
> >
> > Hello,
> >
> > I'm trying to invoke a simple web service method String
> > bounceMessage(String txt). I'm testing all style/use combinations,
> > rpc/enc rpc/lit doc/lit wrap/lit. My clients are JAX-RPC clients
> > (Dynamic Invocation Interface and Dynamic Proxy) and
> > AxisClient. The web
> > service is sitting in either a J2EE container (WebSphere) or in
> > Tomcat+Axis (1.2.1).
> >
> > Well, for all style/use combinations things seem to work
> fine, "even"
> > wrapped/lit works. But it's not working with doc/lit. Here is what
> > happens, when my web service is hosted by Tomcat/Axis:
> >
> > When I use call.setOperationStyle("document") in my AxisClient or
> > call.setProperty(Call.OPERATION_STYLE_PROPERTY, "document") in my
> > JAX-RPC DII code, I end up with a message
> > "No such operation 'txt'"
> > So it seems the server is trying to take "txt" (the
> parameter) for the
> > operation.
> >
> > When I do not try to set the style to "document", I end up with a
> > message
> > "SimpleDeserializer encountered a child element, which is NOT
> > expected, in something it was trying to deserialize."
> > I searched for this error message the net, found some
> information that
> > things should be fine with Axis 1.2.1, well, that's what I
> > use but it's
> > not working, anyway. :-)
> >
> > BTW: things are not working with doc/lit web service if I
> > test the with
> > Sun JAX-RPC RI from J2EE 1.4 package too
> >
> > So, is doc/lit in Axis (1.2.1) well supported? I could try to
> > switch to
> > 1.3, would make sense if doc/lit support has been enhanced there ...
> > Merten
> >
>
