Hello,
I have a problem regarding POSTing data over HTTP to the Integration Server. I wrote a little Java client, which isn’t a big deal. However, the call does not make it. (I know that because I write a fixed string to the pipeline dumpfile, and it does not get created).
I think it is because the Server requires a login.
(Seems obvious, because when you invoke the service by typing it in a webbrowser address bar, the login dialog pops up before it continues).
So, how can I make it through the loginprocess?
Thanks in advance,
Patrick.
If you have written your own HTTP posting code, you’ll need to do one of two things:
i) update the ACL on the service to allow anonymous access, or
ii) modify your HTTP client to include authorization
For obvious reasons the first option should only be used for a quick testing in a development environment.
If you’re using the JDK 1.2 and the built-in URLConnection classes, you can create a subclass of java.net.Authenticator and register it. This will give you the opportunity to provide a name and password for authenticating the user to the Integration Server.
If you’ve hand-coded your own HTTP client, then you’ll need to include a header in the request that has the following form:
Authorization: Basic <base64 encoded name+password>