#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2002
    Posts
    1
    Rep Power
    0

    Trouble with XML-RPC with ASP


    Hi all!

    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
    Dim paramList(1)
    paramList(0)="sean"

    ' WHAT AM I SENDING TO THE SERVER
    Response.write("<pre>" & Replace(functionToXML("helloWorld", paramList), "<", "&lt;", 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, "<", "&lt;", 1, -1, 1) & "</pre>")

    if err.number <>0 then
    response.write("Error number: " & err.number & "<P>")
    response.write("Error description: " & err.description & "<P>")
    else
    response.write(myresp)
    end if
    %>

    Any ideas on what's wrong? Any more code you need to see?

    Thanks very much!

    Sean
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2002
    Posts
    8
    Rep Power
    0
    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.

IMN logo majestic logo threadwatch logo seochat tools logo