David,

This is not a bug in the ServerXMLHTTP interface but rather an problem
on the Web Service server.  The problem is that the WS Server is not
setting the correct MIME Type when returning the WSDL file.

Since they are serving up a raw WSDL file they need to add the MIME
mapping in their web server software of "text/xml" or "application/xml".
If they were creating the XML WSDL file dynamically using ASPX or CF
they would need to set the mime type using Response.ContentType or
CFContent.

You can test this by saving the WSDL file locally on your server's HD,
and run your test code(pointing the new wsdl file of course).  If it
does not load into the DOM, (assuming you are running IIS) open the
website properties in Internet Services Manager and add a MIME map of
"text/xml" for .wsdl file types.  Reload your CFML script and all will
be good.

Hope this clears it up...

BTW: I have been working with ServerXMLHTTP(and Web Services) for about
8 months, to respond to the original thread.  I have not found any
limitations to fault of ServerXMLHTTP.  It's actually working quite
well.  Of course when I stress test the application I may be in for some
other results :)  More to follow...

Happy Coding,

// Brett


|>   -----Original Message-----
|>   From: [EMAIL PROTECTED] 
|>   [mailto:[EMAIL PROTECTED]] On Behalf Of 
|>   Maddison, David
|>   Sent: Friday, August 03, 2001 7:43 AM
|>   To: '[EMAIL PROTECTED]'
|>   Subject: [cf-xml] ServerXMLHTTP Bug
|>   
|>   
|>   Just a quick warning really.
|>   
|>   It appears there's a bug in the ServerXMLHTTP.ResponseXML 
|>   method.  It's suppose to return the retrieved XML as an 
|>   MSXMLDom object, however I've found on certain URL's even 
|>   though the XML retrieved is correct, it won't parse it into a DOM.
|>   
|>   For example, the following fails : 
|>   
|>   <CFSCRIPT>
|>    
|>   httpWSDL.Open("GET","http://www.lemurlabs.com/projects/soap
|>   /itime/ITimeServi
|>   ce.wsdl",false,"","");
|>       httpWSDL.Send();
|>       xom = httpWSDL.responseXML;
|>   </CFSCRIPT>    
|>   
|>   However this work around works:
|>   
|>   <!--- Request the WSDL document --->
|>   <CFSCRIPT>
|>    
|>   httpWSDL.Open("GET","http://www.lemurlabs.com/projects/soap
|>   /itime/ITimeServi
|>   ce.wsdl",false,"","");
|>       httpWSDL.Send();
|>   </CFSCRIPT>    
|>   
|>   <!--- Parse the XML into a DOM --->
|>   <CFOBJECT Name="xom" Class="MSXML2.DOMDocument" 
|>   Action="Create"> <CFSET xom.ValidateOnParse = true> <CFSET 
|>   temp = xom.loadXML(httpWSDL.ResponseText)>
|>   
|>   Just thought you might want to know, so that you don't 
|>   spend 30 minutes tearing your hair out like I did :-)
|>   
|>   Dave Maddison, WildFusion
 


-----------------------+
cf-xml mailing list
[EMAIL PROTECTED]
http://torchbox.com/xml

Reply via email to