Table of Contents

Search

  1. Preface
  2. Web Service Concepts
  3. Understanding the Web Services Provider
  4. Using the Web Services Hub Console
  5. Batch Web Service Operations
  6. Writing Client Applications
  7. Working with Web Service Sources and Targets
  8. Editing Web Service Sources and Targets
  9. Working with Web Service Mappings
  10. Working with Web Service Workflows
  11. Appendix A: Web Service Sample Client Applications
  12. Appendix B: Configure the Web Browser

Web Services Provider Guide

Web Services Provider Guide

Initialization in Axis

Initialization in Axis

The client application must perform an initialization step before it makes calls to Metadata web services and Data Integration web services.
To perform initialization, complete the following steps:
  1. Create MetadataService and DataIntegrationService objects by instantiating the service locator classes:
    MetadataService mdService = new MetadataServiceLocator(); DataIntegrationService diService = new DataIntegrationServiceLocator();
  2. Get a MetadataInterface object (MWSProxy) from the MetadataService object created in step 1.
    If the Metadata service endpoint URL in the Metadata.wsdl has the correct URL, get the MWSProxy object:
    MWSProxy=mdService.getMetadata();
    Otherwise, get the MWSProxy object:
    MWSProxy=mdService.getMetadata(new java.net.URL(MWS_URL));
    MWS_URL is a variable containing the endpoint URL for the Metadata web services.
    Use the MWSProxy object to call Metadata web service operations.
  3. Get a DataIntegrationInterface object (DIWSProxy) from the DataIntegrationService object created in step 1.
    If the service endpoint URL in the DataIntegration.wsdl has the correct URL, get the DIWSProxy object:
    DIWSProxy=diService.getDataIntegration();
    Otherwise, get the DIWSProxy object:
    DIWSProxy=diService.getDataIntegration(new java.net.URL(DIWS_URL));
    DIWS_URL is a variable containing the endpoint URL for the Data Integration web services.
    Use the DIWSProxy object to call Data Integration web service operations.
  4. Call the Login operation with the MWSProxy object to create a session ID for the client application user account. The Login operation takes a domain, repository, user name, and password, wrapped in an object LoginRequest and returns a session ID.
    LoginRequest loginReq = new LoginRequest(); loginReq.setRepositoryDomainName(REPO_DOMAIN_NAME); loginReq.setRepositoryName(REPO_NAME); loginReq.setUserName(USER_NAME); loginReq.setPassword(PASSWORD); String sessionID = MWSProxy.login(loginReq);
    REPO_DOMAIN_NAME is a string containing a PowerCenter domain name, REPO_NAME is a string containing the name of a repository in the domain, USER_NAME is a string containing a user name valid for the repository, and PASSWORD is a string containing the password for the user to log in to the repository.
  5. Associate the MWSProxy and DIWSProxy objects with the repository and user name in the session ID. All subsequent requests made to the batch web services using the MWSProxy or DIWSProxy object use the repository and user name in the session ID.
    ((org.apache.axis.client.Stub)MWSProxy).setHeader(createSessionHeader(sessionID)); ((org.apache.axis.client.Stub)DIWSProxy).setHeader(createSessionHeader(sessionID));

0 COMMENTS

We’d like to hear from you!