Yes, I used the POJO approach to create my test service. Anyway, the
client that I am currently writing should be able to communicate with
all kinds of doc/wrapped services (Axis as well as .NET, etc), so I
should not rely on any specifics of the Axis2 message receiver anyway.
OK, so in the end I learned that the sequence of parameters matters
(obviously, if I think about it), and that the parameter names /should/
also matter (even if this condition is not checked by all service
providers).
Dennis, Amila, thanks a lot for your help!
/philipp
Amila Suriarachchi schrieb:
Philip are you deploying a service using a POJO or creating a service
with a wsdl?
I belive you use the former method. In this case you use the
RPCMessageReceiver and it does not care about the parameter names.
But if you use the wsdl first approach please log a jira with your wsdl.
On 4/23/07, *Dennis Sosnoski* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Hi Philipp,
Both the order and the names of the parameters are supposed to matter in
wrapped doc/lit, since this uses an <xs:sequence> to compose the
parameter elements. With JiBX data binding the names definitely matter,
as is also the case with XMLBeans; if ADB doesn't care about the names
this seems like a significant error in the ADB code.
- Dennis
Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117
Philipp Leitner wrote:
> Hi all,
>
> I just did a few experiements with an Axis2 service that I
deployed. I
> am using the doc/wrapped style, and have an operation that looks
> something like this (in Java notation):
>
> <snip>
>
> public String concatSomeStuff(String param1, String param2, String
> param3, int param4);
>
> </snip>
>
> The operation will just concatenate the parameters and return
them as
> String.
>
> Now I discovered that a SOAP request like this
>
> <concatSomeStuff>
> <param3>14</param3>
> <param2>Sperrgasse </param2>
> <param0>Philipp Leitner </param0>
> <param1>111</param1>
> </concatSomeStuff>
>
> bears a different result then a request like
>
> <concatSomeStuff>
> <param2>Sperrgasse </param2>
> <param3>14</param3>
> <param1>111</param1>
> <param0>Philipp Leitner </param0>
> </concatSomeStuff>
>
> (note the different order of the parameters).
>
> Meanwhile, the actual /name/ of the parameters does not seem to
> matter. A request like
>
> <concatSomeStuff>
> <a>Sperrgasse </a>
> <b>14</b>
> <c>111</c>
> <d>Philipp Leitner </d>
> </concatSomeStuff>
>
> still works.
>
> Is this really how Axis2 (or doc-style SOAP in general) is
supposed to
> work? The order of the parameters is important, while the name is not
> important? For some reason I always figured it should be the
other way
> 'round.
>
> Can somebody shed some light on this issue?
>
> /philipp
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
--
Amila Suriarachchi,
WSO2 Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]