4 Replies Latest reply on Jun 25, 2007 11:45 PM by aprophis

    invoke webservice behind ssl proxy

    aprophis Level 1
      Trying to connect to a webservice behind SSL Proxy with following url:
      https://ssl.xyz.com/is-db/cfc/listingservice.cfc?WSDL,DanaInfo=servername.int.com

      if i open this url direct i got a clean XML Page, but if i use it in a cfinfoke statement i get following error

      **********************************
      Could not generate stub objects for web service invocation.
      Name: https://ssl.xyz.com/is-db/cfc/listingservice.cfc?WSDL,DanaInfo=servername.int.com. WSDL: https://ssl.xyz.com/is-db/cfc/listingservice.cfc?WSDL,DanaInfo=servername.int.com. org.xml.sax.SAXException: Fatal Error: URI=null Line=15: The element type "link" must be terminated by the matching end-tag "". It is recommended that you use a web browser to retrieve and examine the requested WSDL document for correctness. If the requested WSDL document can't be retrieved or it is dynamically generated, it is likely that the target web service has programming errors.

      *******************************

      anyone got an idee about that

      Daniel
        • 1. Re: invoke webservice behind ssl proxy
          insuractive Level 3
          We had the same problem. Our work around involved saving the WSDL locally and then using that to run the web service. As long as the WSDL contains a service port element, it will still send the data to the correct server.

          In order to ensure that the WSDL stayed up to date, we have a scheduled task that hits the server and downloads the WSDL on a regular basis. Of course, CFHTTP has problems with SSL as well, so you need to include 2 custom headers when you post. You should be able to find them by doing a search on cfhttp and SSL.
          • 2. Re: invoke webservice behind ssl proxy
            aprophis Level 1
            Thanks for response:

            can you explain me a little bit more how to do your solution.
            where do you store the WSDL File, with wath extension ?
            wath you mean with service port element?

            Thanks for Help
            **Sorry for such stupid questions, i am new to that topic.**
            • 3. Re: invoke webservice behind ssl proxy
              insuractive Level 3
              No problem. Simply save the WSDL file as a .wsdl on the server that will be performing the web service call. If you actually look at the contents of the WSDL, you'll notice at the bottom of the document an element that specifies the location of the actual web service. As long as this points to the web service on xyz.com's servers, it doesn't actually matter where the WSDL file resides.
              • 4. Re: invoke webservice behind ssl proxy
                aprophis Level 1
                Our SSL Proxy is just a forwarding service.

                the webservice runs on servername.int.com, there is no way to store the WSDL File on the xyz.com server, because there is only a cgi script file that forwards the url request.

                Thanks Daniel