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 Richard Hu <Ri...@jda.com> on 2009/04/21 22:11:33 UTC

[POJO] Conflicting WSDL files

Hi everyone,

 

I successfully deployed a POJO service in Axis 2 but I'm running into a
small inconsistency that is causing an issue when I try to run the
client.  In order to generate the WSDL, I use the Java2WSDL utility that
comes with Axis 2 to create a file <SimpleService.wsdl> that I then
place in "services\SimpleService\META-INF".  However, when I start up
Tomcat and then go to
"http://localhost:8080/axis2/services/SimpleService?wsdl, the wsdl is
different.

 

This inconsistency is causing an issue in the generation of the stub
since certain classes in the WSDL that is available through Tomcat do
not have all the correct fields visible.  

 

Does anyone know how POJO generates the WSDL that it displays or does
anyone know how to set the WSDL that POJO displays?

 

Thank you.

 

Richard Hu

Richard.Hu@jda.com


Re: [POJO] Conflicting WSDL files

Posted by Sagara Gunathunga <sa...@gmail.com>.
HI Richard,
You have to add following parameter to the service.xml file in order
to get your original WSDL instead of dynamic generation.

<parameter name="useOriginalwsdl">true</parameter>

Thanks ,

On Wed, Apr 22, 2009 at 1:41 AM, Richard Hu <Ri...@jda.com> wrote:
> Hi everyone,
>
>
>
> I successfully deployed a POJO service in Axis 2 but I’m running into a
> small inconsistency that is causing an issue when I try to run the client.
> In order to generate the WSDL, I use the Java2WSDL utility that comes with
> Axis 2 to create a file <SimpleService.wsdl> that I then place in
> “services\SimpleService\META-INF”.  However, when I start up Tomcat and then
> go to “http://localhost:8080/axis2/services/SimpleService?wsdl, the wsdl is
> different.
>
>
>
> This inconsistency is causing an issue in the generation of the stub since
> certain classes in the WSDL that is available through Tomcat do not have all
> the correct fields visible.
>
>
>
> Does anyone know how POJO generates the WSDL that it displays or does anyone
> know how to set the WSDL that POJO displays?
>
>
>
> Thank you.
>
>
>
> Richard Hu
>
> Richard.Hu@jda.com



-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://sagaras.awardspace.com/