Hello Ladies and Gentlemen,
I was wondering if someone could give me some guidance. I am sending a request to a service which prompts a form. In my request I am sendint an XML object that looks like this:
<PaymentRequest>
<ClientKey>CJOFSTEXFILE</ClientKey>
<TransactionID>TESTTESTTEST1</TransactionID>
<RedirectURL>http://localhost:44300/efile/GeneratingXMLFormResponse</RedirectURL>
<Amount>-1</Amount>
<GetToken>1</GetToken>
</PaymentRequest>
The XML works fine and I get the desired response form. However my issue is that whenever i fill out the response and send the post request the redirect URL is this one:
https://localhost:44300/efile/EPayment.aspx
this is the feed:
POST https://localhost:44300/efile/EPayment.aspx HTTP/1.1
Host: localhost:44300
Connection: keep-alive
Content-Length: 3349
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: https://localhost:44300
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.125 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Referer: https://localhost:44300/efile/GeneratingXMLFormRequest
Accept-Encoding: gzip, deflate
Accept-Language: es,en-US;q=0.8,en;q=0.6
A couple of questions:
1) How can I direct this POST request to a controller method within my Efile controller? Right now I am getting an error since I do not have a method called Epayment.aspx I tried creating a method called exactly this but that does not work properly.
2) Is it possible for the service to send the POST request to the Referer URL? That's the URL i provided in the XML however the service is using a different one and I am not 100% sure where is it getting that from.
Thanks for all the help!
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire