cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP Client Create Error

Former Member
0 Kudos

I have a problem with my HTTP adapter. I wrote a small java server and just want to check if something arrives there. Calling the server with "http://<localhost>:<port>" from my local computer works fine, calling it from other computers including the XI server itself works, too. However, when I send my message through XI I get an error:

"Error when creating the http client with the destination http://<localhost>:<port>";

Has anyone seen this before and knows what I should do?

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

try creating http RFC destination

type G - HTTP Connection to Ext. Server

in TCODE - SM59 and check if this connection works

specify targethost and pathprefix and test it (F8)

Regards,

michal

Former Member
0 Kudos

"Bad request", "The parameter is incorrect", maybe I configured this wrong.

Anyway, I'm not sure whether SM59 could help me here as I do not try to connect to an SAP system, but my own computer (with no constant IP, DNS and so on). Maybe this is not possible for XI?

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>Anyway, I'm not sure whether SM59 could help me here as I do not try to connect to

doesn't matter if you can connect with this then you'll be able to connect with XI http receiver apdater

G type connection is for external servers

>>>"Bad request", "The parameter is incorrect",

are you sure your parameter is correct?

if XI will not see your computer then you won't be able to connect

Regards,

michal

Former Member
0 Kudos

hello,

you were right, the parameters were wrong. now it behaves as expected - as my server sends no response on an empty http request, there is a timeout. but i receive the request on my server, this works fine.

does xi need this response?

i will try to improve my server to handle this empty request and get a response.

Former Member
0 Kudos

ok, i fixed the problem, now i get a "200 OK" as a response in SM59. XI is giving the same error as before, though.

MichalKrawczyk
Active Contributor
0 Kudos

hi,

now you can use this RFC in the receiver http channel

just specify <b>http</b> connection in your receiver channel

Regards,

michal

Former Member
0 Kudos

Oh, yes, it works!

Great!

You're my hero!

MichalKrawczyk
Active Contributor
0 Kudos

hehe

nice:)

Regards,

michal

Former Member
0 Kudos

Hello Jorg,

Please can you let me know the paramter you have given for the outbound HTTP RFC destination.

I have given the following inputs but its not working right now?

Target host: secure.dev.gateway.gov.uk

Path prefix: /submission

Proxy host: proxy

Proxy service: 8080

Thanks

Vijaya

Answers (0)