You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Christophe Loridan <CH...@BULL.NET> on 2003/11/05 09:20:28 UTC
Does document/literal work ?
Hi
We want to use WSDL2JAVA with Document/Literal style
Starting from sample/addr, we have modified the soap binding
style=document
use=literal
change "type" attribute of parts to "element"
added corresponding element
The class generation works well, so does the deployment
but run-time, there is an exception in AXIS
Did we did something wrong ?
If there is a problem in AXIS, any hint about a possible fix ?
Thanks a lot for your attention
Best regards
Christophe
Re: Does document/literal work ?
Posted by Dimuthu Leelarathne <mu...@opensource.lk>.
Hi,
In document/literal the first element in the SOAP body should be the
parameter that the web service accepts.
Refer the axis user guide - it nicely explains this.
So in your case it is not just enough to simply change the SOAP binding.
You have to make sure that the WSDL parts refer elements whose names are
equal to the parameters that the web service accepts.
Regards,
Dimuthu.
--
Lanka Software Foundation http://www.opensource.lk
> Hi
>
>
> We want to use WSDL2JAVA with Document/Literal style
>
> Starting from sample/addr, we have modified the soap binding
> style=document
> use=literal
> change "type" attribute of parts to "element"
> added corresponding element
>
> The class generation works well, so does the deployment
> but run-time, there is an exception in AXIS
>
> Did we did something wrong ?
>
> If there is a problem in AXIS, any hint about a possible fix ?
>
> Thanks a lot for your attention
>
> Best regards
>
> Christophe