Alcances 2012 Web Services

Example Code.
Demonstrating the RQBookingSupport.rqGetRegions Web Method Call.
Returns the following....

XML Output:
<AlcancesData>
  <GeographicData>
    <Countries><Country CountryID="26R" CountryName="Alayor" /></Countries>
    <Zones><Zone ZoneID="26R" ZoneName="Alayor" /></Zones>
    <Areas><Area AreaID="26R" AreaName="Alayor" /></Areas>
    <Resorts><Resort ResortID="26R" ResortName="Alayor" /></Resorts>
  </GeographicData>
</AlcancesData>


Function fnGetRegions

' get Geographics

Const METHOD_NAME As String = "fnGetRegions"

Try

Dim oProxy As New RQBookingSupport.RQBookingSupport

Dim oAuthHeader As New rqBookingSupport.clsAuthenticationHeader

'// System Credential And UserID taken from prevous call to rqGetCredentials

oAuthHeader.SystemCredential = Session("SystemCredential")

oAuthHeader.UserID = Session("ValidatedUserID")

oProxy.clsAuthenticationHeaderValue = oAuthHeader

Dim sXML As String = oProxy.rqGetRegions()

'// XML Returned In sXML

Catch ex As Exception

'Exception occurred within this method, log it

Log.WriteLogEntry(ex, Me.CLASS_NAME, METHOD_NAME)

End Try

End Function