Skip to main content

I am making a call to a SOAP web service to retrieve a token and FME Desktop will timeout, but I am able to successfully retrieve the token in Postman and in Python using the requests module. Any idea as to what would be causing the issue?

2020.2.0.0 (20201027 - Build 20787 - WIN64)

 

FME Error: 

HTTPCaller (HTTPFactory): HTTP/FTP transfer error: 'Timeout was reached'
HTTPCaller (HTTPFactory): Please ensure that your network connection is properly set up
HTTPCaller (HTTPFactory): No proxy settings have been entered.  If you require a proxy to access external URLs, please ensure the appropriate information has been entered

Here is the code in python that runs successfully:

import requests
url="https://ext.youraspire.com/AIS/WorkTickets.svc"
 
headers = {'content-type': 'text/xml;charset=UTF-8', 'SOAPAction': 'http://ext.youraspire.com/AIS/WorkTickets/GetToken', 'Host': 'ext.youraspire.com', 'Content-Length': '404'}
body = """
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ais="http://ext.youraspire.com/AIS">
   <soapenv:Header/>
   <soapenv:Body>
      <ais:GetToken>
         <!--Optional:-->
         <ais:account>REDACTED</ais:account>
         <!--Optional:-->
         <ais:password>REDACTED</ais:password>
      </ais:GetToken>
   </soapenv:Body>
</soapenv:Envelope>
"""
 
response = requests.post(url,data=body,headers=headers)
print(response.content)

I have double checked all the settings in FME and they all match.

fme_settings

I think you need to leave the Content-Length header out.


I think you need to leave the Content-Length header out.

Wow! Thank you so much! I should have caught that! Thank you @nielsgerrits​!


Wow! Thank you so much! I should have caught that! Thank you @nielsgerrits​!

Happy I could help. :-)


Reply