axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bo Xie" <mrbo...@gmail.com>
Subject Re: Axis2 1.1.1 WSDL2JAVA - Not generating java classes for <wsdl:portType>
Date Thu, 17 May 2007 19:49:40 GMT
Thanks, Amila. I tried your advice using no -pn and -sn. It still only
generated last one binding out of the 4. I used asix2 1.2 release.

Here is the command line. Anything I did not do right? Attached is the
output files
C:\programs\work>wsdl2java -o output -p com.xyz.nbi -t -ss -sd -g -S src -R
src -uri wsrp_service.wsdl
Using AXIS2_HOME:   C:\programs\axis2-1.2
Using JAVA_HOME:    C:\programs\jdk1.5.0_09
Retrieving document at 'wsrp_v1_bindings.wsdl', relative to
'file:/C:/programs/work/'.
Retrieving document at 'wsrp_v1_interfaces.wsdl', relative to
'file:/C:/programs/work/wsrp_v1_bindings.wsdl'.
Retrieving schema at 'wsrp_v1_types.xsd', relative to
'file:/C:/programs/work/wsrp_v1_interfaces.wsdl'.
Retrieving schema at 'http://www.w3.org/2001/xml.xsd', relative to
'file:/C:/programs/work/wsrp_v1_types.xsd'.
Retrieving document at 'wsrp_v1_bindings.wsdl', relative to
'file:/C:/programs/work/'.
Retrieving document at 'wsrp_v1_interfaces.wsdl', relative to
'file:/C:/programs/work/wsrp_v1_bindings.wsdl'.
Retrieving schema at 'wsrp_v1_types.xsd', relative to
'file:/C:/programs/work/wsrp_v1_interfaces.wsdl'.
Retrieving schema at 'http://www.w3.org/2001/xml.xsd', relative to
'file:/C:/programs/work/wsrp_v1_types.xsd'.
May 17, 2007 11:55:31 AM org.apache.axis2.wsdl.codegen.writer.ClassWriter
createOutFile
INFO: The output\src\com\xyz\nbi\InvalidHandleException.java file cannot be
overwritten.
May 17, 2007 11:55:31 AM
org.apache.axis2.wsdl.codegen.writer.ClassWritercreateOutFile
INFO: The output\src\com\xyz\nbi\AccessDeniedException.java file cannot be
overwritten.
May 17, 2007 11:55:31 AM
org.apache.axis2.wsdl.codegen.writer.ClassWritercreateOutFile
INFO: The output\src\com\xyz\nbi\InvalidRegistrationException.java file
cannot be overwritten.
May 17, 2007 11:55:31 AM
org.apache.axis2.wsdl.codegen.writer.ClassWritercreateOutFile
INFO: The output\src\com\xyz\nbi\MissingParametersException.java file cannot
be overwritten.
May 17, 2007 11:55:31 AM
org.apache.axis2.wsdl.codegen.writer.ClassWritercreateOutFile
INFO: The output\src\com\xyz\nbi\InvalidUserCategoryException.java file
cannot be overwritten.
May 17, 2007 11:55:31 AM
org.apache.axis2.wsdl.codegen.writer.ClassWritercreateOutFile
INFO: The output\src\com\xyz\nbi\OperationFailedException.java file cannot
be overwritten.
May 17, 2007 11:55:31 AM
org.apache.axis2.wsdl.codegen.writer.ClassWritercreateOutFile
INFO: The output\src\com\xyz\nbi\InconsistentParametersException.java file
cannot be overwritten.

Thanks,
-Bo


On 5/17/07, Amila Suriarachchi <amilasuriarachchi@gmail.com> wrote:
>
>
>
> On 5/17/07, Bo Xie <mrboxie@gmail.com> wrote:
> >
> > Hi
> >
> >  I tried on Axis2 1.2 release package. I see there is an -pn operation.
> > Here is the command line I used. The skeleton file still only have the
> > operations in the last port(see attached skeleton file).
> >
> > My questions are:
> >   1. Is  "-pn WSRPRegistrationService" used correctly, why the skeleton
> > file does not have the operations from this portType.
>
>
> pn is for port name not for port type.
>
>   2. Is there any options to have wsdl2java generate all the portTypes in
> > the WSDL.
> >
> > C:\programs\work>wsdl2java -o output -p com.cisco.csm.nbi -t -ss -sd -g
> > -S src -R src -pn WSRPRegistrationService -uri wsrp_service.wsdl
>
>
> if you do not use the -pn and -sn parameters it will generate the code for
> all bindings.
>
> Using AXIS2_HOME:   C:\programs\axis2-1.2
> > Using JAVA_HOME:    C:\programs\jdk1.5.0_09
> > Retrieving document at 'wsrp_v1_bindings.wsdl', relative to
> > 'file:/C:/programs/work/'.
> > Retrieving document at 'wsrp_v1_interfaces.wsdl', relative to
> > 'file:/C:/programs/work/wsrp_v1_bindings.wsdl'.
> > Retrieving schema at 'wsrp_v1_types.xsd', relative to
> > 'file:/C:/programs/work/wsrp_v1_interfaces.wsdl'.
> > Retrieving schema at ' http://www.w3.org/2001/xml.xsd ', relative to
> > 'file:/C:/programs/work/wsrp_v1_types.xsd'.
> > Retrieving document at 'wsrp_v1_bindings.wsdl', relative to
> > 'file:/C:/programs/work/'.
> > Retrieving document at 'wsrp_v1_interfaces.wsdl', relative to
> > 'file:/C:/programs/work/wsrp_v1_bindings.wsdl'.
> > Retrieving schema at 'wsrp_v1_types.xsd', relative to
> > 'file:/C:/programs/work/wsrp_v1_interfaces.wsdl'.
> > Retrieving schema at ' http://www.w3.org/2001/xml.xsd ', relative to
> > 'file:/C:/programs/work/wsrp_v1_types.xsd'.
> > May 16, 2007 6:05:12 PM org.apache.axis2.wsdl.codegen.writer.ClassWritercreateOutFile
> > INFO: The output\src\com\cisco\csm\nbi\InvalidHandleException.java file
> > cannot be overwritten.
> > May 16, 2007 6:05:12 PM org.apache.axis2.wsdl.codegen.writer.ClassWritercreateOutFile
> > INFO: The output\src\com\cisco\csm\nbi\AccessDeniedException.java file
> > cannot be overwritten.
> > May 16, 2007 6:05:12 PM org.apache.axis2.wsdl.codegen.writer.ClassWritercreateOutFile
> > INFO: The output\src\com\cisco\csm\nbi\InvalidRegistrationException.java
> > file cannot be overwritten.
> > May 16, 2007 6:05:12 PM org.apache.axis2.wsdl.codegen.writer.ClassWritercreateOutFile
> > INFO: The output\src\com\cisco\csm\nbi\MissingParametersException.java
> > file cannot be overwritten.
> > May 16, 2007 6:05:12 PM org.apache.axis2.wsdl.codegen.writer.ClassWritercreateOutFile
> > INFO: The output\src\com\cisco\csm\nbi\InvalidUserCategoryException.java
> > file cannot be overwritten.
> > May 16, 2007 6:05:12 PM org.apache.axis2.wsdl.codegen.writer.ClassWritercreateOutFile
> > INFO: The output\src\com\cisco\csm\nbi\OperationFailedException.java
> > file cannot be overwritten.
> > May 16, 2007 6:05:12 PM org.apache.axis2.wsdl.codegen.writer.ClassWritercreateOutFile
> > INFO: The
> > output\src\com\cisco\csm\nbi\InconsistentParametersException.java file
> > cannot be overwritten.
> >
> > Thanks,
> > -Bo
> >
> >
> >

Mime
View raw message