[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-6591) Allow user to use default package names in from wsdl scenarios

Feng Qian (JIRA) jira-events at lists.jboss.org
Tue Jul 27 04:30:33 EDT 2010


    [ https://jira.jboss.org/browse/JBIDE-6591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12541151#action_12541151 ] 

Feng Qian commented on JBIDE-6591:
----------------------------------

Hi guys,

We can control the package name as Lukas said. 
As default, we don't set package name and use the default behaviour of wsconsume. If user want to set a package name, he can click a checkbox, then input one. 
Any ideas?

Grid

> Allow user to use default package names in from wsdl scenarios
> --------------------------------------------------------------
>
>                 Key: JBIDE-6591
>                 URL: https://jira.jboss.org/browse/JBIDE-6591
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: Webservices
>    Affects Versions: 3.2.0.M1
>            Reporter: Lukas Jungmann
>            Assignee: Feng Qian
>             Fix For: 3.2.x
>
>         Attachments: interfax.wsdl
>
>
> -create ws or ws client from attached WSDL
> => fails due to:
> Failed to Generate Web Service code, please check the log for more details
>     org.eclipse.core.runtime.CoreException: parsing WSDL...
>     
>     
>     [ERROR] Two declarations cause a collision in the ObjectFactory class.
>     line 227 of http://schemas.xmlsoap.org/soap/encoding/
>     
>     [ERROR] (Related to above error) This is the other declaration.
>     line 365 of file:/space/workspace-jboss/jbosstools-trunk/ws/tests/org.jboss.tools.ws.ui.test/resources/interfax.wsdl
>     
>     [ERROR] Two declarations cause a collision in the ObjectFactory class.
>     line 444 of http://schemas.xmlsoap.org/soap/encoding/
>     
>     [ERROR] (Related to above error) This is the other declaration.
>     line 363 of file:/space/workspace-jboss/jbosstools-trunk/ws/tests/org.jboss.tools.ws.ui.test/resources/interfax.wsdl
>     
>     [ERROR] Two declarations cause a collision in the ObjectFactory class.
>     line 366 of file:/space/workspace-jboss/jbosstools-trunk/ws/tests/org.jboss.tools.ws.ui.test/resources/interfax.wsdl
>     
>     [ERROR] (Related to above error) This is the other declaration.
>     line 453 of http://schemas.xmlsoap.org/soap/encoding/
>     
>     [ERROR] Two declarations cause a collision in the ObjectFactory class.
>     line 364 of file:/space/workspace-jboss/jbosstools-trunk/ws/tests/org.jboss.tools.ws.ui.test/resources/interfax.wsdl
>     
>     [ERROR] (Related to above error) This is the other declaration.
>     line 291 of http://schemas.xmlsoap.org/soap/encoding/
> Workaround: use binding files/inline wsdl customizations to resolve conflicts or switch to command line and use "wsconsume -k interfax.wsdl" (note ommited '-p' argument) to let the tool generate default packages (according to spec) from target namespaces defined in WSDL
> problem here is that we, in ws from wsdl and ws client wizards/scenarios, are forcing user to set a package name for generated classes but setting/using package name is not mandatory for under-lied tools (default behaviour is to map namespaces defined in WSDL/XSD to java package names - defined by spec), so we should relax this constraint

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

        


More information about the jbosstools-issues mailing list