[
https://issues.apache.org/jira/browse/TUSCANY-2062?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12575119#action_12575119
]
Raymond Feng commented on TUSCANY-2062:
---------------------------------------
I managed to get the code-gen working with the trunk code as follows:
1) Create a java project such as TUSCANY-2062
2) Copy the wsdls/xsds to the src folder
3) Create a text file named as sdogen.options in the src folder and add a line
"-javaPackage com.example.test.admin.sdo"
4) Run the following command (I tried inside eclipse with a run profile with
the working dir configured to be the root of TUSCANY-2062 project
java org.apache.tuscany.tools.wsdl2java.generate.WSDL2JavaGenerator
-targetDirectory src -javaPackage com.example.test.admin -generateSDO
-sdoGenArgs src\sdogen.options src\AdminServiceV2.wsdl
I'll attach the project.
The tricky part is that if we don't use -sdoGenArgs option, the sdo java
package will be the same as the generated Java interface and it causes
conflicts for the faults.
But the -sdoGenArgs requires an external configuration file such as
sdogen.options.
> WSDL2Java code generation fails on WSDL with multiple namespace imports
> -----------------------------------------------------------------------
>
> Key: TUSCANY-2062
> URL: https://issues.apache.org/jira/browse/TUSCANY-2062
> Project: Tuscany
> Issue Type: Bug
> Components: Java SDO Tools
> Affects Versions: Java-SCA-1.0.1
> Environment: Runtime Deployment is Solaris/Websphere 6.1 however this
> is a code generation bug
> Reporter: David Woolley
> Attachments: AdminServiceV2.wsdl, AuthenticationServiceV2.wsdl,
> ServiceV2Common.xsd
>
>
> As per summary. WSDLs and associated schemas will be attached.
--
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]