I am trying to implement Visa DPS soap service in c# environment with pfx file (certification file). We did connectivity test between our server and DPS soap web service using SoapUI with pfx file included in the setting. The header was generated and placed in the XML request string. The test result was good. I can see the xml responses back in the SoapUI. The next step is to implement what is in SoapUI into the code. I created a test application using X509Certificate2 object and attached pfx file into the httpWebRequest. The xml request that I sent is the same copy of SoapUI's xml request string. I got the error "The remote server returned an error (500) Internal Server Error".
There is no documentation on how to implement the DPS Soap service anywhere in the API Reference section on Visa Developer Center site. Do you have any sample code on how to implement this?
Thanks in advance.
Solved! Go to Solution
Hi and welcome, @solsantoso! Thank you for reaching out to the community. An agent will get back to you as soon as possible. In the meantime, if any community member knows the solution, feel free to reply to this thread. -Jenn
To further investigate, please provide the following information:
While we don't have sample code for the DPS API, you can download the HelloWorld sample code package from your project dashboard.
Here is the HelloWorld tutorial for your reference:
Hope you find the information useful. Please let us know if you have any further questions.
Thank you Stacey for your response and suggestion. I found the solution yesterday with Visa Soap API support team. It turned out I missed one line of code which is the header for "SOAPAction" to have read action to it. Below is my snippet code.
Thanks @solsantoso for sharing your solution with the community!