Skip to main content
Question

I need help with calling a SOAP API from FME

  • January 10, 2023
  • 6 replies
  • 232 views

Hello guys,

 

I am trying to consum a SOAP API to send data from FME desktop but I am getting the HTTP/1.1 500 Internal Server Error.

 

Here is what I did:

 

I have configured the API request in SoapUI copied the xml request and send it the HttpCaller transformer using the XMLTemplater.

 

I have enabled the authentication option in the HttpCaller and entered the username/password using the basic type.

 

Thank you in advance.

6 replies

f.kemminje
Contributor
Forum|alt.badge.img+11
  • Contributor
  • January 10, 2023

Have you ever used Postman app or web application? whether it was successful or not

Debug with Telerik Fiddler. you will get The precise url string to use within fme(httpcaller)


  • Author
  • January 10, 2023
f.kemminje wrote:

Have you ever used Postman app or web application? whether it was successful or not

Debug with Telerik Fiddler. you will get The precise url string to use within fme(httpcaller)

I used SoapUI and it worked fine.

 

I tried to use Fiddler but for some reason it is not detecting the request from FME.


f.kemminje
Contributor
Forum|alt.badge.img+11
  • Contributor
  • January 10, 2023
osama.asad wrote:

I used SoapUI and it worked fine.

 

I tried to use Fiddler but for some reason it is not detecting the request from FME.

USE POSTMAN


david_r
Evangelist
  • January 10, 2023
osama.asad wrote:

I used SoapUI and it worked fine.

 

I tried to use Fiddler but for some reason it is not detecting the request from FME.

SoapUI should work just fine and would be my preferred method for testing SOAP services, especially since it can automatically generate XML requests and replies based on the WSDL.

Concerning Fiddler, you may have to activate its proxy service and configure FME to go through it.

Also, make sure you included the correct SOAPAction header in the HTTPCaller. You'll find it in the SoapUI request under the "RAW" tab. Example: https://community.safe.com/s/question/0D54Q000080hEaKSAU/soapaction-where-do-i-have-to-add-it-and-how-in-httpcaller-transformer


david_r
Evangelist
  • January 10, 2023

This is also a great resource, if you haven't seen it yet: https://community.safe.com/s/article/working-with-soap-services


  • Author
  • January 11, 2023
david_r wrote:

This is also a great resource, if you haven't seen it yet: https://community.safe.com/s/article/working-with-soap-services

Thank you david for your reply, The issue were in the wsse header creation. to fix the problem I have used a python script to generate the wsse header using the current time and I can now call the SOAP API successfully!

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings