July 25th, 2002, 02:10 PM
Trouble with XML-RPC with ASP
I'm a new guy around here, so I hope I don't stomp on any rules.
I've gotten XML-RPC working with Perl using Frontier::Client and Frontier::Responder, but I haven't been able to get either clients or servers to work in ASP.
Using the error handling code from http://www.wc.cc.va.us/dtod/XMLRPC/ I get the request out ok, but no response from the server. Only this from the error code:
Error number: 999
Error description: Object required
That seems to be the problem whether I'm calling my own ASP server or one on Userland.com. Also, calling an ASP server from Perl doesn't seem to work, either. I've boiled the code down to the barest of essentials, I think:
<!--#include file="xmlrpc.asp" -->
on error resume next
' WHAT AM I SENDING TO THE SERVER
Response.write("<pre>" & Replace(functionToXML("helloWorld", paramList), "<", "<", 1, -1, 1) & "</pre>")
myresp = xmlRPC ("http://172.16.126.104/seantest/testserver.asp", "helloWorld", paramList)
response.write(myresp & "<p>")
' WHAT AM I GETTING FROM THE SERVER
response.write("<pre>" & Replace(serverResponseText, "<", "<", 1, -1, 1) & "</pre>")
if err.number <>0 then
response.write("Error number: " & err.number & "<P>")
response.write("Error description: " & err.description & "<P>")
Any ideas on what's wrong? Any more code you need to see?
Thanks very much!
July 29th, 2002, 04:59 PM
Hi I guess this reply is too late and u might have already found the solution. But just in case!
My guess is that when the function xmlRPC is being called it tries to create the MSXML2.ServerXMLHTTP, i.e the createObject function in the '<!--#include file="xmlrpc.asp" -->' but fails.
It usually occurs if the MSXML2 dll is not installed on the server.