I would have to disagree with your statement 'cf was never built to take web services seriously'.
I have consumed various sorts of web services in cf6.1, cf7 and cf8 without issue. But yes I have also had to hand craft the soap requests on occasions. Here's my own bag of tips; 1. Check if the service is WS-I compliant (see ws-i.org), the more compliant the more likely it works with CF. Even fixing one or two issues of compliance can help. 2. Try the service with Java/Axis to confirm it works without CF. 3. Consider upgrading the axis jars in CF if necessary (see Tom Jordahls blog) 4. Use a tool like SoapUI to validate and test the service. It can also be invaluable if you must manually create the requests. 5. There are other gotchas, for example on windows the path to the stub classes must be less than 255 chars. HTH Cheers. On Thu, Jun 12, 2008 at 2:41 AM, theog <[EMAIL PROTECTED]> wrote: > > Like to thank everyone for their reply.. After working with both cf6.1 > and cf7, i have resigned to the fact that cf was never built to take > web services seriously. I have had to hand craft the soap request as > outlined in the link below: > > > http://www.coldfusiondeveloper.com.au/go/news/by/russ-michaels/20070518-coldfusion-web-services-and-soap/ > > On Jun 10, 5:43 pm, "skateboard.com.au" <[EMAIL PROTECTED]> > wrote: > > from my limited knowledge > > > > Axis/CFMX 6.* cant consume or deliver document literal webservices (the > > standard used widely by microsoft) > > > > I have had to write all my soap/xml "maunally" and transmit via cfhttp > > to get it to work. > > > > cheers > > > > Drew Peacock > > > > -----Original Message----- > > From: "CyberAngel" <[EMAIL PROTECTED]> > > To: <[email protected]> > > Date: Tue, 10 Jun 2008 17:36:47 +1000 > > Subject: [cfaussie] Re: consuming a web service from CFMX6.1 > > > > > I am not sure this is your problem or not, but it may help. > > > > > When connecting to the Java webservice, I found in those days (not sure > > > of > > > these days) that you had to pass the arguments and the returned > > > definitions > > > in the connection url for the web service. > > > > > The clue which I missed was the fact it complained similar to the below > > > error. But also with the likes of missing attribute or something like > > > that. > > > > > Probably not even close to your problem. > > > > > -----Original Message----- > > > From: [email protected] [mailto:[EMAIL PROTECTED] On > > > Behalf > > > Of theog > > > Sent: Tuesday, 10 June 2008 5:26 PM > > > To: cfaussie > > > Subject: [cfaussie] consuming a web service from CFMX6.1 > > > > > Hi , > > > > > Having strayed from the flock.. not quite to the dark side of .Net > > > but to Java, It has been sometime since I have contributed on this > > > forum. I hope I'm not ex-communicated and someone is nice enough to > > > answer my question? > > > > > We are still using CFMX6.1 to host some "legacy" apps, and I have > > > been tasked to switch an application over to calling a web service > > > written in java using CFX implementation. > > > > > I have tried to consume/call a simple method from code and from > > > within cf-admin and it throws the following exception [ Could not > > > generate stub objects for web service invocation.]. > > > > > Looking at the MX 6.1 documentation it appears as if CFMX6.1 > > > supports document as the SOAP binding style and literal as the > > > encoding Style. > > > > > Sample wsdl below : > > > > > <wsdl:definitions name="UserServiceEndpointService" > > > targetNamespace="http://api.user.services.company.com/"> > > > <wsdl:import location="http://hostedsite/user-ws/services/user? > > > wsdl=UserServicePort.wsdl" namespace="http://soap.companycom/user"> > > > </wsdl:import> > > > - > > > <wsdl:binding name="UserServiceEndpointServiceSoapBinding" > > > type="ns1:UserServicePort"> > > > <soap:binding style="document" transport="http://schemas.xmlsoap.org/ > > > soap/http"/> > > > - > > > <wsdl:operation name="changePassword"> > > > <soap:operation soapAction="" style="document"/> > > > - > > > <wsdl:input name="changePassword"> > > > <soap:body use="literal"/> > > > </wsdl:input> > > > - > > > <wsdl:output name="changePasswordResponse"> > > > <soap:body use="literal"/> > > > </wsdl:output> > > > - > > > <wsdl:fault name="UserServiceException"> > > > <soap:fault name="UserServiceException" use="literal"/> > > > </wsdl:fault> > > > > > Is anyone able to help? , does CFMX have a compatibility issue? > > > > > Theo > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---
