0 Replies Latest reply on Jan 30, 2013 2:01 AM by NexusChris

    Connection failure through Weblogic HTTP Authentication

      Hi all

      We are recently migrating webservice from 10g to 11g, but keep 10g client use for connecting the new 11g interface. Due to previous technical limitation, the 10g client is found failed to connect 11g and thus we built a middleware between them.

      The webservice server side (11g) is protected with HTTP authentication on weblogic and we found that both 11g client and the middleware can connect the server side successfully authenticated. Only when we use the 10g to connect the middleware, server side blocks the transaction with error code 401 unauthorized.

      Can everybody know any tricks behind, thanks in advance.

      [ OK ] 11g ws client -----[HTTP AUTH] --------> 11g server

      [ OK ] Middleware ----[library calls] ------> 11g ws client --------[HTTP AUTH] -------> 11g server

      [ FAILED ] 10g client --------> Middleware ----[library calls] ----> 11g ws client ------[HTTP AUTH] -------> 11g server

      The middleware is just a servlet to listen 10g client calls, and repeat it using 11g library toward 11g webservice.

      *10g client*
          URL endpointURL = new URL(endpoint);
          org.apache.soap.rpc.Call call = new org.apache.soap.rpc.Call();
          Vector params = new Vector();
          params.addElement(new Parameter("element", Element.class, xmlData, Constants.NS_URI_LITERAL_XML));
          Response response = call.invoke(endpointURL, "");