[jbossws-issues] [JBoss JIRA] Commented: (JBWS-2127) Cannot generate WSDL for binding "http://www.w3.org/2003/05/soap/bindings/HTTP/"

Richard Opalka (JIRA) jira-events at lists.jboss.org
Mon Aug 4 09:59:56 EDT 2008


    [ https://jira.jboss.org/jira/browse/JBWS-2127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12423500#action_12423500 ] 

Richard Opalka commented on JBWS-2127:
--------------------------------------

Relevant piece of code:

    private static SDDocumentImpl generateWSDL(WSBinding binding, AbstractSEIModelImpl seiModel, List<SDDocumentImpl> docs,
                                               Container container, Class implType) {
        BindingID bindingId = binding.getBindingId();
        if (!bindingId.canGenerateWSDL()) {
            throw new ServerRtException("can.not.generate.wsdl", bindingId); // here our exception is thrown
        }

        ...
    }

That means bindingId.canGenerateWSDL() returns false.
And here is the copy/paste from JAXWS-2.1.3 code base for this method:

    /**
     * Returns true if this binding can generate WSDL.
     *
     * <p>
     * For e.g.: SOAP 1.1 and "XSOAP 1.2" is supposed to return true
     * from this method. For SOAP1.2, there is no standard WSDL, so the
     * runtime is not generating one and it expects the WSDL is packaged.
     *
     */
    public boolean canGenerateWSDL() {
        return false;
    }

That means this JAXWS related issue is by design :(

> Cannot generate WSDL for binding "http://www.w3.org/2003/05/soap/bindings/HTTP/"
> --------------------------------------------------------------------------------
>
>                 Key: JBWS-2127
>                 URL: https://jira.jboss.org/jira/browse/JBWS-2127
>             Project: JBoss Web Services
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: jbossws-metro
>    Affects Versions: jbossws-metro-3.0.1
>            Reporter: Thomas Diesler
>            Assignee: Richard Opalka
>             Fix For:  jbossws-metro-3.0.3
>
>
> [tdiesler at tdvaio trunk]$ ant -Dtest=jaxws/binding test
> Caused by: com.sun.xml.ws.server.ServerRtException: Cannot generate WSDL for binding "http://www.w3.org/2003/05/soap/bindings/HTTP/"
>         at com.sun.xml.ws.server.EndpointFactory.generateWSDL(EndpointFactory.java:415)
>         at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:196)
>         at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:467)
>         at org.jboss.wsf.stack.metro.DeploymentDescriptorParserExt.parseAdapters(DeploymentDescriptorParserExt.java:291)
>         at org.jboss.wsf.stack.metro.DeploymentDescriptorParserExt.parse(DeploymentDescriptorParserExt.java:167)
>         at org.jboss.wsf.stack.metro.metadata.RuntimeModelDeploymentAspect.create(RuntimeModelDeploymentAspect.java:111)

-- 
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