It is not a bug. Document style does not support parameters -- it takes a document in and returns a document. If you would like to use an RPC programming style with document/literal, then you must use the WRAPPED style. Axis will then automatically generate a wrapping document-style element for your parameters.

Anne

On 1/19/06, Dies Koper <[EMAIL PROTECTED]> wrote:
Hello Nicolas,

I have noticed the same, I think it is a bug.
Use document/literal(WRAPPED) instead of document/literal when you
create your WSDL (-y WRAPPED, IIRC). That should work.

Regards,
Dies


Nicolas De Loof wrote:
>
> I'd like to use Java2Wsdl to build a WSDL for my business service
> Business method is "public boolean isSiteDroit(String idSiu, String
> idDroit)"
>
> It works fine in "rpc" mode, but in document mode, Java2WSDL creates
> this WSDL message :
> <wsdl:message name="isSiteDroitRequest">
>      <wsdl:part element="impl:idSiu" name="idSiu"/>
>      <wsdl:part element="impl:idDroit1" name="idDroit"/>
> </wsdl:message>
>
> When I generate an axis client using WSDL2Java The SOAP message contains
> in its body two elements
> <soap:body>
>   <idSiu>x</idSiu>
>   <idDroit1>1</idDroit1>
> </soap:body>
>
> The business method is invoked, but receives null as second argument.
>
> When running debugger in axis code, I've found only the first soap
> parameter is read and used for method invocation.
>
> Is this expected ? How to build my wsdl to work ?
>
> Nico.


--
Dies KOPER <[EMAIL PROTECTED]> (changed on 1 July 2005)
Fujitsu Ltd - MWPF1  (changed from MWPF3 on 21 Nov 2005)
2-15-16, Shin-Yokohama, Kouhoku-ku, Yokohama, 222-0033, Japan
Tel. +81(45)-475-5605  (internal 7181-4217)


Reply via email to