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 Rudy Commenge <ru...@gmail.com> on 2011/10/26 16:43:16 UTC
Modify node in WS response ?
Hi,
I have exposed Java POJO as Web Service in Tomcat with Axis2 v1.6.1.
The WS works and return something like :
<myMethodResponse xmlns="http://ws/myservice/org/xsd">
<return>
.....
</return>
</myMethodResponse>
But I want a response like :
<myMethodResponse xmlns="http://ws/myservice/org/xsd">
<result>
.....
</result>
</myMethodResponse>
So, I want to modify the name of "return" node ?
I tried to personalize the generated WSDL, but response has unchanged.
Do you have a solution ?
Best Regards,
Rudy.
Re: Modify node in WS response ?
Posted by Rudy Commenge <ru...@gmail.com>.
Ok, thanks for this information.
So currently, if I want to modify the "result" node, how to create my WS ?
Is there a tutorial or example ?
2011/10/26 Sagara Gunathunga <sa...@gmail.com>
> On Wed, Oct 26, 2011 at 8:13 PM, Rudy Commenge <ru...@gmail.com>
> wrote:
> > Hi,
> >
> > I have exposed Java POJO as Web Service in Tomcat with Axis2 v1.6.1.
> > The WS works and return something like :
> >
> > <myMethodResponse xmlns="http://ws/myservice/org/xsd">
> > <return>
> > .....
> > </return>
> > </myMethodResponse>
> >
> > But I want a response like :
> >
> > <myMethodResponse xmlns="http://ws/myservice/org/xsd">
> > <result>
> > .....
> > </result>
> > </myMethodResponse>
> >
> > So, I want to modify the name of "return" node ?
> > I tried to personalize the generated WSDL, but response has unchanged.
> >
> > Do you have a solution ?
>
> AFAIK if you expose POJO this is not possible but i believe we can
> make it configurable through a setting in axis2.xml file in future
> releases. If you wish to have this feature please open a JIRA issue
> for this.
>
> Thanks !
>
> >
> > Best Regards,
> >
> > Rudy.
> >
> >
> >
>
>
>
> --
> Sagara Gunathunga
>
> Blog - http://ssagara.blogspot.com
> Web - http://people.apache.org/~sagara/
> LinkedIn - http://www.linkedin.com/in/ssagara
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>
Re: Modify node in WS response ?
Posted by Sagara Gunathunga <sa...@gmail.com>.
On Wed, Oct 26, 2011 at 8:13 PM, Rudy Commenge <ru...@gmail.com> wrote:
> Hi,
>
> I have exposed Java POJO as Web Service in Tomcat with Axis2 v1.6.1.
> The WS works and return something like :
>
> <myMethodResponse xmlns="http://ws/myservice/org/xsd">
> <return>
> .....
> </return>
> </myMethodResponse>
>
> But I want a response like :
>
> <myMethodResponse xmlns="http://ws/myservice/org/xsd">
> <result>
> .....
> </result>
> </myMethodResponse>
>
> So, I want to modify the name of "return" node ?
> I tried to personalize the generated WSDL, but response has unchanged.
>
> Do you have a solution ?
AFAIK if you expose POJO this is not possible but i believe we can
make it configurable through a setting in axis2.xml file in future
releases. If you wish to have this feature please open a JIRA issue
for this.
Thanks !
>
> Best Regards,
>
> Rudy.
>
>
>
--
Sagara Gunathunga
Blog - http://ssagara.blogspot.com
Web - http://people.apache.org/~sagara/
LinkedIn - http://www.linkedin.com/in/ssagara
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org