0 Replies Latest reply: Apr 10, 2012 2:15 AM by 674271 RSS

    OBIEE 11g web services

    674271
      Dears

      I'm using OBIEE 11.1.1.5 and i am write java code to call web services as the following:

      import com.siebel.analytics.web.soap.SAWSessionServiceLocator;
      //import oracle.bi.web.soap.internal.SAWSessionServiceSoap;
      import com.siebel.analytics.web.soap.SAWSessionServiceSoap;
      import oracle.svcmsg.ServiceException;
      public class TestSAW {
      public TestSAW() {
      }

      String username = "weblogic";
      String password = "welcome99";
      public void testSimpleOBIEEService() {
      try {
      SAWSessionServiceSoap service = getService();
      String sessionID = service.logon(username, password);
      System.out.println("sessionID" + sessionID);
      } catch (Exception ex) {
      ex.printStackTrace();
      }
      }
      private SAWSessionServiceSoap getService() {
      SAWSessionServiceSoap result = null;
      SAWSessionServiceLocator locator = new SAWSessionServiceLocator();
      locator.setSAWSessionServiceSoapEndpointAddress("http://anas:9704/analytics/saw.dll?wsdl");
      result = locator.getSAWSessionServiceSoap();
      return result;
      }
      public static void main(String[] args) {
      TestSAW tt = new TestSAW();
      tt.testSimpleOBIEEService();
      }

      }


      when i copmile the code it give me that SAWSessionServiceLocator is not found becuase i attached sawsoapjaxwsstubs.jar and it doesn't have this class, so i found this class at sawsoapstubs.jar from OBIEE 10g after i attached it then give me the following error : Error(33,9): Service not found in class com.siebel.analytics.web.soap.SAWSessionServiceLocator .

      can anyone please help me or give me the right code or jar file i should used to call the web services.

      Thanks