Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP XML
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 25th, 2005, 11:41 AM
Registered User
 
Join Date: Oct 2005
Location: , , .
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 02:31 PM.


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