Skip to main content
Solved

HTTPCaller Timing Out

  • December 10, 2020
  • 3 replies
  • 337 views

warrendev
Enthusiast
Forum|alt.badge.img+26

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

Best answer by nielsgerrits

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

nielsgerrits
VIP
Forum|alt.badge.img+64
  • Best Answer
  • December 10, 2020

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


warrendev
Enthusiast
Forum|alt.badge.img+26
  • Author
  • Enthusiast
  • December 10, 2020

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

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


nielsgerrits
VIP
Forum|alt.badge.img+64

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

Happy I could help. :-)