You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Raymond Feng (JIRA)" <tu...@ws.apache.org> on 2008/03/04 21:01:42 UTC

[jira] Commented: (TUSCANY-2062) WSDL2Java code generation fails on WSDL with multiple namespace imports

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


Re: [jira] Commented: (TUSCANY-2062) WSDL2Java code generation fails on WSDL with multiple namespace imports

Posted by Giorgio Zoppi <gi...@gmail.com>.
I've problems with SCA WSDL and Axis2 and Python ZSI too. I fetched a WSDL
and i'm trying to use a databinding. Could you try in one of your example to:
1) fetch a WSDL with wget or curl
2) use Python ZSI to invoke some business function using a databinding?

I'll try it again :), but let me know if for you works.
Cheers,
Giorgio.

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org