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 "Davanum Srinivas (JIRA)" <ji...@apache.org> on 2006/09/07 04:02:23 UTC

[jira] Commented: (AXIS2-1116) WSDL2Java with Xmlbeans binding is not generating classes for all schema

    [ http://issues.apache.org/jira/browse/AXIS2-1116?page=comments#action_12433011 ] 
            
Davanum Srinivas commented on AXIS2-1116:
-----------------------------------------

#1 is already fixed. please try a nightly.

> WSDL2Java with Xmlbeans binding is not generating classes for all schema
> ------------------------------------------------------------------------
>
>                 Key: AXIS2-1116
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1116
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.0
>         Environment: Windows XP, Axis 2.0 nightly build (2006-09-02)
>            Reporter: Brennan Spies
>         Attachments: files.zip
>
>
> I have 3 XML Schemas that are used by my service definition in Query.wsdl. I am specifying 'xmlbeans' as the databinding option and doing the code generation with the following ant task (see attached for source):
> 		<codegen wsdlfilename="${basedir}/xml/Query.wsdl" output="${basedir}" serverside="true" 
> 			generateservicexml="true" packagename="com.ejgallo.workflow.service.query" synconly="true" 
> 			namespaceToPackages="urn:ejgallo:workflow:routing=com.ejgallo.workflow.service.routing,urn:ejgallo:worklfow:service=com.ejgallo.workflow.service,urn:ejgallo:workflow:service:query=com.ejgallo.workflow.service.query"
> 			databindingName="xmlbeans" serviceName="QueryWebService" generateAllClasses="true" serverSideInterface="true"
> 			testcase="true" unpackclasses="true"/>
> There are 3 problems here:
> 1)  Only one of the schema files, workflowTypes.xsd, has XMLBeans source files generated for it, though the console output indicates that all 3 are found/referenced. (No problem when Xmlbeans' ant task is used instead).
> 2) Under the /resources directory, the referenced schema files are generated as 'xsd0.xsd', 'xsd1.xsd', and 'xsd2.xsd'. Because the original schema file names are referenced in the WSDL and XSD files, this leads to the appropriate files not being found when it is deployed as an .aar.
> 3) The 'namespaceToPackages' attribute on the ant task is not being honored, leading the source files for the generated Xmlbeans classes to be the default that Axis chooses for them based on the namespace.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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