Thanks Rick - in this case I have slightly modified the WSDL for our reverse proxy setup so that 'should' be ok.
After a lot of frustration I have copied the code over to another CF server where it works fine. I expect to get together with one of our admin types on Monday to track down what the heck could be causing the problem on the one system and not on another. Thanks, Tom ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, September 21, 2007 2:50 PM To: [EMAIL PROTECTED] Subject: RE: [DFW CFUG] CF Webservices question Tom - I've always referenced the web service name in http://www.foo.com/components/mycomponent.cfc?wsdl format for the 2nd parameter in the createObject call, i.e. with the "?wsdl" at the end of the URI path. Rick... ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom Woestman Sent: Friday, September 21, 2007 3:36 PM To: Dallas/Fort Worth ColdFusion User Group Mailing List Subject: RE: [DFW CFUG] CF Webservices question I should note that the component is set to a style of type document... ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom Woestman Sent: Friday, September 21, 2007 1:34 PM To: Dallas/Fort Worth ColdFusion User Group Mailing List Subject: [DFW CFUG] CF Webservices question Hi all, Would anyone point me to docs on how to use an array of structures as input into a CF web service? (it has been a while since I have dug into this area) The following code works when calling the method when using the CFC as a component. However, when I switch it over to a webservice then the code returns the following error: Could not perform web service invocation "getPossibleMatches". Here is the fault returned when invoking the web service operation: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages at org.apache.axis.encoding.DeserializationContext.startDTD(Deserialization Context.java:1161) at org.apache.xerces.parsers.AbstractSAXParser.doctypeDecl(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.doctypeDecl(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.scanDoctypeDecl(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch( Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno wn Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unk... The error occurred in D:\ECAS2003\website\testDPWS_asWS.cfm: line 20 18 : 19 : DPWS = CreateObject("webservice","http://casdev.esri.com/cas/components/DPWS.ws dl.cfm"); 20 : results = DPWS.getPossibleMatches(ary); 21 : 22 : </cfscript> The code below works: <cfscript> ary = arrayNew(1); str1 = structNew(); str1.fullname = "Osama Bin Laden"; str1.organization = "Osama Bin Laden"; str1.country = "US"; arrayAppend(ary,str1); str1 = structNew(); str1.fullname = "Thomas Woestman"; str1.organization = "ESRI"; str1.country = "US"; arrayAppend(ary,str1); DPWS = CreateObject("component","/cas/components/DPWS"); results = DPWS.getPossibleMatches(ary); </cfscript> The following code fails: <cfscript> ary = arrayNew(1); str1 = structNew(); str1.fullname = "Osama Bin Laden"; str1.organization = "Osama Bin Laden"; str1.country = "US"; arrayAppend(ary,str1); str1 = structNew(); str1.fullname = "Thomas Woestman"; str1.organization = "ESRI"; str1.country = "US"; arrayAppend(ary,str1); DPWS = CreateObject("webservice","http://casdev.esri.com/cas/components/DPWS.ws dl.cfm"); results = DPWS.getPossibleMatches(ary); </cfscript> Thanks for any suggestions, Tom
_______________________________________________ Reply to DFWCFUG: [email protected] Subscribe/Unsubscribe: http://lists1.safesecureweb.com/mailman/listinfo/list List Archives: http://www.mail-archive.com/list%40list.dfwcfug.org/ http://www.mail-archive.com/list%40dfwcfug.org/ DFWCFUG Sponsors: www.instantspot.com/ www.teksystems.com/
