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
but it gets this error
500 Servlet Exception
>> any help or adive will be appreciated
SOAP message request example
Code:
<?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)
%>
500 Servlet Exception
Code:
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
Comment