Anders Brohäll
2005-06-14 14:47:25 UTC
Hi,
Ive implemented a call to a XML host in ASP via MSXML2.ServerXMLHTTP
The object sets ok, and the call opens alright.
Even the .send() worked fine, but a couple of days ago it stopped
working. I havnt changed the code, nor the firewall or proxy settings on
the 'local' server. The XML host does get calls from other servers then
mine, that works fine.
Why does this happen? How do i solve it?
I really need help with this,
Best regards
Anders Brohäll
TDCNova/Generation V
The code is as follows, where sQuery is OK (works locally in the XML
hosts network):
'callelite.asp
Dim srvXmlHttp,XMLElement
Dim sUrl
Dim sQuery
Set srvXmlHttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
sUrl = "https://test.paynova.com/ws/payment/cc/request.asmx/paymentrequest"
sQuery =
"merchant_id=217999&merchant_orderid=6%2F13%2F2005+2%3A53%3A55+PM%3A+emmfil57&merchant_orderdata=3+mnaders+medlemskap&merchant_notify_page=https%3A%2F%2Fwww%2Egenerationv%2Ese%2Fgenerationv%2Ftest%5Fpaynova%2Easp%3Fmerchant%5Fnotify%5Fpage&merchant_redirect_url_ok=https%3A%2F%2Fwww%2Egenerationv%2Ese%2Fgenerationv%2Ftest%5Fpaynova%2Easp%3Fmerchant%5Fredirect%5Furl%5Fok&merchant_redirect_url_cancel=https%3A%2F%2Fwww%2Egenerationv%2Ese%2Fgenerationv%2Ftest%5Fpaynova%2Easp%3Fmerchant%5Fredirect%5Furl%5Fcancel&merchant_channel=1&merchant_channelid=6%2F13%2F2005+2%3A53%3A55+PM%3A+emmfil57%2C+Frlngning+av+medlemskap&cardholder_email=emmfil57%40generationv%2Ese&cardholder_httpaccept=image%2Fgif%2C+image%2Fx%2Dxbitmap%2C+image%2Fjpeg%2C+image%2Fpjpeg%2C+application%2Fvnd%2Ems%2Dpowerpoint%2C+application%2Fvnd%2Ems%2Dexcel%2C+application%2Fmsword%2C+application%2Fx%2Dshockwave%2Dflash%2C+%2A%2F%2A&cardholder_useragent=Mozilla%2F4%2E0+%28compatible%3B+MSIE+6%2E0%3B+Windows+NT+5%2E1%3B
+SV1%3B+%2ENET+CLR+1%2E1%2E4322%29&cardholder_phone=&cardholder_address1=Atlasgatan+8&cardholder_zip=11438&cardholder_city=Stockholm&cardholder_country=se&cardholder_language=SWE&cardholder_ip=213%2E115%2E152%2E212&pay_prodid=&cc_no=5105105105105100&pay_currency=SEK&pay_contracttext=Medlemskap%3A+3+mnader&cc_expiremmyy=0207&cc_magnetic_track_2=0&cc_cvc=150&cc_cardholdername=Emma+Filipsson&pay_cents=200&checksum=1A1C79943D3C38CEE67585D1D7233F62"
Call srvXmlHttp.Open("POST", sUrl, false)
srvXmlHttp.setRequestHeader "Content-Type",
"application/x-www-form-urlencoded"
Call srvXmlHttp.Send(sQuery)
While srvXmlHttp.readyState <> 4
srvXmlHttp.waitForResponse (1000)
Wend
response.write(srvXmlHttp.responseText)
Set srvXmlHttp = nothing
Ive implemented a call to a XML host in ASP via MSXML2.ServerXMLHTTP
The object sets ok, and the call opens alright.
Even the .send() worked fine, but a couple of days ago it stopped
working. I havnt changed the code, nor the firewall or proxy settings on
the 'local' server. The XML host does get calls from other servers then
mine, that works fine.
Why does this happen? How do i solve it?
I really need help with this,
Best regards
Anders Brohäll
TDCNova/Generation V
The code is as follows, where sQuery is OK (works locally in the XML
hosts network):
'callelite.asp
Dim srvXmlHttp,XMLElement
Dim sUrl
Dim sQuery
Set srvXmlHttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
sUrl = "https://test.paynova.com/ws/payment/cc/request.asmx/paymentrequest"
sQuery =
"merchant_id=217999&merchant_orderid=6%2F13%2F2005+2%3A53%3A55+PM%3A+emmfil57&merchant_orderdata=3+mnaders+medlemskap&merchant_notify_page=https%3A%2F%2Fwww%2Egenerationv%2Ese%2Fgenerationv%2Ftest%5Fpaynova%2Easp%3Fmerchant%5Fnotify%5Fpage&merchant_redirect_url_ok=https%3A%2F%2Fwww%2Egenerationv%2Ese%2Fgenerationv%2Ftest%5Fpaynova%2Easp%3Fmerchant%5Fredirect%5Furl%5Fok&merchant_redirect_url_cancel=https%3A%2F%2Fwww%2Egenerationv%2Ese%2Fgenerationv%2Ftest%5Fpaynova%2Easp%3Fmerchant%5Fredirect%5Furl%5Fcancel&merchant_channel=1&merchant_channelid=6%2F13%2F2005+2%3A53%3A55+PM%3A+emmfil57%2C+Frlngning+av+medlemskap&cardholder_email=emmfil57%40generationv%2Ese&cardholder_httpaccept=image%2Fgif%2C+image%2Fx%2Dxbitmap%2C+image%2Fjpeg%2C+image%2Fpjpeg%2C+application%2Fvnd%2Ems%2Dpowerpoint%2C+application%2Fvnd%2Ems%2Dexcel%2C+application%2Fmsword%2C+application%2Fx%2Dshockwave%2Dflash%2C+%2A%2F%2A&cardholder_useragent=Mozilla%2F4%2E0+%28compatible%3B+MSIE+6%2E0%3B+Windows+NT+5%2E1%3B
+SV1%3B+%2ENET+CLR+1%2E1%2E4322%29&cardholder_phone=&cardholder_address1=Atlasgatan+8&cardholder_zip=11438&cardholder_city=Stockholm&cardholder_country=se&cardholder_language=SWE&cardholder_ip=213%2E115%2E152%2E212&pay_prodid=&cc_no=5105105105105100&pay_currency=SEK&pay_contracttext=Medlemskap%3A+3+mnader&cc_expiremmyy=0207&cc_magnetic_track_2=0&cc_cvc=150&cc_cardholdername=Emma+Filipsson&pay_cents=200&checksum=1A1C79943D3C38CEE67585D1D7233F62"
Call srvXmlHttp.Open("POST", sUrl, false)
srvXmlHttp.setRequestHeader "Content-Type",
"application/x-www-form-urlencoded"
Call srvXmlHttp.Send(sQuery)
While srvXmlHttp.readyState <> 4
srvXmlHttp.waitForResponse (1000)
Wend
response.write(srvXmlHttp.responseText)
Set srvXmlHttp = nothing