I need to make a web service call using an HTTPS POST. XML data is returned
in the body of the
HTTPS reply. What is the best way to do this with asp.net web services?
I am very comfortable in the world of asp.net and C# but have done nothing
with web services or XML. My first incling is to stream an XML document to
an HTTP Request object and then stream the response back to an XML document
but guessing there is a better way?
Thanks,
Sample data:
<Request StoreID="myStoreID" StoreKey="myStoreKey"
ApplicationID="My Application Name Ver 1.0">
<CreditCardAuthorize>
<ReferenceNumber>1234</ReferenceNumber>
<TransactionAmount>1.00</TransactionAmount>
<AccountNumber>4111111111111111</AccountNumber>
<ExpirationMonth>12</ExpirationMonth>
<ExpirationYear>99</ExpirationYear>
</CreditCardAuthorize>
</Request>
Reply:
<Reply>
<TransactionReply>
<ResponseCode>0</ResponseCode>
<ResultCode>00</ResultCode>
<ResultMessage>APPROVED</ResultMessage>
<TransactionID>100000182165</TransactionID>
<AVSResponseCode />
<CVVResponseCode />
<ApprovalNumber>123456</ApprovalNumber>
<AuthorizationNumber>123456</AuthorizationNumber>
<TransactionDate>021112</TransactionDate>
<TransactionTime>110544</TransactionTime>
<ReferenceNumber>1234</ReferenceNumber>
<AccountNumber>XXXXXXXXXXXX1111</AccountNumber>
<TransactionAmount>1.00</TransactionAmount>
</TransactionReply>
</Reply>