Help with a POST with an XMLRPC call.
"oazyl" <[email protected]> Thu, 22 Dec 2011 20:18:37 -0000
| Newsgroups | gmane.text.xml.rpc.specification |
|---|---|
| Message-ID | <[email protected]> |
Hello everybody.
First, I must apollogize for the very novice basic newbie nature of my
question. I'm currently trying to generate RPC calls from a web page.
And started with a (supposedly) simple HTML exercise I found in the web.
This piece of code:
<form
method=3D"post"
action=3D"http://betty.userland.com/RPC2
<http://betty.userland.com/RPC2> ">
text:<input type=3D"Type your command here" size =3D900 name=3D"name"=
>
<input type=3Dsubmit value=3D"Press button">
</form>
And I'm typing this XML code in the text input box:
<?xml version=3D"1.0"?>
<methodCall><methodName>examples.getStateName</methodName><params><param\
><value><int>41</int> </value></param></params></methodCall>
The exercise says it should give me back the name of the State. However,
all I have gotten is this response from the server:
<?xml version=3D"1.0" ?> - <http://betty.userland.com/RPC2#>=20
<methodResponse> - <http://betty.userland.com/RPC2#> <fault> -
<http://betty.userland.com/RPC2#> <value> -
<http://betty.userland.com/RPC2#> <struct> -
<http://betty.userland.com/RPC2#> <member> <name>faultCode</name>=20=20
- <http://betty.userland.com/RPC2#> <value> <int>6</int>=20=20=20
</value> </member> - <http://betty.userland.com/RPC2#> <member> =
=20
<name>faultString</name> - <http://betty.userland.com/RPC2#> <value>
<string>Poorly formed XML text, it must end with a </tag>. (At character
#232.)</string> </value> </member> </struct> </value>=20=20
</fault> </methodResponse> I know the problem is with the syntax (at
least it says so), but I really can=B4t figure out what's wrong with
the semantic of the command. I have already read the online XML RPC
tutorials and still can't find out what am I doing wrong. Any help would
be greatly appreciated. Thanks!=20
[Non-text portions of this message have been removed]
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/xml-rpc/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/xml-rpc/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]=20
[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/