Here is a sample bat file for running and generating client code

@echo on
set AXIS2_HOME=C:\Installations\axis2-1.4
set AXIS_HOME=C:\Installations\axis2-1.4
set AXIS_BIN=%AXIS_HOME%\bin
set PATH=C:\Installations\Java\jdk1.5.0_13\bin;%AXIS_BIN%;

rem axis2 library path (path to lib directory)
set LIB_PATH=C:\Home\Source\my_view\dev\java\lib;
set AXIS_LIB=%AXIS_HOME%\lib
set AXIS_CLASS_PATH=

setlocal EnableDelayedExpansion

FOR %%c in ("%AXIS_HOME%\lib\*.jar") DO set
AXIS_CLASS_PATH=!AXIS_CLASS_PATH!;%%c

echo %AXIS2_CLASS_PATH%

set CLASSPATH=%AXIS_CLASS_PATH%;%CLASSPATH%
echo %CLASSPATH%

set NS2P=
http://schemas.hp.com/SM/7=com.peregrine.webservice,http://schemas.hp.com/SM/7/Common=com.peregrine.webservice.common,http://www.w3.org/2005/05/xmlmime=com.peregrine.webservice.common
set URL=http://g1w1906.austin.hp.com:13092/SM/7/KnowledgeManagement.wsdl

@echo on
rem java -cp "%AXIS_CLASS_PATH%" org.apache.axis.wsdl.WSDL2Java -U Portal -P
protal4itg KnowledgeManagement.wsdl
wsdl2java.bat -u -b -uri %URL%  -ns2p %NS2P%

On Tue, Aug 17, 2010 at 11:21 PM, haipeng du <[email protected]> wrote:

> I try to generate wsdl file from java code, How to set up wsdl generation
> option. I use default one and get wsdl file. But it uses some prefix for
> example ax2. Also, it put all custom types to different schema name space.
> For example, I have one base object and it put to name space xsd and other
> objects are in xsd1 name space. Also, for base complex type, it always gives
> me empty sequence while base object has more than one properties.
> Thanks a lot.
>
> --
> Haipeng Du
> Salt Lake City
>

Reply via email to