Sorry, this is probably a simple question, but I have the following error:
Could not run the service ‘posttoPEL’.
java.net.ConnectException: Connection refused: no further information
I am just running it through the developer in debug mode.
I am using webMethods integration server 4.6, and have a flow which includes a http service at the end which is to HTTP POST to an external business partner’s URL to post a XML document.
When I try to access the URL directly through Internet explorer, I get:
HTTP Error 403 - Forbidden
Internet Explorer
What I would like to know is what would cause this error. I would like to be able to explain to the business partner what they need to do to fix this. They also use webMethods.
Thanks for the reply. I have a HTML post webpage that I wrote using VBSCRIPT which can post the xml data quite successfully, from my computer, yet when I use my webMethods server installed on my local pc, I get the Connecton Refused error. Therefore I don;t think it is a firewall thing.
The portion of my web page that does the business is:
set req = createobject(“MSXML2.XMLHTTP”)
req.Open “POST”, uri, false
req.setRequestHeader “Content-Type”,“text/xml”
'Open File for sending
set fso = createobject(“Scripting.FileSystemObject”)
set file = fso.OpenTextFile(fname)
’ Send file
req.send file.ReadAll
’ Close file
file.close
Why would this work, but my HTTP post flow service from my SAP business connector server doesn’t?
The variables that I have populate in the HTTP service are:
URL = external url I am posting to
METHOD = POST
DATA->STRING = my xml file string
HEADERS->Content-type = text/xml
Its difficult to see what request is initiating what service from your error log, but perhaps the ‘java.net.ConnectException: Connection refused’ message is really related to a notification email your server is trying to send after making the post?
0000C1 [B2BCORE.0038.0002] <– Content-Length: 270
…
0000C6 [B2BSERV.0048.9999] Connection refused: no further information
0000C7 [B2BSERV.0056.0003] Unable to send mail. Illegal address
…
0000CA [B2BCORE.0038.0002] –> HTTP/1.0 403 Service Error
If so, under IS ‘Settings > Logging’ screen, you may have to update the ‘Email Notification’/ ‘SMTP Server’ setting.
Thanks for your help, I have just found out the problem. Our intranet has a proxy server that all http requests need to go through. My test business connector is not set up for it.
I needed to change the watt.net.proxyHost parameter to authenticate with the proxy server when sending any thing.
Your Email notification comment is quite valid as well though, I will set it up properly.