You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Florian Müller (JIRA)" <ji...@apache.org> on 2015/04/20 23:15:00 UTC

[jira] [Commented] (CMIS-908) Remove hard-coded references to soap 1.0

    [ https://issues.apache.org/jira/browse/CMIS-908?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14503645#comment-14503645 ] 

Florian Müller commented on CMIS-908:
-------------------------------------

Strictly speaking CMIS does not specify SOAP 1.2 Web Services. The CMIS WSDLs only define SOAP 1.1 services. A server that only supports SOAP 1.2 but no SOAP 1.1 endpoints would not be spec compliant.
But this is an easy enhancement and might help in some environments.

> Remove hard-coded references to soap 1.0 
> -----------------------------------------
>
>                 Key: CMIS-908
>                 URL: https://issues.apache.org/jira/browse/CMIS-908
>             Project: Chemistry
>          Issue Type: Improvement
>          Components: opencmis-client-bindings
>    Affects Versions: OpenCMIS 0.12.0
>            Reporter: Gregory Melahn
>            Assignee: Florian Müller
>
> The method private URL getEndpointUrlFromWsdl(final String wsdlUrl, final CmisWebSerivcesService service) in org/apache/chemistry/opencmis/client/bindings/spi/webservices/AbstractPortProvider.java relies on a hardcoded reference to "http://schemas.xmlsoap.org/wsdl/soap/" which unfortunately means that it will fail with a server that is using soap12.   It would be nice if it could also support soap12 with something like ...
> {code}
>                 NodeList addressList = port.getElementsByTagNameNS("http://schemas.xmlsoap.org/wsdl/soap/", "address");
>                 if (addressList.getLength() < 1) {
>                     addressList = port.getElementsByTagNameNS("http://schemas.xmlsoap.org/wsdl/soap12/", "address");
>                 }
>                 if (addressList.getLength() < 1) {
>                     throw new CmisRuntimeException("This service has no endpoint address: " + service.getServiceName());
>                 }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)