FWIW, here is a way to clear your webservice cache programatically without having to have admin rights on the system if you are interested. http://daveshuck.instantspot.com/blog/index.cfm/2005/7/13/Web-Services--Caching
On 9/22/07, derek bumpas <[EMAIL PROTECTED]> wrote: > > Hi Tom, > > Not sure if this is related, but ColdFusion has a 'nasty feature' of > registering (caching) WebServices upon first call. ( You can see these in > the cf administrator ). There have been times when I've changed the URL to > the WSDL in the code and it failed to update the 'web service cache'. It > may be a long shot, but it might be whats causing your problem. (Try > clearning them out with CFADMIN and try again). > > Derek > > > > On 9/21/07, Tom Woestman <[EMAIL PROTECTED]> wrote: > > > 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 > > 2ndparameter 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 > > <http://schemas.xmlsoap.org/soap/envelope/%7DServer.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 > > <http://xml.apache.org/axis/%7DstackTrace:org.xml.sax.SAXException>: > > Processing instructions are not allowed within SOAP messages > > > > at org.apache.axis.encoding.DeserializationContext.startDTD > > (DeserializationContext.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 > > (Unknown 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.wsdl.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.wsdl.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/ > > > > > > _______________________________________________ > 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/ > > -- ~Dave Shuck [EMAIL PROTECTED] http://daveshuck.instantspot.com
_______________________________________________ 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/
