The following are the commands to generate a wsdl from a Java Interface/Class and Java Classes (Server/Client) from a WSDl.
Before getting started download the latest Axis from the Apache site and unzip it to your C drive. Now place your wsdl/xsds in the following directory: "C:\axis-1_4\wsdl" and open command prompt and change the directory to this 'wsdl' directory where you just dropped your wsdl/xsd. ( cd "C:\axis-1_4\wsdl" ).
Also change your calsspath to include Axis and then run the following command(s).
:::: JAVA 2 WSDL ::::
java org.apache.axis.wsdl.Java2WSDL -o srb.wsdl -l"http://www.blogger.com:8080/services/srb" -n "urn:srbService" -p"com.blogger.service.srb" "urn:srbService" com.blogger.service.srb.SRBService
Note: The generated wsdl file also contains the xsd, you need manually separate the xsd if you prefer a separate xsd file.
:::: WSDL 2 JAVA ::::
java org.apache.axis.wsdl.WSDL2Java fileName.wsdl --wrapArrays
java org.apache.axis.wsdl.WSDL2Java --server-side --skeletonDeploy true fileName.wsdl
Before getting started download the latest Axis from the Apache site and unzip it to your C drive. Now place your wsdl/xsds in the following directory: "C:\axis-1_4\wsdl" and open command prompt and change the directory to this 'wsdl' directory where you just dropped your wsdl/xsd. ( cd "C:\axis-1_4\wsdl" ).
Also change your calsspath to include Axis and then run the following command(s).
:::: JAVA 2 WSDL ::::
java org.apache.axis.wsdl.Java2WSDL -o srb.wsdl -l"http://www.blogger.com:8080/services/srb" -n "urn:srbService" -p"com.blogger.service.srb" "urn:srbService" com.blogger.service.srb.SRBService
Note: The generated wsdl file also contains the xsd, you need manually separate the xsd if you prefer a separate xsd file.
:::: WSDL 2 JAVA ::::
java org.apache.axis.wsdl.WSDL2Java fileName.wsdl --wrapArrays
java org.apache.axis.wsdl.WSDL2Java --server-side --skeletonDeploy true fileName.wsdl
No comments:
Post a Comment