I am sending the below xml-rpc message to my home server using
POST_DATA.

<?xml version="1.0"?>
<methodCall>
<methodName>brandhub.getbrands</methodName>
<params>
<param>
<value><string>Apparel</string></value>
</param>
<param>
<value><string>recent</string></value>
</param>
</params>
</methodCall>

The above code is stored in a variable named "rpctext". Using this
variable i am making an xml-rpc call to my server like this.. ->

function makeRPCcall()
{
var params = {};

params[gadgets.io.RequestParameters.CONTENT_TYPE] =
gadgets.io.ContentType.TEXT;
params[gadgets.io.RequestParameters.METHOD] =
gadgets.io.MethodType.POST;
params[gadgets.io.RequestParameters.POST_DATA] = rpctext;
gadgets.io.makeRequest(rpcserver, getresponse, params);
}

where rpcserver contains the URL of my server..!!

The function makeRPCcall() works till this point and it sends the
rpctext to my server but when i include a signed request as ..

function makeRPCcall()
{
var params = {};
params[gadgets.io.RequestParameters.AUTHORIZATION] =
gadgets.io.AuthorizationType.SIGNED;
params[gadgets.io.RequestParameters.CONTENT_TYPE] =
gadgets.io.ContentType.TEXT;
params[gadgets.io.RequestParameters.METHOD] =
gadgets.io.MethodType.POST;
params[gadgets.io.RequestParameters.POST_DATA] = rpctext;
gadgets.io.makeRequest(rpcserver, getresponse, params);
}

the above function doesnot works and it stops sending "rpctext"(xml-
rpc message) to my server .. !!!

Can anyone tell me where am i going wrong ??

and how to solve this problem ??



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to