axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amila Suriarachchi <amilasuriarach...@gmail.com>
Subject Re: axis2 1.5.1 wsdl2java --all-ports
Date Fri, 11 Dec 2009 06:35:41 GMT
On Thu, Dec 10, 2009 at 12:34 PM, Alex <devnsl01@gmail.com> wrote:

> hi all,
>
> as I read on the web, there is no posibility to generate server skeleton
> from an wsdl which has multiple ports defined, is this correct?
>

yes.

>
> Is there an other possibility to combine all ports in one webService, or is
> it better to generate one service for each port.


please try using one portType per service.

thanks,
Amila.

>
>
> here is my ant-task
>
>   <target name="wsdl2java" depends="clean,prepare">
>       <delete dir="${output}" />
>       <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
>           <classpath refid="axis.classpath" />
>           <arg value="-d" />
>           <arg value="none" />
>           <arg value="-uri" />
>           <arg file="${PATH2WSDL}" />
>           <arg value="-ss" />
>           <arg value="-g" />
>           <arg value="-sd" />
>           <arg value="-or" />
>           <arg value="-o" />
>           <arg file="${output}" />
>           <arg value="-p" />
>           <arg value="${package}" />
>           <arg value="-ap" />
>       </java>
>
>       <!-- Move the schema folder to classpath-->
>       <move todir="${build.classes}">
>           <fileset dir="${output}/resources">
>               <include name="**/*schema*/**/*.class" />
>               <include name="**/*schema*/**/*.xsb" />
>           </fileset>
>       </move>
>
>   </target>
>
> as you can see i use the -ap or --all-ports option but only one port is
> generatet.
>
> I am using axis2 1.5.1 and tomcat 6.0.20
>
>
> thank you, so long alex
>



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

Mime
View raw message