|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
xml-rpc php/asp communication problem
i've been dabbling with xml-rpc in php and it's all gone swimmingly...
for an exercise, i wrote an xml-rpc server that receives a four digit integer from an xml message and gives it to the unix shell program "cal" (calendar). the xml response contains a lovely formatted calendar for the year. (i've been using the xmlrpc.inc and xmlrpcs.inc from sourceforge) with a php client talking to a php server, it is great... lovely calendar in the browser... next step/the problem: with an asp client talking to the same php server... it doesn't work... i get back an error (abbrev.): "XML error: no element found at line 1" (i am using David Carter-Tod's xmlrpc.asp include) i can however get my asp to talk to my asp (different service, mind, as windows doesn't have cal) before i continue poking about with code and http and xml and server config etc, are there any known issues with this sort of a set up?
__________________
Little more than a playground for the bugs that live beneath us... |
|
#2
|
|||
|
|||
|
re-inspired...
i've just seen reemjacob's post on bigsean's thread... http://forums.devshed.com/showthrea...&threadid=40223 and i've been re-inpired to get this working...
however, my problems seem different to bigsean's... though I checked out the msxml2.dll that reemjacob mentioned to be sure... here's some code: the asp client: <!--#include virtual="/xmlrpc/xmlrpc.asp" --> <% on error resume next 'if NOT Request.form("year") = "" then Dim paramList(1) paramList(0)=CInt("2002") ' WHAT AM I SENDING TO THE SERVER Response.write("<pre>" & Replace(functionToXML("mdsxmlrpc.cal", paramList), "<", "<", 1, -1, 1) & "</pre>") myresp = xmlRPC("http://florence/mds_serv/cal_s.php", "mdsxmlrpc.cal", paramList) response.write(myresp & "<p>") ' WHAT I AM GETTING FROM THE SERVER Response.write("<pre>" & Replace(serverResponseText, "<", "<", 1, -1, 1) & "</pre>") 'end if %> the php server: PHP Code:
and the full error message: <?xml version="1.0"?> <methodCall> <methodName>mdsxmlrpc.cal</methodName> <params> <param> <value><int>2002</int></value> </param> </params> </methodCall> <?xml version="1.0"?> <methodResponse> <fault> <value> <struct> <member> <name>faultCode</name> <value><int>103</int></value> </member> <member> <name>faultString</name> <value><string>XML error: no element found at line 1</string></value> </member> </struct> </value> </fault> </methodResponse> if anyone has some ideas, i'd be glad to hear them... i should point out again - the server works fine with a php client... and i can get an asp ("Hello world") client to talk to an asp server okay. |
|
#3
|
|||
|
|||
|
ASP / PHP XMLRPC
Ahhh HA! Finally someone else seems to be having the same set of troubles I am.
URL Check it out.. At least its returning the xml response with the data wrapped in XML, but its generating basically the same error. |
|
#4
|
|||
|
|||
|
Errors im getting
Check the errors.zip file ive attached to see the errors im getting. BTW - im using keith devens XMLRPC library and my xml implementation is straight from here:
URL -Steve |
|
#5
|
|||
|
|||
|
XML-RPC ASP client not talking to PHP Server
Hi,
I know this was over a year ago, but I've just hit exactly the same problem. did you get any satisfaction getting your ASP client to talk to your PHP server ? thanks, Jonathan |
|
#6
|
|||
|
|||
|
Did you ever get to the bottom of this PHP/ASP problem ? I've hit exactly the same thing you see !!!
thanks URL |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > xml-rpc php/asp communication problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|