I have a test account on hotelbeds.com to use XML Integration service. and the sent me all the xml files and XSDs files PLUS pdf spacification file contains the following example :-
SOAP message request example - <?xml version="1.0" encoding="UTF-8"?>
-
<soapenv:Envelope
-
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
-
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-
<soapenv:Body>
-
<hb:getHotelCategoryList xmlns:hb="http://axis.frontend.hydra.hotelbeds.com" xsi:type="xsd:string">
-
<HotelCategoryListRQ echoToken="DummyEchoToken" xmlns="http://www.hotelbeds.com/schemas/2005/06/messages"
-
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
-
xsi:schemaLocation="http://www.hotelbeds.com/schemas/2005/06/messages HotelCategoryListRQ.xsd">
-
<Language>ENG</Language>
-
<Credentials>
-
<User>TEST</User>
-
<Password>TEST</Password>
-
</Credentials>
-
</HotelCategoryListRQ>
-
</hb:getHotelCategoryList>
-
</soapenv:Body>
-
</soapenv:Envelope>
-
>>>>>>> my Question is how to implement this request to there server on the fly because they don't have any sample codes to use in ASP , ASP.net or even PHP
-
-
bye the wayI tried to use this sample
-
<%
-
-
'sforceSoapServer = "Link: "
-
sforceSoapServer = "http://212.170.239.71/appservices/http/FrontendService"
-
-
'sforceSoapServer = "Link: "
-
-
mySoap = "<?xml version=""1.0"" encoding=""UTF-8""?>"
-
mySoap=mySoap& "<soapenv:Envelope soapenv:encodingStyle=""http://schemas.xmlsoap.org/soap/encoding/"""
-
mySoap=mySoap& " xmlns:soapenv=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"">"
-
mySoap=mySoap& "<soapenv:Body>"
-
mySoap=mySoap& "<hb:getHotelCategoryList xmlns:hb=""http://axis.frontend.hydra.hotelbeds.com"" xsi:type=""xsd:string"">"
-
mySoap=mySoap& "<HotelCategoryListRQ echoToken=""DummyEchoToken"" xmlns=""http://www.hotelbeds.com/schemas/2005/06/messages"""
-
mySoap=mySoap& "xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"""
-
mySoap=mySoap& "xsi:schemaLocation=""http://www.hotelbeds.com/schemas/2005/06/messages HotelCategoryListRQ.xsd"">"
-
mySoap=mySoap& "<Language>ENG</Language>"
-
mySoap=mySoap& "<Credentials>"
-
mySoap=mySoap& "<User>******</User>"
-
mySoap=mySoap& "<Password>*****</Password>"
-
mySoap=mySoap& "</Credentials>"
-
mySoap=mySoap& "</HotelCategoryListRQ>"
-
mySoap=mySoap& "</hb:getHotelCategoryList>"
-
mySoap=mySoap& "</soapenv:Body>"
-
mySoap=mySoap& "</soapenv:Envelope>"
-
-
strSoapRequest = mySoap
-
-
'Build the SOAP header
-
Set xmlhttp = CreateObject("Msxml2.ServerXMLHTTP")
-
xmlhttp.open "POST", sforceSoapServer, False 'False = do not respond immediately
-
xmlhttp.setRequestHeader "Man", POST & " " & sforceSoapServer & " HTTP/1.1"
-
xmlhttp.setRequestHeader "Content-Type", "text/xml"
-
-
'Send the SOAP request
-
xmlhttp.send (strSoapRequest)
-
response.write (xmlhttp.responseText)
-
-
%>
but it gets this error
500 Servlet Exception - java.lang.RuntimeException: FATAL ERROR. Message: 'You are not allowed
-
to access the system.'
-
at com.hotelbeds.hydra.frontend.http.HTTPFrontendServlet.doPost(HTTPFrontendServlet.java:1034)
-
at javax.servlet.http.HttpServlet.service(HttpServlet.java:165)
-
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
-
at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96)
-
at com.caucho.server.http.Invocation.service(Invocation.java:315)
-
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
-
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:253)
-
at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:170)
-
at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
-
at java.lang.Thread.run(Thread.java:534)
-
Caused by: com.hotelbeds.hydra.resources.util.user.GrantException
-
Code: C01-01-001-TS
-
Message: You are not allowed to access the system.
-
Detailed message: null
-
-
at com.hotelbeds.hydra.resources.util.user.UserValidation.validateIPAddress(UserValidation.java:590)
-
at com.hotelbeds.hydra.frontend.http.HTTPFro
>> any help or adive will be appreciated
2 4364
you need ask HotelBeds to resolve you IP-address (send message to xml@hotelbeds.com )
I have a test account on hotelbeds.com to use XML Integration service. and the sent me all the xml files and XSDs files PLUS pdf spacification file contains the following example :-
SOAP message request example
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<hb:getHotelCategoryList xmlns:hb="http://axis.frontend.hydra.hotelbeds.com" xsi:type="xsd:string">
<HotelCategoryListRQ echoToken="DummyEchoToken" xmlns="http://www.hotelbeds.com/schemas/2005/06/messages"
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
xsi:schemaLocation="http://www.hotelbeds.com/schemas/2005/06/messages HotelCategoryListRQ.xsd">
<Language>ENG</Language>
<Credentials>
<User>TEST</User>
<Password>TEST</Password>
</Credentials>
</HotelCategoryListRQ>
</hb:getHotelCategoryList>
</soapenv:Body>
</soapenv:Envelope>
>>>>>>> my Question is how to implement this request to there server on the fly because they don't have any sample codes to use in ASP , ASP.net or even PHP
bye the wayI tried to use this sample
<%
'sforceSoapServer = "Link: "
sforceSoapServer = "http://212.170.239.71/appservices/http/FrontendService"
'sforceSoapServer = "Link: "
mySoap = "<?xml version=""1.0"" encoding=""UTF-8""?>"
mySoap=mySoap& "<soapenv:Envelope soapenv:encodingStyle=""http://schemas.xmlsoap.org/soap/encoding/"""
mySoap=mySoap& " xmlns:soapenv=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"">"
mySoap=mySoap& "<soapenv:Body>"
mySoap=mySoap& "<hb:getHotelCategoryList xmlns:hb=""http://axis.frontend.hydra.hotelbeds.com"" xsi:type=""xsd:string"">"
mySoap=mySoap& "<HotelCategoryListRQ echoToken=""DummyEchoToken"" xmlns=""http://www.hotelbeds.com/schemas/2005/06/messages"""
mySoap=mySoap& "xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"""
mySoap=mySoap& "xsi:schemaLocation=""http://www.hotelbeds.com/schemas/2005/06/messages HotelCategoryListRQ.xsd"">"
mySoap=mySoap& "<Language>ENG</Language>"
mySoap=mySoap& "<Credentials>"
mySoap=mySoap& "<User>******</User>"
mySoap=mySoap& "<Password>*****</Password>"
mySoap=mySoap& "</Credentials>"
mySoap=mySoap& "</HotelCategoryListRQ>"
mySoap=mySoap& "</hb:getHotelCategoryList>"
mySoap=mySoap& "</soapenv:Body>"
mySoap=mySoap& "</soapenv:Envelope>"
strSoapRequest = mySoap
'Build the SOAP header
Set xmlhttp = CreateObject("Msxml2.ServerXMLHTTP")
xmlhttp.open "POST", sforceSoapServer, False 'False = do not respond immediately
xmlhttp.setRequestHeader "Man", POST & " " & sforceSoapServer & " HTTP/1.1"
xmlhttp.setRequestHeader "Content-Type", "text/xml"
'Send the SOAP request
xmlhttp.send (strSoapRequest)
response.write (xmlhttp.responseText)
%>
but it gets this error
500 Servlet Exception
java.lang.RuntimeException: FATAL ERROR. Message: 'You are not allowed
to access the system.'
at com.hotelbeds.hydra.frontend.http.HTTPFrontendServ let.doPost(HTTPFrontendServlet.java:1034)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:165)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:103)
at com.caucho.server.http.FilterChainServlet.doFilter (FilterChainServlet.java:96)
at com.caucho.server.http.Invocation.service(Invocati on.java:315)
at com.caucho.server.http.CacheInvocation.service(Cac heInvocation.java:135)
at com.caucho.server.http.HttpRequest.handleRequest(H ttpRequest.java:253)
at com.caucho.server.http.HttpRequest.handleConnectio n(HttpRequest.java:170)
at com.caucho.server.TcpConnection.run(TcpConnection. java:139)
at java.lang.Thread.run(Thread.java:534)
Caused by: com.hotelbeds.hydra.resources.util.user.GrantExcep tion
Code: C01-01-001-TS
Message: You are not allowed to access the system.
Detailed message: null
at com.hotelbeds.hydra.resources.util.user.UserValida tion.validateIPAddress(UserValidation.java:590)
at com.hotelbeds.hydra.frontend.http.HTTPFro
>> any help or adive will be appreciated
Sign in to post your reply or Sign up for a free account.
Similar topics
by: gokul |
last post by:
Hi,
Iam a newbie to dotnet and I experience problems in using the Browser
control in VB .net. Though Iam able to use it with its basic features,
I need to customise it.
...
|
by: Andy Smith |
last post by:
I have been having massive problems trying to get data from ASP3 to XML.
Could anyone suggest as effective solution for building and XML file on the
fly?
Many Thanks,
Andy
|
by: Stumped and Confused |
last post by:
Hello,
I really, really, need some help here - I've spent hours trying to find a
solution.
In a nutshell, I'm trying to have a user input a value in form's
textfield. The value should then be...
|
by: Joakim Persson |
last post by:
Hello all. I am involved in a project where we have a desire to
improve our software testing tools, and I'm in charge of looking for
solutions regarding the logging of our software (originating...
|
by: virajajgaonkar |
last post by:
Hello All,
My aim is to have a MFC application which takes two word file names as
input. Then it opens these two word files in ms word apllication
windows for comparing side by side with...
|
by: Marius Horak |
last post by:
As in subject.
Thanks
MH
|
by: Hitesh |
last post by:
I am using ASP.NET (.ASPX) to develop a web application. I
am using one of my old COM component dll, which has a
method "OnStartPage", which has a parameter of
type "ScriptingContext".
My old...
|
by: Kevin S. Goff |
last post by:
Hi, all,
Hopefully this will make sense:
I have 2 classes that implement the same generic interface.
public interface IAgingReport<T>
{
T GetAgingReport(DateTime dAsOfDate);
}
|
by: Gustaf |
last post by:
Using VS 2005. I got an 'IpForm' class and an 'IpFormCollection' class,
containing IpForm objects. To iterate through IpFrom objects with
foreach, the class is implemented as such:
public class...
|
by: greek_bill |
last post by:
Hi,
I'm interested in developing an application that needs to run on more
than one operating system. Naturally, a lot of the code will be shared
between the various OSs, with OS specific...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |