forasp.net
in asp:
xmlHTTP = CreateObject("M icrosoft.XMLHTT P")
And I thought to use this sentence for asp.net but the server don´t
response right.
xmlHTTP = Server.CreateOb ject("MSXML2.Se rverXMLHTTP")
I have tried with MSXML2.ServerXM LHTTP.3.0 and MSXML2.ServerXM LHTTP.4.0
but it´s the same
Please help
Function GetXML()
Dim xml
xml = "<?xml version='1.0' encoding='ISO-8859-1'?>" + _
"<barceloDS_req uests>" + _
"<request type='availabil ity list' id='1'>" + _
" <language_code> ING</language_code>" + _
" <agency>" + _
" <primary>888</primary>" + _
" <secondary>88 </secondary>" + _
" <detail>888</detail>" + _
" <branch>1</branch>" + _
" </agency>" + _
" <contract></contract>" + _
" <check_in_date> 20040501</check_in_date>" + _
" <check_out_date >20040507</check_out_date> " + _
" <location>" + _
" <destination_co de>PMI</destination_cod e>" + _
" <zone_code></zone_code>" + _
" </location>" + _
" <establishment> " + _
" <code></code>" + _
" <category></category>" + _
" </establishment>" + _
" <board_type_cod e></board_type_code >" + _
" <occupancy>" + _
" <adults>2</adults>" + _
" <children>1</children>" + _
" <rooms>1</rooms>" + _
" </occupancy>" + _
"</request>" + _
"</barceloDS_reque sts>"
Dim xmlHTTP, URLPath, strXMLOut
' xmlHTTP = CreateObject("M icrosoft.XMLHTT P")
xmlHTTP = Server.CreateOb ject("MSXML2.Se rverXMLHTTP")
URLPath = "http://195.57.250.36/barceloDS/interface/xml"
xmlHTTP.open("P OST", URLPath, False)
xmlHTTP.SetRequ estHeader("Cont ent-type", "applicatio n/xml")
xmlHTTP.send(xm l)
strXMLOut = xmlHTTP.respons eText
Response.Write( strXMLOut)
End Function