Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-908

Remove hard-coded references to soap 1.0

Details

    Description

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

                      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());
                      }
      

      Attachments

        Activity

          People

            fmui Florian Müller
            melahn Gregory Melahn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment