[ 
https://issues.apache.org/jira/browse/AXIS2-1435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509807
 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-1435:
-----------------------------------------------------

can you attach your wsdl, I could not access the wsdl through your given link.
Here is the way wsdl2java generates the code.
When generating Stub wsdl2java generates code for all services (unless you have 
restricted)
When generating Stub for a service if you have given -ap (use this option) It 
generates stubs for all the ports.
Here wsdl2java assume all your ports refer to same portType ( if not it picks 
one port Type and generate code for it).

So if you want to generate code for all ports,
1. first make sure one service refer only to one portType (otherwise add a new 
service)
2. use -ap option

> Can't generate code for more than one interface using wsdl2java
> ---------------------------------------------------------------
>
>                 Key: AXIS2-1435
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1435
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.1
>         Environment: Sun JDK 1.5, WinXP
>            Reporter: yogen
>            Assignee: Amila Chinthaka Suriarachchi
>
> I am using wsdl2java to generate code for WSRP WSDL, find WSDL at this 
> location:
> https://svn.apache.org/repos/asf/portals/wsrp4j/trunk/wsdl
> Ideally, command
> >wsdl2java -d xmlbeans -p com.sample -ss -sd -g -uri wsrp_service.wsdl 
> should generate code for all the interfaces in WSDL but wsdl2java randomly 
> picks up anyone interface and generates the code for it.
> When its run subsequently to generate code for other interfaces, it says 
> "INFO: File .\src\com\sample\WSRPServiceStub.java will not be overwritten."
> C:\work\WSRP>wsdl2java -d adb -p com.sample -ss -sd -g -uri wsrp_service.wsdl 
> -pn WSRPServiceDescriptionService
> Using AXIS2_HOME:   C:\software\axis2-rc1
> Using JAVA_HOME:    //ms/dist/msjava/PROJ/sunjdk/1.5.0_04
> Retrieving document at 'wsrp_v1_bindings.wsdl', relative to 
> 'file:/C:/work/WSRP/'.
> Retrieving document at 'wsrp_v1_interfaces.wsdl', relative to 
> 'file:/C:/work/WSRP/wsrp_v1_bindings.wsdl'.
> Retrieving schema at 'wsrp_v1_types.xsd', relative to 
> 'file:/C:/work/WSRP/wsrp_v1_interfaces.wsdl'.
> Retrieving schema at 'xml.xsd', relative to 
> 'file:/C:/work/WSRP/wsrp_v1_types.xsd'.
> Oct 17, 2006 2:42:06 PM org.apache.axis2.wsdl.codegen.writer.ClassWriter 
> createOutFile
> INFO: File .\src\com\sample\WSRPServiceSkeleton.java will not be overwritten.
> Oct 17, 2006 2:42:06 PM org.apache.axis2.wsdl.codegen.writer.ClassWriter 
> createOutFile
> INFO: File .\src\com\sample\WSRPServiceMessageReceiverInOut.java will not be 
> overwritten.
> Oct 17, 2006 2:42:06 PM org.apache.axis2.wsdl.codegen.writer.ClassWriter 
> createOutFile
> INFO: File .\src\com\sample\InvalidRegistrationException.java will not be 
> overwritten.
> Oct 17, 2006 2:42:06 PM org.apache.axis2.wsdl.codegen.writer.ClassWriter 
> createOutFile
> INFO: File .\src\com\sample\OperationFailedException.java will not be 
> overwritten.
> Oct 17, 2006 2:42:06 PM org.apache.axis2.wsdl.codegen.writer.ClassWriter 
> createOutFile
> INFO: File .\src\com\sample\WSRPServiceCallbackHandler.java will not be 
> overwritten.
> Oct 17, 2006 2:42:06 PM org.apache.axis2.wsdl.codegen.writer.ClassWriter 
> createOutFile
> INFO: File .\src\com\sample\InvalidRegistrationException.java will not be 
> overwritten.
> Oct 17, 2006 2:42:06 PM org.apache.axis2.wsdl.codegen.writer.ClassWriter 
> createOutFile
> INFO: File .\src\com\sample\OperationFailedException.java will not be 
> overwritten.
> Oct 17, 2006 2:42:06 PM org.apache.axis2.wsdl.codegen.writer.ClassWriter 
> createOutFile
> INFO: File .\src\com\sample\WSRPServiceStub.java will not be overwritten.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to