You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Paul Ogren (JIRA)" <ji...@apache.org> on 2007/12/18 22:05:43 UTC

[jira] Commented: (AXIS2-3410) WSDL2CODE maven plugin not generating ports

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

Paul Ogren commented on AXIS2-3410:
-----------------------------------

I have managed to get this working by adding the undocumented configuration parameter <allPorts>.
I found this by looking at the source and the plugin.xml in the jar file.

I would like several problems addressed:
1)  Add the allPorts parameter to the public documentation http://ws.apache.org/axis2/tools/1_3/maven-plugins/maven-wsdl2code-plugin.html
2)  allPorts = true is supposed to be the default, but it isn't right now
3)  Why did this not work when I supplied one port name using the <portName> parameter?

> WSDL2CODE maven plugin not generating ports
> -------------------------------------------
>
>                 Key: AXIS2-3410
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3410
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.3
>         Environment: java 1.6.0, windows xp sp2, wsdl2code plugin 1.3 axis2 1.3, xmlbeans
>            Reporter: Paul Ogren
>         Attachments: addressing.xsd, ECIMRBulkLoadServiceDefinition.wsdl, pom.xml
>
>
> When I run the standalone program wsdl2java the code for the two ports is generated correctly.  Here is the command line that I use:
> wsdl2java -o . -p com.emc.cmp.iop.bulkload.ws  -d xmlbeans -g -u  -or -ss -ssi -sd -ap --noWSDL 
>     -uri resources\ECIMRBulkLoadServiceDefinition.wsdl
> However, when I run the maven plugin wsdl2code, I cannot get the port code to be generated (neither interface nor stub).  For example, here is the name of one of the classes that I'm looking for: ECIMRBulkTransferServiceECIMBulkTransferServiceSOAP12Port_jms2Stub.java.
> Here are the configuration settings from my pom.  I've tried with and without the serviceName and portName tags.
> <configuration>
>           <language>java</language>
>           <databindingName>xmlbeans</databindingName>
>           <packageName>com.emc.cmp.iop.bulkload.ws</packageName>
>           <generateServerSide>true</generateServerSide>
>           <generateAllClasses>true</generateAllClasses>
>           <generateServerSideInterface>true</generateServerSideInterface>
>           <generateServicesXml>true</generateServicesXml>
>           <wsdlFile>src/main/axis2/ECIMRBulkLoadServiceDefinition.wsdl</wsdlFile>
>           <unpackClasses>true</unpackClasses>
>           <!-- 
>           <serviceName>ECIMRBulkTransferService</serviceName>
>           <portName>ECIMRBulkTransferServiceSOAP12port_http1</portName>
>           -->        </configuration>

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org