IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Authorizing to the Integration Server

  • 1.  Authorizing to the Integration Server

    Posted Tue November 26, 2002 09:09 AM

    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.


    #Integration-Server-and-ESB
    #webMethods
    #webMethods-General


  • 2.  RE: Authorizing to the Integration Server

    Posted Tue November 26, 2002 09:36 AM

    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>


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB