You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by error3 <er...@free.fr> on 2009/09/24 02:16:18 UTC

WSDL client generation. Problem with more than one part and binding style "document"

Hello,

with the attached wsdl file (it's an simplified version of mine), I'm
trying to generate WS client (in eclipse, and with Axis2).

while trying to generate the client, I have an error saying that "more
than one part" in the message... (I do not have the message nor my
development environment at that time).

Googlin' and found that "document" binding style shouldn't have multiple
parts message in the body.
Ok.

So I know that, to querying the webservice (I can't modify it, it's an
application one) I must send something like :

[...]
	<soap:body>
	     <MapName>theName</MapName>
             <MapValues></MapValues>
	</soap:body>
[...]

How can I modify the WSDL to make axis2 generating a client which can
produce the request I want ? Is it possible ? Do I need to change the
style to rpc ? If it's not possible, do you know an opensource project
which know how to deal with my wsdl ?

thank you very much for any help,

-- 
Martin

Re: WSDL client generation. Problem with more than one part and binding style "document"

Posted by Amila Suriarachchi <am...@gmail.com>.
On Thu, Sep 24, 2009 at 5:46 AM, error3 <er...@free.fr> wrote:

> Hello,
>
> with the attached wsdl file (it's an simplified version of mine), I'm
> trying to generate WS client (in eclipse, and with Axis2).
>
> while trying to generate the client, I have an error saying that "more
> than one part" in the message... (I do not have the message nor my
> development environment at that time).
>
> Googlin' and found that "document" binding style shouldn't have multiple
> parts message in the body.
> Ok.
>
> So I know that, to querying the webservice (I can't modify it, it's an
> application one) I must send something like :
>
> [...]
>        <soap:body>
>             <MapName>theName</MapName>
>             <MapValues></MapValues>
>        </soap:body>
> [...]
>
> How can I modify the WSDL to make axis2 generating a client which can
> produce the request I want ? Is it possible ? Do I need to change the
> style to rpc ? If it's not possible, do you know an opensource project
> which know how to deal with my wsdl ?
>

I think this is not possible with Axis2 unless you write an operational
client and set the whole soap envelop
you want to send.

thanks,
Amila.


> thank you very much for any help,
>
> --
> Martin
>



-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/