Use HTTP Proxy in a Web Service Call?

Hi All,

Is it possible to use a HTTP proxy server in a web service call? And if so, how is this proxy set up? I couldn’t find any hint in the WebService Adapter configuration about a proxy.

Problem is that calls not routed through the proxy get blocked by our firewall, and thus every call to an off-site web service times out.

Would be glad to get some hints before I go and ask the admins to drill a hole in the firewall.

Thanks
Torsten


treuth (BOB member since 2008-08-21)

if you are using Webservice adapter then you can set the following arguments in the Adapter Configuration

-Dhttp.proxyHost= -Dhttp.proxyPort=

add this to theAdditional Java Launch Option and restart the Adapter Instance

you have issue typing in space character, save without that, and open the configuration again and now you will be able to add spaces

if you are on 12.x and using Native webservice Datastore instead of Adapter then there issue in that with Proxy, so you will not be able to use that


manoj_d (BOB member since 2009-01-02)

Thanks for your reply, that did the trick!

The WebService adapater now uses our proxy, but next to that the site I’m trying to reach uses HTTP basic auth :hb:

I understood that I could give a user and pwd in the DataStore configuration that is based on the WebService adapter. Unfortunately I still get a HTTP 401 back from the server.

I already double-checked the user/ pwd. It works from a regular browser and also from the cURL HTTP tool that I ran on the server. cURL also verfied that the 401 comes from the remote site and not from the proxy. Our admin also confirmed that the proxy does not require authentication by itself.

Any ideas on that? Could it be that HTTP proxy plus Basic Auth are too much for the adapter? Or am I missing something here?

The WebService adapater / Datastore works well for web services that do not require authentication, I've just tried a few public ones

Thanks again
Torsten


treuth (BOB member since 2008-08-21)