DPS Soap web service implementation sample code

Solved! Go to solution
solsantoso
Regular Visitor

DPS Soap web service implementation sample code

Hello,

 

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.

4 REPLIES 4
jenn_kh
Community Moderator

Re: DPS Soap web service implementation sample code

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

SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: DPS Soap web service implementation sample code

Hi @solsantoso,

 

To further investigate, please provide the following information:

  1. End Point URL
  2. Request Header
  3. Request Body
  4. Response Header (include the x-correlation-id)
  5. Response Body

While we don't have sample code for the DPS API, you can download the HelloWorld sample code package from your project dashboard.

SampleCode.jpg

 

Here is the HelloWorld tutorial for your reference:

https://community.developer.visa.com/t5/Two-way-SSL-X-Pay-Token/How-to-run-the-Hello-World-Project/m...

 

Hope you find the information useful. Please let us know if you have any further questions.


Best,
Stacey

Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.
solsantoso
Regular Visitor

Re: DPS Soap web service implementation sample code

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.  

 

VisaSoapAPI.jpg

SLi
Visa Developer Support Specialist
Visa Developer Support Specialist

Re: DPS Soap web service implementation sample code

Thanks @solsantoso for sharing your solution with the community!


Best,
Stacey

Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.