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/
