473,657 Members | 2,727 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Newbie Help

1 New Member
I am so new to ASP I'm not sure I am breathing. A company one of my clients deals with provides information over the web. They provided the ASP code for a default web site that is used to communicate with them and I have installed it and coded a VB6 app to provide the interface. Here is the problem. The ASP gets an error "Exception occurred" message. When I respond to the error, the returned XML is not received. Also, the ASP stops via the debugger at the statement and stops the whole process. The guys who supplied the code don't know why and they have been less than helpful. Here is the complete code for the ASP:

<%
'& Response.Write( "version 1.0.1" & vbcrlf)
Server.ScriptTi meout = 60000
Dim xmlDoc
Set xmlDoc = CreateObject("M icrosoft.XMLDOM ")
xmlDoc.preserve WhiteSpace = TRUE

IF len(Request("XM L") & "" ) > 0 THEN ''*** Error occurs here ***"
' Validate the XML String
xmlDoc.loadXML( Request("XML"))
ELSE
' Validate the XML String
xmlDoc.load(Req uest)
END IF

IF xmlDoc.parsed THEN
' Send Valid XML to Processor
Dim NodeName
Set xNode = xmlDoc.firstChi ld
IF NOT xNode IS NOTHING THEN
NodeName = xNode.nodename
IF ucase(xNode.nod ename) = "XML" THEN
Set xNode = xNode.NextSibli ng
END IF
END IF

IF NOT xNode IS NOTHING THEN
NodeName = xNode.nodename
SELECT CASE xNode.nodename
CASE "OrderStatusRes ponse"
Dim objFSO, intX, fname
set objFSO = Nothing
Set objFSO = CreateObject("S cripting.FileSy stemObject")
intX = 0
Do
intX = intX + 1
fname = ("E:\dac\report _received_" & Cstr(intX) & ".xml")
Loop Until objFSO.FileExis ts(fname) = False
IF Request.TotalBy tes > 0 then
Const ForAppending = 8
Set objTextFile = objFSO.OpenText File(fname, ForAppending, True)
objTextFile.Wri teLine(xmlDoc.x ml)
END IF
objTextFile.Clo se
Response.Write "<XML><Status>A CCEPTED</Status></XML>"
CASE ELSE
Response.Write "<OrderStatusRe sponse>"
Response.Write "<ErrorDescript ion>"
Response.Write "<Element>X ML Root</Element>"
Response.Write "<Description>E RROR - INVALID TRANSACTION</Description>"
Response.Write "<Code>Post ing CSD System - default.asp: Invalid Transaction</Code>"
Response.Write "<Help>Vali d transactions are OrderStatusResp onse or XML. Contact IT for Help.</Help>"
Response.Write "</ErrorDescriptio n>"
Response.Write "</OrderStatusResp onse>"
END SELECT
END IF
ELSE

' Return an Error
Response.Write "<OrderStatusRe sponse>"
Response.Write "<ErrorDescript ion>"
Response.Write "<Element>X ML</Element><br>"
Response.Write "<Description>X ML String could not be parsed:" & xmlDoc.parseErr or & "</Description><br >"
Response.Write "<Code>Post ing CSD System - default.asp: XML not Valid</Code><br>"
Response.Write "<Help>Make sure all tags match and are of the same case.</Help><br>"
Response.Write "</ErrorDescriptio n>"
Response.Write "</OrderStatusResp onse>"
Response.Write "<ErrorDescript ion>"
Response.Write "<Element>X ML</Element>"
Response.Write "<Description>X ML String could not be parsed:" & xmlDoc.parseErr or & "</Description>"
Response.Write "<Code>Cust omer to USIS-CSD System - default.asp: XML not Valid</Code>"
Response.Write "<Help>Make sure all tags match and are of the same case.</Help>"
Response.Write "</ErrorDescriptio n>"
Response.Write "</OrderStatusResp onse>"
END IF
%>


Any ideas?????
Jun 7 '07 #1
1 1434
danp129
323 Recognized Expert Contributor
Don't have any idea. Does this cause the error too?
Expand|Select|Wrap|Line Numbers
  1. s=Request("XML")
Jun 8 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1300
by: igmox | last post by:
hi, i am a complete newbie and got stuck. my question is about costumers and prices Customer_ID CustomerName CustomerType 1 John 2 2 Joe 3 3 Mary 2 4 Nicky 1 5 Steve 3 and prices like:
0
2019
by: bradvanwick | last post by:
I've got URLs that look like: www.mysite.com/template.php?id=pagetitle www.mysite.com/template.php?id=folder/pagetitle I want the URLs to look like: www.mysite.com/pagetitle www.mysite.com/folder/pagetitle
23
2844
by: Gunnerman6875 | last post by:
Hi everyone, Well I'm a newbie to Access and your site so forgive me if my terminology is a little out. I'm currently trying to create what i thought would be a simple database for work. I'm in the British RAF and I'm currently in charge of the training cell at our Training Depot. Heres my problem, one of the tasks within my job role is to manage 3000+ training publications. These are signed out to instructors in various numbers, however i...
3
2161
by: R69D | last post by:
Hi, I'm real new to Java and need some help...was going through some old tutorials and need help with these questions: 1)What is “composition of methods?” How do u define the composition of methods? 2)What is the difference between the output from String s; System.out.println(“s = “+s); and String s = new String(); System.out.println(“s = “+s);
5
3323
by: yoyoz | last post by:
Help!!!! i am newbie to php, i was trying to establish the connection to another machine (solaris) so that i can retrieve data from the database stored inside there using my own PC. for your information, i am using apache 1.3.27 as my web server, php4 and mysql as i try to build an database with a web portal. the following is the scripts that i have written: <?php $connection = mysql_connect ("202.185.72.62:80","root","") or...
1
1009
by: uberboyz | last post by:
hi all! i am new to this forum! trying to get some help here. i want to validate 2 users before proceeding to the next function. i have no idea of how to do it, but i tried using the login function to validate. Dim valid As Boolean = b.login(txt_login.Text, txt_pwd.Text, txt_login2.Text, txt_pwd2.Text) If valid = True Then Response.Redirect("mainPage.aspx") txt_login.Text = "" ...
11
1494
by: itgetsharder | last post by:
can anyone help me? code errors! -------------------------------------------------------------------------------- im creating a code for a printer. the question i am trying to answer is : MyPrinter needs some printing methods. The first, signature: public boolean printOne(String text) {} should take a String as a parameter, and output it on a single line to the terminal window. It should also increment (add 1 to) the total number...
3
1399
by: lrheeza | last post by:
Hello, i am a newbie at ms access, please help this is a code i created to be able to get the multiple users i have selected in the form. i was able to select the users in the form an select folder however i am unable to save the user name to the table. i am able to save the folder name. what should i do? Dim vtr As Variant
2
1242
by: r_ahimsa_m | last post by:
Could you recommend me some free JavaScript validator? I was using JSlint but it reports nonsense errors. Please help. Thanks. /RAM/
0
8394
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8306
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7327
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6164
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4152
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1615
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.