[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

HTTP request




   As mentioned, I am trying to duplicate this request:

   [1]https://url/vendor_transaction.ReceiveXMLmessage?xmlString=<?xml%20
   version=%221.0%22?><PraxellMessage><V2CC_WithdrawRequest%20AcountType=
   %22ATypePrivateLabel%22%20><VendorID>1234</VendorID><AcountID>44443333
   22221111</AcountID><Password>NULL</Password><Amount%20Currency=%22USD%
   22><TotalAmount>1000</TotalAmount></Amount><TargetTrxState>AUTH</Targe
   tTrxState></V2CC_WithdrawRequest></PraxellMessage>
   My code looks something like this:

   http_debug(*ON);
   rc = https_init('DATAVANTAGE');
   URL  = 'https://url/vnv/'
            + 'vendor_transaction.ReceiveXMLmessage?xmlString='
            + '<?xml version="1.0"?>'
            + '<PraxellMessage>'
            + '<V2CC_WithdrawRequest AcountType="ATypePrivateLabel">'
            + '<VendorID>1234</VendorID>'
            + '<AcountID>4444333322221111</AcountID>'
            + '<Password>NULL</Password>'
            + '<Amount Currency="USD">'
            + '<TotalAmount>100</TotalAmount>'
            + '</Amount>'
            + '<TargetTrxState>AUTH</TargetTrxState>'
            + '</V2CC_WithdrawRequest>'
            + '</PraxellMessage>';

   rc = http_url_get_xml(URL
                          : *NULL
                          : %paddr(ParseData)
                          : *NULL);


   I attached the log.  I am getting a 400 error(HTTP/1.1 400 Bad
   Request).

   Can anyone point me in the right direction?  What procedure should I
   be using(get/post)?  Thanks in advance.

   John



     _________________________________________________________________

   Microsoft brings you a new way to search the web. [2]Try Bing now

References

   1. https://url/vendor_transaction.ReceiveXMLmessage?xmlString=<?xml%20version=%221.0%22?><PraxellMessage><V2CC_WithdrawRequest%20AcountType=%22ATypePrivateLabel%22%20><VendorID>1234</VendorID><AcountID>4444333322221111</AcountID><Password>NULL</Password><Amount%20Currency=%22USD%22><TotalAmount>1000</TotalAmount></Amount><TargetTrxState>AUTH</TargetTrxState></V2CC_WithdrawRequest></PraxellMessage
   2. http://www.bing.com/?form=MFEHPG&publ=WLHMTAG&crea=TEXT_MFEHPG_Core_tagline_try%20bing_1x1

Attachment: httpapi_debug.txt
Description: Binary data

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------