Developer Docs
  • Our Products
    • Channel Manager
      • Integration and Onboarding Flow
      • RG Bridge - Supply (Push)
        • Integration Overview
          • Vision of Integration
            • Commercial value and business case
          • Information Data flow
            • One way integration
            • Two Way integration – ARI Broadcast and Reservation fetch
            • Information delivery mechanism
          • Technical feasibility of integration
            • Test property setup
            • Sample reservation data
          • RG Bridge Setup
          • Contract
          • Project Plan
          • Certification
          • Monitoring and after sales support
          • Integration checklist
        • Interface Specifications – Availability and Rates Notification Service
          • RG Bridge Integration Process
          • Intended Audience
          • Typographical Conventions
          • Technical Overview
          • Operations
            • Availability Notification
              • OTA_HotelAvailNotifRQ
                • Change in Inventory count
                • Change in availability status and Restrictions
              • OTA_HotelAvailNotifRS
              • XML Usage Specification
            • Rate Change Notification
              • OTA_HotelRateAmountNotifRQ
              • XML Usage Description
              • OTA_HotelRateAmountNotifRS
              • XML Usage Specification
            • Points to remember
        • Interface Specifications – Reservation Notification Service
          • RG Bridge integration process
          • Intended audience
          • Typographical conventions
          • Technical overview
          • Operations
            • Reservation Notification
              • OTA_HotelResNotifRQ
              • XML Usage specification
              • Sample Reservation Messages
              • OTA_HotelResNotifRS
              • XML Usage specification
          • Points to remember
          • Code Lists
      • RG Bridge - Reservation Retrieval (Pull)
        • Technical overview
        • Operations
          • Reservation Retrieval
            • OTA_ReadRQ
            • XML Usage specification
            • OTA_ResRetrieveRS
            • XML Usage specification
          • Reservation Confirmation
            • OTA_NotifReportRQ
            • XML Usage specification
            • OTA_NotifReportRS
            • XML Usage specification
        • Code Lists
      • Direct Connect - Demand (Push)
        • Introduction
        • Interface Specifications – ARI Service
          • Technical Overview
          • Operation: Property List
            • HotelPropertyListGetRQ
            • HotelPropertyListGetRS
            • Test Use Cases
            • FAQ
          • Operation: Product List
            • HotelProductListGetRQ
            • HotelProductListGetRS
            • Test Use Cases
            • FAQ
          • Operation: ARI Get
            • HotelARIGetRQ
            • HotelARIGetRS
            • Test Use Cases
            • FAQ
          • Operation: ARI Update
            • HotelARIUpdateRQ
            • HotelARIUpdateRS
            • Test Use Cases
            • FAQ
          • Points to remember
          • Code Lists
        • Interface Specifications – Reservation Notification Service
          • Technical overview
            • Communication protocols
            • General design
            • Authentication
          • Operation: Reservation
            • OTA_HotelResNotifRQ
            • OTA_HotelResNotifRS
            • Test use cases
            • FAQ
    • Smart Distribution
      • Onboarding process
      • Certification - Demand
      • Authentication Method
      • Book and Cancel Reservation
        • Transaction Header Formats
        • Book API
          • Book Reservation
          • Cancel Reservation
          • Booking Reservation Request Message Format
          • Booking Reservation Response Message Format
          • Cancel Reservation Request Message Format
      • Multiavailability (Enhanced Shopping Transaction)
        • Transaction Header Formats
        • Enhanced Shopping (EST) – Detailed Rate Information
          • Requesting Specific Rates
          • UltraDirect Account Author Negotiated Rate Processing
          • Unavailable Properties
          • UltraDirect Cache Processing
          • Enhanced Shopping Transaction Request Header Format
          • Enhanced Shopping Transaction Response Message Format
      • Pre-Book
        • Transaction Header Formats
        • Pre Book API
          • Pre-Book Request message format
          • Pre-Book Response message format
      • Property list and Booking Summary
        • PropertyList API
        • Booking Summary API
  • Content
    • Integration Process
    • Certification - Demand
    • Content Retrieve
      • SOAP/HTTP
        • SOAP Envelop
        • SOAP Body
        • Date and Time
        • Specifications for Currency Amounts
      • Transaction Specifications
      • Content Retrieval Request
      • Content Retrieval Response
    • Content Update
      • Overview
      • Transaction List
      • Transaction Flow
      • Batch processing
        • File naming convention
      • Multi-lingual capabilities
      • Associating media to textual content
      • Managing images
      • GDS content updates
      • Office of Foreign Assets Control (OFAC)
      • Interface requirements
        • SOAP envelope
        • Standard element formats
      • Transaction specifications
        • Data mapping of elements
        • Area Information
        • Affiliation information
        • Media information
        • Contact information
        • TPA extensions
        • GDS information
        • Response message
      • Codes lists
        • Credit Card
        • Error and Warning codes
        • Spoken Language
        • State and Country
      • Supported language codes
      • Client application generation using WSDL tool
  • UltraDirect
    • Integration Process
    • Certification
    • Ultradirect transaction sets - XML
      • Transaction header formats
      • Booking transactions
        • Booking request message format..
        • Request message format - Cancel
        • Request message format - Commit/Rollback
        • Request message format - Modify
        • Response message format - Booking
      • Enhanced shopping (EST)
        • Requesting Specific Rates
        • Request message format
        • Response message format.
      • Rate and availability transactions
        • Standard multi-availability
          • Request & Response message format
      • Rate Rules
        • Request message format
        • Response message format
      • Reference data transactions
        • Request message format..
        • Response message format..
      • Single property availability
        • Request message format
        • Response message format
    • XML ultradirect specifications
      • Overview
        • Transaction list
      • Interface requirements
      • Transaction meta data
    • Error Codes..
    • UltraDirect Transaction Samples and Usage
      • Using UltraDirect (Seamless, a real-time transaction)
      • EST (Enhanced Shopping Transaction)
      • Rate Rules
      • Book Reservation
      • Cancellation
      • Book Reservation with session control
      • Modification
      • Booking Storage and Retrieval
      • List of Test Credit Cards
      • Test properties in UAT
      • Guarantee Type and Method Combinations
    • xml ultradirect codes
  • Get in Touch
    • Questions?
Powered by GitBook
On this page
  1. Content
  2. Content Update

Client application generation using WSDL tool

PreviousSupported language codesNextUltraDirect

Last updated 3 months ago

One of the benefits of using web services and WSDL files is to allow clients to use tools to assist in generating code to communicate with these services. The challenge has been for these tools to catch up and be able to understand the complex and lengthy schema definitions that are used by the WSSE, OTA, and EB groups. The following sections are meant to serve as a guide and Reference Implementation of tools known to work with both these schema sets and Enterprise Connectivity web services.

Client Generation for Java

  1. To generate client code in Java, Enterprise Connectivity recommends the use of the Apache Axis2 web services engine available at . Version 1.4 has been tested and verified against the HCD XML Update Interface, but later releases are assumed to be backward compatible. The following are steps to build a client in Java using Axis2 1.4. The steps were executed on a Solaris UNIX system, but similar steps can be run on a Windows environment as well. Download and install Apache Axis2 version 1.4 from the above URL.

  • Download the wsdl file from:

  • Download all required xsd files from:

  • The WSDL and schema files should be placed in the same directory.

  • Set the environment variable AXIS2_HOME to the directory where Axis2 was installed. In this example, /usr/local/axis2-1.4

  • Set the environment variable JAVA_HOME to the directory where Java is installed on the system. In this example, /usr/java1.6

  • Generate the client source code from the WSDL and schemas by executing the following command:

$AXIS2_HOME/bin/wsdl2java.sh -uri HotelDescriptiveContentNotifWS.wsdl -p com.pegs.webservices -d xmlbeans -s -o generated

This will read the web service definition from the “HotelDescriptiveContentNotifWS.wsdl” file, put all generated source code in the “generated” directory, use the xmlbeans databinding API, and create the service stub file in the com.pegs.webservices package. This step takes some time to complete, on the order of 10 minutes.

Note that if the WSDL was downloaded from the location listed above, this is the production location of the web service, and transactions sent to this end point will only be successful if the client has been implemented in production. The end point can be updated in the WSDL file manually prior to generating the source code to a different location that the client has access to.

  • The wsdl2java.sh script generates a build.xml file for using Ant to compile the source code it creates. This file will be in the output directory defined above, in this case, the “generated” directory.

  • Generate a client class that implements your business logic, placing it in the following directory:

generated/src/com/pegs/webservices

Enterprise Cinnectivity will supply example code that constructs the appropriate objects and sends a message to the web service if this is desired. Please contact your Service Manager for details.

  • Compile the source code using Ant. From the “generated” directory, execute the following command to compile and JAR a client application:

ant jar.client

The client jar file will be placed in this directory:

generated/build/lib

If the ENTERPRISE CONNECTIVITY sample client code was used as the business logic, execute a request to the web service using the following command:

java –cp classpath com.pegs.webservices.Client

The classpath must include all Axis2 jar files, as well as the jar file created by the compilation step.

http://ws.apache.org/axis2
https://webservices.pegs.com/OTAHotelDescriptiveContentNotif/web_services?WSDL
https://webservices.pegs.com/OTAHotelDescriptiveContentNotif/