Wrox Programmer Forums
|
Classic ASP XML Using ASP 3 and XML. See also the XML category for more XML discussions not relating to ASP. NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 25th, 2005, 11:41 AM
Registered User
 
Join Date: Oct 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to xdidd
Default HELP! set up paypal's pdt failed.

1.I tried to set pdt up and create pdt.asp by exsample code and test it with sandbox,but when return to my pdt page,it showed The system cannot locate the resource specified.

2.After the debug I focused on then line objHTTP.send query lead to the failure.

3.I find another paragraph of code of Microsoft.XMLHTTP using. And this codes works well.

What does this matter mean?What shall I do?





affixation A. the example code of pdt.asp

'Token of Sandbox
authToken ="foglWnvSxc5VTjGyi3o-yF7GTbaJpSQsdP6ZDU7h7moP2RJyWZn7ZgUokZe"
txToken = Request.Querystring("tx")
query = "cmd=_notify-synch&tx=" & txToken & "&at=" & authToken

set objHttp = Server.CreateObject("Microsoft.XMLHTTP")
' set objHttp = Server.CreateObject("Msxml2.ServerXMLHTTP")
objHttp.open "POST", "http://www.sandbox.paypal.com/cgi-bin/webscr", false
'This line can not pass
objHttp.Send query
sQuerystring = objHttp.responseText



affixation B. the well worked codes

Set Retrieval = CreateObject("Microsoft.XMLHTTP")
With Retrieval
.Open "GET", url, False
.Send
GetURL = bytes2bstr(.responsebody)
'check the information , fail if less than 10k
if len(.responsebody)<100 then
response.write "Fail in getting remote file : <a href="&url&" target=_blank>"&url&"</a> "
response.end
end if

End With





Similar Threads
Thread Thread Starter Forum Replies Last Post
XPath: set operation with a disjoint node set rich_unger XSLT 7 May 6th, 2008 09:24 AM
PayPal's PHP SDK on Windows s2j1j1b0 PHP How-To 1 May 27th, 2007 05:56 AM
how i set charcter set to a connection yoord BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 April 23rd, 2005 07:47 AM
Logon failed. msrnivas .NET Web Services 3 January 24th, 2005 02:56 PM
How to set DOM character set sonicDace XML 0 May 27th, 2004 08:52 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.