[jbossws-issues] [JBoss JIRA] Updated: (JBWS-2725) wsonsume doesn't like the contract app URLs (http://localhost:8080/contract)

Alessio Soldano (JIRA) jira-events at lists.jboss.org
Sat Sep 5 19:14:23 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBWS-2725?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alessio Soldano updated JBWS-2725:
----------------------------------

      Component/s: tools-jaxws
    Fix Version/s: jbossws-native-3.3


AFAICS this is a limit of the Sun's tools implementation, which JBWS-Native depends on. This would probably solved with an approach similar to what I've done for https://jira.jboss.org/jira/browse/WISE-134

> wsonsume doesn't like the contract app URLs (http://localhost:8080/contract)
> ----------------------------------------------------------------------------
>
>                 Key: JBWS-2725
>                 URL: https://jira.jboss.org/jira/browse/JBWS-2725
>             Project: JBoss Web Services
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: jbossws-native, tools-jaxws
>    Affects Versions:  jbossws-2.0.2
>            Reporter: Tom Fennelly
>            Assignee: Alessio Soldano
>             Fix For: jbossws-native-3.3
>
>
> The WSDL URL for ESB based webservices are of the form "http://127.0.0.1:8080/contract/contract.jsp?serviceCat=MyServiceCategory&serviceName=MyWSProducerService&protocol=http".  The wsconsume tool doesn't like them.  See the example below.  Might be a JBossWS specific issue at org.jboss.ws.tools.jaxws.impl.SunRIConsumerImpl.consume(SunRIConsumerImpl.java:190).
> wsconsume -v -k -o /Jboss/ESB/trunk/product/samples/quickstarts/webservice_producer/build/wsclient http://127.0.0.1:8080/contract/contract.jsp?serviceCat=MyServiceCategory&serviceName=MyWSProducerService&protocol=http
> parsing WSDL...
> [ERROR] Content is not allowed in prolog.
>   line 12 of http://127.0.0.1:8080/contract/contract.jsp?serviceCat=MyServiceCategory
> [ERROR] Failed to read the WSDL document: http://127.0.0.1:8080/contract/contract.jsp?serviceCat=MyServiceCategory, because 1) could not find the document; /2) the document could not be read; 3) the root element of the document is not <wsdl:definitions>.
> unknown location
> Failed to parse the WSDL.
> Failed to invoke WsImport
> java.lang.IllegalStateException: WsImport invocation failed. Try the verbose switch for more information
>         at org.jboss.ws.tools.jaxws.impl.SunRIConsumerImpl.consume(SunRIConsumerImpl.java:190)
>         at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:216)
>         at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:79)
> 'serviceName' is not recognized as an internal or external command,
> operable program or batch file.
> 'protocol' is not recognized as an internal or external command,
> operable program or batch file.

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

        


More information about the jbossws-issues mailing list