1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Retrieving data from API

Discussion in 'Web Design & Development' started by Rashuz, May 31, 2017.

Thread Status:
Not open for further replies.
Advertisement
  1. Rashuz

    Rashuz Thread Starter

    Joined:
    May 31, 2017
    Messages:
    1
    I am trying to retrieve Hotel and Tour data from https://trial-www.jtbgenesis.com/genesis2-demo/services/GA_TourActivitySearch and display it in my website.

    I am calling that URL API from Javascript and Seems it is not working.

    Any suggestions or help on retrieving API?
    In addition I do have , this Sample SOAP code:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://service.api.genesis2.jtbgmt.com/">
    <soapenv:Header/>
    <soapenv:Body>
    <GA_TourActivitySearchRQ>
    <POS>
    <Source>
    <RequestorID ID="AGTUSER01" UserName="USERNAME" MessagePassword="Agtuser_01">
    <CompanyName Code="AGT01"/>
    <BasicInfo Version="2013" Language="EN"/>
    </RequestorID>
    </Source>
    </POS>
    <AvailRequestSegments>
    <AvailRequestSegment>
    <TourSearchCriteria>
    <Criterion SortType="PRICE" AvailStatus="OKRQ"/>
    <StartDayRange Start="2013-04-01" Days="5"/>
    <PlanCategory>
    <Category>ON</Category>
    </PlanCategory>
    <TourRef StartCityCode="TYO" DestinationCityCode="M04" LanguageSpoken="EN" TourCategory="THT"/>
    </TourSearchCriteria>
    </AvailRequestSegment>
    </AvailRequestSegments>
    </GA_TourActivitySearchRQ>
    </soapenv:Body>
    </soapenv:Envelope>

    which I can not display on my website.

    Thanks
     
  2. JiminSA

    JiminSA

    Joined:
    Dec 15, 2011
    Messages:
    2,832
    Investigating the first url, you supplied (https://trial-www.jtbgenesis.com/genesis2-demo/services/GA_TourActivitySearch), I cut it down, stage by stage and discovered, a user login requirement, here:- https://trial-www.jtbgenesis.com/genesis2-demo/
    Perhaps, you might get back to the jtbgenesis people and query this? (i.e. will the original link work, without a login?). In any event, it will be worthwhile talking to them, for a resolution to this problem, as it seems to me that it is within the API;)
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Tags:
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1190760