35 Replies Latest reply on Oct 7, 2011 1:36 AM by BKBK

    Coldfusion invoke web service

    BJ - CF

      I am trying to invoke a web service and I'm getting an error.

       

      Error 401 Unauthorized.  Unable to read WSDL from URL: http://servername/generation/bj/TestCalculation.wsdl.  An exception occurred while invoking an event handler method from Application.cfc. The method name is: onRequest.

       

      I can put the URL in the browser and it will pull up the WSDL. I can call this from a flex program and it will work fine.  I don't know much about Flex and I'm just learning it so I wanted to see if I could get it to work with ColdFusion.  

       

      Here is the CFC I created:

       

          <cffunction name="myCalcFunction" access="remote" returntype="any">

                  <cfinvoke

           webservice="http://servername/generation/bj/TestCalculation.wsdl"

           method="TestCalculation"

           returnvariable="response">

           <cfinvokeargument name="number1" value="#arguments.number1#"/>

           <cfinvokeargument name="number2" value="#arguments.number2#"/>

         </cfinvoke>

        <cfreturn response>

      </cffunction>

       

      Can anyone point me in the right direction of what I can do?

       

      thanks for the support.

       

      BJ

        • 1. Re: Coldfusion invoke web service
          Owain North Level 4

          Try adding ?wsdl at the end of the url, and do refreshwsdl=true to make sure it's not using an incorrectly cached interface.

          • 2. Re: Coldfusion invoke web service
            BJ - CF Level 1

            Owain,

             

              Thanks for the reply.  I added the two items but I get the same error message.

             

                <cffunction name="myCalcFunction" access="remote" returntype="any">

                        <cfinvoke

                 webservice="http://servername/generation/bj/TestCalculation.wsdl?wsdl"

                 method="TestCalculation" refreshwsdl="true"

                 returnvariable="response">

                 <cfinvokeargument name="number1" value="#arguments.number1#"/>

                 <cfinvokeargument name="number2" value="#arguments.number2#"/>

               </cfinvoke>

              <cfreturn response>

            </cffunction>

            • 3. Re: Coldfusion invoke web service
              Owain North Level 4

              And the file extension of the webservice is definitely .wsdl? I've never seen that before. What technology is publishing it?

               

              Webservices are also cached in CF Admin, so load up that and find the Webservices section - delete the cached WSDL if there is one for yours.

              • 4. Re: Coldfusion invoke web service
                BJ - CF Level 1

                Yes, the extenstion is WSDL.  We are using a product called NextAxiom.  It is a middleware software.  I can use the web service in Adobe Flex and it will call this same WSDL and work fine.  That is why I'm thinking it is something with CF.  I'm not sure why I'm getting an unauthorized error since it works in Flex.

                • 5. Re: Coldfusion invoke web service
                  Dan Bracuk Level 5

                  Can you browse to the wsdl file and see the xml?

                  • 6. Re: Coldfusion invoke web service
                    BJ - CF Level 1

                    Yes, I can browse the WSDL and it brings back the XML fine.

                     

                    thanks for the reply.

                     

                    BJ

                    • 7. Re: Coldfusion invoke web service
                      BKBK Adobe Community Professional & MVP

                      BJ - CF wrote:

                       

                      Error 401 Unauthorized.  Unable to read WSDL from URL: http://servername/generation/bj/TestCalculation.wsdl.  An exception occurred while invoking an event handler method from Application.cfc. The method name is: onRequest.

                       

                      Comment out the onRequest method in Application.cfc. You may not use it when working with web services in this way

                      • 8. Re: Coldfusion invoke web service
                        BJ - CF Level 1

                        I commented out the onRequest but it is still giving me the error.

                         

                        thanks,

                        BJ

                         

                        ruct
                        DetailError: 401 Unauthorized.
                        MessageUnable to read WSDL from URL: http://servername/generation/bj/TestCalculation.wsdl?wsdl.
                        StackTracecoldfusion.xml.rpc.XmlRpcServiceImpl$CantFindWSDLException: Unable to read WSDL from URL: http://servername/generation/bj/TestCalculation.wsdl?wsdl. at coldfusion.xml.rpc.XmlRpcServiceImpl.retrieveWSDL(XmlRpcServiceImpl.java:709) at coldfusion.xml.rpc.XmlRpcServiceImpl.access$000(XmlRpcServiceImpl.java:53) at coldfusion.xml.rpc.XmlRpcServiceImpl$1.run(XmlRpcServiceImpl.java:239) at java.security.AccessController.doPrivileged(Native Method) at coldfusion.xml.rpc.XmlRpcServiceImpl.registerWebService(XmlRpcServiceImpl.java:232) at coldfusion.xml.rpc.XmlRpcServiceImpl.getWebService(XmlRpcServiceImpl.java:496) at coldfusion.xml.rpc.XmlRpcServiceImpl.getWebServiceProxy(XmlRpcServiceImpl.java:450) at coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:449) at cfCalculateTwoNumbers2ecfc1061183910$funcMYCALCFUNCTION.runFunction(E:\Tristate\Generatio n\BJ\CalculateTwoNumbers.cfc:8) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:517) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:496) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:355) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2301) at coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:382) at cfCalculateTwoNumbers2ecfm1061183952.runPage(E:\Tristate\Generation\BJ\CalculateTwoNumber s.cfm:7) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:360) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:94) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:79) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:126) at coldfusion.CfmServlet.service(CfmServlet.java:200) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 ) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
                        • 10. Re: Coldfusion invoke web service
                          BJ - CF Level 1

                          No, I'm invoking the webservice from the CFC and the webservice URL should be point at my WSDL file.

                          • 11. Re: Coldfusion invoke web service
                            BKBK Adobe Community Professional & MVP

                            BJ - CF wrote:

                             

                            I am trying to invoke a web service and I'm getting an error.

                             

                            Error 401 Unauthorized.

                            OK, I now notice the 401. That seems to be the main hint. Does it still occur when you change the access in the tag <cffunction name="myCalcFunction" access="remote" returntype="any"> from "remote" to "public"?

                            • 12. Re: Coldfusion invoke web service
                              BJ - CF Level 1

                              OK, I got it to work on my CF local web server on my desk top.  But on the companies dev web server it gives me the error.  What would be giving me an Unauthorized error?

                              • 13. Re: Coldfusion invoke web service
                                BKBK Adobe Community Professional & MVP

                                My question about the access attribute?

                                • 14. Re: Coldfusion invoke web service
                                  BJ - CF Level 1

                                  Yes, I got the same error when I changed it to public.  That is when I then tried to try it on my local and that part worked.

                                   

                                  thanks,

                                   

                                  bj

                                  • 15. Re: Coldfusion invoke web service
                                    BKBK Adobe Community Professional & MVP

                                    Then it probably just means what it says. The machine hosting the web service requires the machine calling the service to first obtain permission.

                                     

                                    So the problem is still one of access. But then, at the level of client and server. What is the situation about permissions, allowed IPs, login, etc. on the machine hosting the service?

                                    • 16. Re: Coldfusion invoke web service
                                      Adam Cameron. Level 5

                                      BKBK wrote:

                                       

                                      BJ - CF wrote:

                                       

                                      I am trying to invoke a web service and I'm getting an error.

                                       

                                      Error 401 Unauthorized.

                                      OK, I now notice the 401. That seems to be the main hint. Does it still occur when you change the access in the tag <cffunction name="myCalcFunction" access="remote" returntype="any"> from "remote" to "public"?

                                       

                                      That was never a sensible suggestion.  One can't call a PUBLIC method as a web service (ie: REMOTEly).  Even if the web service is located on the same box, it's still being called remotely.

                                       

                                      --

                                      Adam

                                      • 17. Re: Coldfusion invoke web service
                                        Adam Cameron. Level 5

                                        OK, I got it to work on my CF local web server on my desk top.  But on the companies dev web server it gives me the error.  What would be giving me an Unauthorized error?

                                         

                                        Because the URL you're requesting requires authorisation before you can access it:

                                        http://en.wikipedia.org/wiki/HTTP_401#4xx_Client_Error

                                         

                                        What happens if you just browse to the URL in a web browser.  I imagine you get a login prompt?

                                         

                                        --

                                        Adam

                                        • 18. Re: Coldfusion invoke web service
                                          BJ - CF Level 1

                                          If I put the URL in the browser, which is the WSDL, it will bring up the XML file fine and doesn't prompt me.

                                           

                                          BJ

                                          • 19. Re: Coldfusion invoke web service
                                            Adam Cameron. Level 5

                                            If I put the URL in the browser, which is the WSDL, it will bring up the XML file fine and doesn't prompt me.

                                             

                                             

                                            OK, cool.  Now... what if you call the method via the browser?

                                             

                                            update:

                                            Oh, and are you browsing that URL from the CF server, or your own PC?

                                             

                                            --
                                            Adam

                                             

                                            Message was edited by: Adam Cameron.

                                            • 20. Re: Coldfusion invoke web service
                                              BJ - CF Level 1

                                              Here is my process:

                                               

                                              I tried to run it on our dev machine and that is when I get the 401 error that we talked about.  I got it to work on the dev machine with Flex and web services (no ColdFusion call). Now I wanted to try it with ColdFusion. I couldn't get it to work with coldFusion on dev so I tried to see if I can run it from my local machine.  Yes, it works on my local CF web server.  I have a .cfm file that accepts two numbers and when you submit it, it will call the cfc with the invoke. The result of the two numbers should come back.  It should call this web service I created to add them together. So now I have it working on my local but my questions is what or where do I look to get it to run on the company's web server (dev)?

                                               

                                              On the dev server I put the CFC in the browser and it came back and asked for the RDS password. Adam is this what you meant when you said to call the method via the browser?  Here is the info it put out after I entered the password:

                                               

                                              Generation.BJ.CalculateTwoNumbers

                                              Component CalculateTwoNumbers

                                               

                                               

                                               

                                              hierarchy:WEB-INF.cftags.component
                                                    Generation.BJ.CalculateTwoNumbers
                                              path:E:\Tristate\Generation\BJ\CalculateTwoNumbers.cfc
                                              serializable:Yes
                                              properties:
                                              methods:myCalcFunction

                                              * - private method

                                               

                                              myCalcFunction
                                              public any myCalcFunction ( )

                                               

                                              Output:

                                               

                                               

                                              thanks for the replies,

                                               

                                              BJ

                                              • 21. Re: Coldfusion invoke web service
                                                BKBK Adobe Community Professional & MVP

                                                Adam Cameron. wrote:

                                                 

                                                BKBK wrote:

                                                 

                                                BJ - CF wrote:

                                                 

                                                I am trying to invoke a web service and I'm getting an error.

                                                 

                                                Error 401 Unauthorized.

                                                OK, I now notice the 401. That seems to be the main hint. Does it still occur when you change the access in the tag <cffunction name="myCalcFunction" access="remote" returntype="any"> from "remote" to "public"?

                                                 

                                                That was never a sensible suggestion.  One can't call a PUBLIC method as a web service (ie: REMOTEly).  Even if the web service is located on the same box, it's still being called remotely.

                                                You misunderstand, Adam. That function appears to be the client (caller), not the server (web service). In any case, that was how I read it.

                                                • 22. Re: Coldfusion invoke web service
                                                  BKBK Adobe Community Professional & MVP

                                                  BJ - CF, I am a bit confused now. Which one is the web service, CalculateTwoNumbers.cfc or TestCalculation.wsdl? On which machine is the web service, and from which machine are you attempting to invoke the web service?

                                                   

                                                  What happens when you create a test CFM page, and run the following code

                                                   

                                                     <cfinvoke

                                                       webservice="http://servername/generation/bj/TestCalculation.wsdl"

                                                       method="TestCalculation"

                                                       returnvariable="response">

                                                       <cfinvokeargument name="number1" value="1"/>

                                                       <cfinvokeargument name="number2" value="2"/>

                                                     </cfinvoke>

                                                    <cfdump var="#response#">

                                                  • 23. Re: Coldfusion invoke web service
                                                    BJ - CF Level 1

                                                    Sorry for the confusion. 

                                                     

                                                    • I have a CFM program which is just the form that has two fields the user can put in numbers and then a result field and a submit button.
                                                    • I have a CFC which is called when the user submits the form.  The CFC has the tag <cfinvoke> to call the web service. I seperated the invoke into a CFC since I thought that way it would be able to be called from CFM program that needed that web service.
                                                    • The testCalculation.wsdl is the web service XML that will call the service to add the numbers together.

                                                     

                                                     

                                                    I changed my code to just call the cfinvoke from the cfm program.

                                                     

                                                    • Localhost, works, the value come back
                                                    • Dev machine, doesn't work -- gives the 401 error.

                                                     

                                                    BJ

                                                    • 24. Re: Coldfusion invoke web service
                                                      Adam Cameron. Level 5

                                                       

                                                      On the dev server I put the CFC in the browser and it came back and asked for the RDS password. Adam is this what you meant when you said to call the method via the browser?  Here is the info it put out after I entered the password:

                                                       

                                                      Nope, not quite.  I mean do this:

                                                       

                                                      http://domain/path/to/webservice.cfc?wsdl&method=foo&arg1=bar[&etc...]

                                                       

                                                      How there's a problem here:

                                                       

                                                       

                                                       

                                                      hierarchy:WEB-INF.cftags.component
                                                            Generation.BJ.CalculateTwoNumbers
                                                      path:E:\Tristate\Generation\BJ\CalculateTwoNumbers.cfc
                                                      serializable:Yes
                                                      properties:
                                                      methods:myCalcFunction

                                                      * - private method

                                                       

                                                      myCalcFunction
                                                      public any myCalcFunction ( )

                                                       

                                                      Output:

                                                       

                                                       

                                                       

                                                      To call a method as a web service it must be access=remote.  There are no remote methods in there.

                                                       

                                                      --
                                                      Adam

                                                      • 25. Re: Coldfusion invoke web service
                                                        BKBK Adobe Community Professional & MVP

                                                        BJ - CF, just to finally clear things up:

                                                        1) What is the name of the CFC (or WSDL) of the web service?

                                                        (My assumption was that TestCalculation is the web service. However, you say in your last post that TestCalculation is just an XML to call the web service.)

                                                        2) On which machine is the web service located: on localhost, on Dev or on some other machine?

                                                        • 26. Re: Coldfusion invoke web service
                                                          BJ - CF Level 1

                                                          Adam,

                                                           

                                                             I ran this URL: http://servername/generation/bj/TestCalculation.wsdl?wsdl?method=TestCalculation&arg1=4&ar g2=5 on the dev machine and it came back with the XML file.

                                                           

                                                            Also, I did have remote on the cfinvoke, I think I grab the wrong one when BKBK said to try it with public and that is the one that was listed.

                                                           

                                                          thanks,

                                                           

                                                          BJ

                                                          • 27. Re: Coldfusion invoke web service
                                                            BJ - CF Level 1

                                                            BKBK,

                                                             

                                                               THe WSDL is the XML file that has all the information needed to call the service.  The WSDL is called TestCalculation.wsdl that was generated from some middleware software to run the service.  The method in the WSDL file is TestCalculation. 

                                                             

                                                            The WSDL file is in the same directory as the programs.  So on the dev machine the WSDL is with the CFM and CFC file and on my local machine I have the WSDL file there.  So it just depends on which one I call.  The actual service is on a totally different machine that my local machine and the dev machine should get to and the WSDL has that path.  Again, that path works since I can get it to work on my local machine.

                                                             

                                                            I hope this clears up some.

                                                             

                                                            thanks,

                                                            BJ

                                                            • 28. Re: Coldfusion invoke web service
                                                              BKBK Adobe Community Professional & MVP

                                                              BJ - CF wrote:

                                                               

                                                               

                                                                 THe WSDL is the XML file that has all the information needed to call the service.  The WSDL is called TestCalculation.wsdl that was generated from some middleware software to run the service.  The method in the WSDL file is TestCalculation. 

                                                               

                                                              The WSDL file is in the same directory as the programs.  So on the dev machine the WSDL is with the CFM and CFC file and on my local machine I have the WSDL file there.  So it just depends on which one I call.  The actual service is on a totally different machine that my local machine and the dev machine should get to and the WSDL has that path.  Again, that path works since I can get it to work on my local machine.

                                                               

                                                              I hope this clears up some.

                                                               

                                                              This only raises the confusion to the n-th degree. In web service terminology, WSDL is reserved as a synonym of the web service itself. In other words, the WSDL is the web service.

                                                               

                                                              However, you seem to use the WSDL as some (XML) means to call the web service. The WSDL should not have "all the information needed to call the service"; the WSDL should be the web service. Unless, of course, you are making a call to a web service to call another web service. Is that so?

                                                               

                                                              So on the dev machine the WSDL is with the CFM and CFC file...

                                                              This seems to say the WSDL(hence the web service) is on the dev machine.

                                                               

                                                              ... on my local machine I have the WSDL file there.

                                                              This seems to say the WSDL(hence the web service) is on your local machine.

                                                               

                                                              ...The actual service is on a totally different machine

                                                              This seems to say the web service is on a third machine.

                                                              • 29. Re: Coldfusion invoke web service
                                                                BJ - CF Level 1

                                                                BKBK -

                                                                 

                                                                   I'm new to SOA/web services so maybe I'm not saying it right but I don't think we are on the same page.  In the defintion, the WSDL is just an XML based file used to describe the functionality offered by a web service. I don't need to know anything about the service except the inputs and outputs and the URL to call the WSDL.

                                                                 

                                                                I created a service to calculate two numbers and return the result using a software called NextAxiom that my company has.  This service is not sitting on our web server but on one of our machines on our network.  See below for the WSDL file I have listed.  I was just trying to use some of the standards that I read about and was using a CFC to invoke the web service so any CFM program would be able to call the CFC and not put it in the CFM program.  But for now I can just put in the invoke tag in my CFM code:

                                                                    

                                                                  <cfinvoke

                                                                            webservice="http://localhost/TestCalculation.wsdl?wsdl"

                                                                            method="TestCalculation" refreshwsdl="true"

                                                                            returnvariable="response">

                                                                            <cfinvokeargument name="number1" value="5"/>

                                                                            <cfinvokeargument name="number2" value="6"/>

                                                                                              </cfinvoke>

                                                                <cfdump var="#response#">

                                                                 

                                                                Doing this, I can run the CFM program and it will come back with 11.  This works great on my local CF server.  When I try and run it on my dev machine I get the 401 unauthorized error. (yes I change the path of the wsdl to the path that the WSDL is on my dev web server.)

                                                                 

                                                                So it looks like some type of permission problem.  My question is where do I look?

                                                                 

                                                                thanks for all replys,

                                                                 

                                                                BJ

                                                                 

                                                                 

                                                                 

                                                                Here is my WSDL file.  If you notice the bold line at the bottom, that is the server where my service is.

                                                                 

                                                                 

                                                                <!--

                                                                 

                                                                Automatically generated 09/23/2011 by Hyperservice Business Platform, NextAxiom Technology, Inc.

                                                                -->

                                                                 

                                                                <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"xmlns:tns="http://www.nextaxiom.com/soapservice/TrainingBJ.TestCalc.TestCalculation/wsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema"xmlns:xsd1="http://www.nextaxiom.com/soapservice/xsd1" name="TrainingBJ.TestCalc.TestCalculation"targetNamespace="http://www.nextaxiom.com/soapservice/TrainingBJ.TestCalc.TestCalculation/wsdl">

                                                                 

                                                                 

                                                                <types>

                                                                 

                                                                 

                                                                <schema xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"targetNamespace="http://www.nextaxiom.com/soapservice/xsd1">

                                                                 

                                                                 

                                                                <element name="TestCalculation">

                                                                 

                                                                 

                                                                <complexType>

                                                                 

                                                                 

                                                                <sequence>

                                                                 

                                                                 

                                                                <element name="number1" type="long"/>

                                                                 

                                                                <element name="number2" type="long"/>

                                                                </sequence>

                                                                </complexType>

                                                                </element>

                                                                 

                                                                <element name="TestCalculationResult">

                                                                 

                                                                 

                                                                <complexType>

                                                                 

                                                                 

                                                                <sequence>

                                                                 

                                                                 

                                                                <element name="result" type="long"/>

                                                                 

                                                                </sequence>

                                                                </complexType>

                                                                </element>

                                                                </schema>

                                                                </types>

                                                                 

                                                                <message name="TestCalculationRequest">

                                                                 

                                                                 

                                                                <part element="xsd1:TestCalculation" name="TestCalculation"/>

                                                                 

                                                                </message>

                                                                 

                                                                <message name="TestCalculationResponse">

                                                                 

                                                                 

                                                                <part element="xsd1:TestCalculationResult" name="TestCalculationResult"/>

                                                                 

                                                                </message>

                                                                 

                                                                <portType name="TrainingBJ.TestCalc.TestCalculationSoapPort">

                                                                 

                                                                 

                                                                <operation name="TestCalculation">

                                                                 

                                                                 

                                                                <input message="tns:TestCalculationRequest"/>

                                                                 

                                                                <output message="tns:TestCalculationResponse"/>

                                                                </operation>

                                                                </portType>

                                                                 

                                                                <binding name="TrainingBJ.TestCalc.TestCalculationSoapBinding" type="tns:TrainingBJ.TestCalc.TestCalculationSoapPort">

                                                                 

                                                                 

                                                                <soap:binding xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

                                                                 

                                                                 

                                                                <operation name="TestCalculation">

                                                                 

                                                                 

                                                                <soap:operation xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:doc?in=TestCalculation?out=TestCalculationResult?path=TrainingBJ.TestCalc.TestCalculat ion"/>

                                                                 

                                                                 

                                                                <input>

                                                                 

                                                                 

                                                                <soap:body use="literal"/>

                                                                 

                                                                </input>

                                                                 

                                                                <output>

                                                                 

                                                                 

                                                                <soap:body use="literal"/>

                                                                 

                                                                </output>

                                                                </operation>

                                                                </binding>

                                                                 

                                                                <service name="TrainingBJ.TestCalc.TestCalculation">

                                                                 

                                                                 

                                                                <port binding="tns:TrainingBJ.TestCalc.TestCalculationSoapBinding" name="TrainingBJ.TestCalc.TestCalculationPort">

                                                                 

                                                                 

                                                                </port>

                                                                </service>

                                                                </definitions>

                                                                • 30. Re: Coldfusion invoke web service
                                                                  BKBK Adobe Community Professional & MVP

                                                                  OK, I understand. One aspect that could differ between your local and dev machines, and that could require authorization, is a proxy. So, does a proxy (or other IP filter) allow your local machine but forbid your dev server?

                                                                  • 31. Re: Coldfusion invoke web service
                                                                    BJ - CF Level 1

                                                                    BKBK,

                                                                     

                                                                      This one I'm not sure what you are asking.  Can you give me more details.

                                                                     

                                                                    thanks,

                                                                     

                                                                    BJ

                                                                    • 32. Re: Coldfusion invoke web service
                                                                      BKBK Adobe Community Professional & MVP

                                                                      Ask your System Administrator whether your network is behind a proxy server.

                                                                      • 33. Re: Coldfusion invoke web service
                                                                        BJ - CF Level 1

                                                                        I think I found the problem but again I don't know how to solve it.  The program is working on my localhost but not on our dev server.  I checked and we aren't behind a proxy server.  The only difference between my localhost and my dev server is the dev server was on CF9.1 and my local was just at CF9.0.  I updated my local to 9.1 and now it is not working on my localhost and I'm getting the same error I was getting on my dev machine.  Something changed in 9.1. 

                                                                         

                                                                        I want to try and go back to 9.0 on my dev and see if my program runs.  Is there anyway to back out the change or do I uninstall and reinstall 9?

                                                                         

                                                                        Anyone else have problems on CF 9.1 like this.

                                                                        • 34. Re: Coldfusion invoke web service
                                                                          BJ - CF Level 1

                                                                          Yes,  I finally found out it is a coldfusion 9.1 problem.    I uninstalled CF9.1 and installed CF8 and CF9.0 on my local machine.  I ran the web service code in both and it worked in both.  I then updated my CF9.0 to CF9.1.  I ran it again and it will give me the error.  This is running the same code with the same application.cfc.   Now I need to get Adobe to fix the problem.

                                                                           

                                                                           

                                                                          BKBK, Adam, Dan and Owain,

                                                                           

                                                                             Thanks for the help on this.

                                                                           

                                                                          BJ

                                                                          • 35. Re: Coldfusion invoke web service
                                                                            BKBK Adobe Community Professional & MVP

                                                                            BJ - CF wrote:

                                                                             

                                                                            Yes,  I finally found out it is a coldfusion 9.1 problem.    I uninstalled CF9.1 and installed CF8 and CF9.0 on my local machine.  I ran the web service code in both and it worked in both.  I then updated my CF9.0 to CF9.1.  I ran it again and it will give me the error.  This is running the same code with the same application.cfc.   Now I need to get Adobe to fix the problem.

                                                                             

                                                                             

                                                                            BKBK, Adam, Dan and Owain,

                                                                             

                                                                               Thanks for the help on this.

                                                                             

                                                                            BJ

                                                                            BJ - CF,

                                                                            Thank you, too, for sharing 2 things with us. Your debugging skills and, more importantly, virtue of patience.