Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

No Format
   java2ws -databinding <jaxb or aegis> -frontend <jaxws or simple> 
           -wsdl -wrapperbean -client -server -ant
 -o <output-file>
         -o <output-file> -d <resource-directory> -classdir <compile-classes-directory> -cp
 <class-path> 
         -cp <class-path> -soap12 -t <target-namespace> 
           -beans <ppathname of the bean definition file>* 
           -address <port-address>
   -servicename <service-name> 
         -servicename <service-name> -portname <port-name> -createxsdimports -h -v -verbose 
           -quiet {classname}

Description

...

java2ws -wsdl -d ./resource org.apache.hello_world_soap_http.Greeter
java2ws -cp ./tmp org.apache.hello_world_soap_http.Greeter -wsdl
java2ws -o hello.wsdl -wsdl org.apache.hello_world_soap_http.Greeter
java2ws -client -server -s ./src org.apache.hello_world_soap_http.Greeter
java2ws -wrapperbean -classdir ./classes org.apache.hello_world_soap_http.Greeter

Using java2ws with Ant

...

Make sure you set the "fork=true" attribute for the <java/> task as shown above. Also, remember to keep each word or flag within the command line options in its own <arg/> element (e.g., do not use <arg value="-o hello.wsdl"/>, but split them up into two <arg/> elements as done here.)

Although we would recommend using Maven, see the antbuild sample in the CXF distribution for an example of using Ant to create a CXF project.

See Also

idl2wsdl, java2js, wsdl2corba, wsdl2java, wsdl2js, wsdl2service, wsdl2soap, wsdl2xml, wsdlvalidator and xsd2wsdl.