Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Rosetta

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Rosetta
    3. Knowledge Articles
    4. SDK3.0 Use Stubs Instead of WS Locator

    SDK3.0 Use Stubs Instead of WS Locator

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Additional Information
    • Article Type: General
    • Product: Rosetta
    • Product Version: 3.2.1

    Desired Outcome Goal:
    When customer uses SDK3.0, the way the WS is called must be changed to use stubs instead of WS locator.

    Procedure:
    Instead of using the old lookup call:
    1. String producerWSDL = hostURL + "/dpsws/backoffice/ProducerWebServices?wsdl";
    2. WebServiceLocator.getInstance().lookUp(ProducerWebServices.class, producerWSDL)

    Use the generated stub (in this case it is ProducerWebServices_Service)
    ProducerWebServices producerWebServices = new ProducerWebServices_Service(new URL(producerWSDL),new QName("http://dps.exlibris.com/", "ProducerWebServices")).getProducerWebServicesPort();

    Then use the stub services:
    String producerAgentId = producerWebServices.getInternalUserIdByExternalId(userName);

    Additional Information

    Ex Libris recommends checking the FullFlowExample in the SDK.
    It includes many other examples and is also documented in EL Commons.

    Category: SDK - Rosetta

    Subject: Rosetta


    • Article last edited: 3/11/2014
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Save/Mail from OPAC (or OPAC via Primo) not working: doc_number is not filled
      • Search for specific sip returns more than one result
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Content Type
      Knowledge Article
      Language
      English
      Product
      Rosetta
    2. Tags
      1. 3.2.1
      2. contype:kba
      3. Prod:Rosetta
      4. Rosetta
      5. SDK - Rosetta
      6. Type:General
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved