What is the error you are getting.



> -----Original Message-----
> From: Vano, Carl G, SITS [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 28, 2001 6:46 AM
> To: CF-Talk
> Subject: MSXML in cfobject to Load, Send, & Retrieve XML results?
> 
> 
> Does anyone know what is wrong with my code below? I am trying to 
> use MSXML
> cfobjects to load an XML doc, then open an HTTP connection and 
> send the XML
> doc. I am expecting back a query result in XML format. 
> 
> I am new to XML & cfbjects. If anyone knows where I could view 
> examples, or
> a tutorial on XML, cfobjects, and MSXML please let me know. 
> 
> When I try to output the query result I get back the following error: 
> 
> Error 405: Method Not Allowed 
> 
> The method specified in the Request-Line is not allowed for the requested
> URL (Universal Resource Locator) "/Scripts/xmlquery.py". 
> 
> Thanks! 
> Carl Vano
> 
> 
> 
> <!--- XML String to pass --->
> <cfset temp="&lt;iViewDB xmlns=""iViewDB.xsd""&gt;&lt;query
> subclass=""FACILITY-NTX""&gt;&lt;expression&gt;vendor == Cisco
> &lt;/expression&gt;&lt;record&gt;&lt;vendor/&gt;&lt;ip/&gt;&lt;/re
> cord&gt;&l
> t;/query&gt;&lt;/iViewDB&gt;">
> 
> <cfobject type="COM"
>           name="XMLDoc"
>           class="MSXML2.DOMDocument"
>           action="CREATE">
> 
> <cfobject type="COM"
>           name="XMLhttp"
>           class="MSXML2.ServerXMLHTTP"
>           action="CREATE">
> 
> <!---         Load XML, Open HTTP, & Send XML --->  
> <CFSET XMLDoc.load("temp")>
> <CFSET XMLhttp.open("POST", 
> "http://servername/Scripts/xmlquery.py", false)>
> <CFSET XMLhttp.send("xmlDoc")> 
> <CFSET  res = XMLhttp.responseText>
> 
> <!--- This is another method I tried to Load XML, Open HTTP, & Send XML
> <cfscript>
>   XMLDoc.load("temp");
>   XMLhttp.open("post", "http://servername/Scripts/xmlquery.py", false);
>   res = XMLhttp.responseText;
> </cfscript>   
>  --->  
>  
> <!--- Output the XML formatted query results ---> 
> <cfoutput>#res#</cfoutput>
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to