I want to use apache xml-rpc on client site to talk to xml-rpc server to
authorize the credit card.

Here is the XML-RPC request to authorize a credit card transaction:
<?xml version="1.0"?>
<methodCall>
<methodName>AuthorizeTransaction</methodName>
<params>
<param>
<struct>
<member>
<name>MerchantID</name>
<value><string>1234</string></value>
</member>
<member>
<name>TransactionIdentifier</name>
<value><int>101</int></value>
</member>
<member>
<name>CreditCardNumber</name>
<value><base64>JfdK3s3392LL</base64></value>
</member>
<member>
<name>PurchaseAmount</name>
<value><double>52.34</double></value> // Amount
</member>
</struct>
</param>
</params>
</methodCall>

The response from XML-RPC server will not be using the XML-RPC response
format, but instead, will be sending back an XML stream of the object(s)
requested. For example, the request is made for a credit card authorization
using the XML-RPC in the above example request. The response would look
something like:


<transaction>
<identifier>101</identifier>
<result>authorized</result>
</transaction>





Can i use apache xml-rpc in this case cause response is not in xml-rpc
formate. if yes then i will access the response and how i will know credit
card has ben authorized or not. if i can not apache xml-rpc then what i can
use to solve this case.


thanks.










Sanjeev Tripathi
AssetDirections
PFPC, Inc.
617-338-5135

Reply via email to