Hi Steve ,
I think it's an xmlParse bug because that 's where it breaks. Essentially , without too much detail. the flow goes something like this :
<cfset content type="text/xml">
<cfquery orders> <!--- queries all orders and order data with a certain status ---->
<!--- Some conditional to check if there are records
if not , send a node with 0 for Number Of Orders
--->
<cfesle>
<!--- Loop through order data and create xml --->
<cfloop query=" orders" datasource="#config.dsn#">
<cfxml variable = "myorders">
<!--- All the order data in xml nodes---->
</cfxml>
</cfloop>
<cfoutput>#myorders#</cfoutput>
<!--- Here's the issue--->
<cfset xmlPOST = GetHTTPRequestData().content>
<cfset xmlDOM = xmlParse(xmlPOST)> <!--- -breaks here--->
<!--- Do some work here to update status in tbl---->
<!--- Test response to make sure reader is sending it--->
<cffile action="write" output="#xmlPOST#" file="ExpandPath('status.cfm')">
However , I can grab #xmlPOST# and write it out to a file and get good xml back , so I know the software is sending xml , but it might be tripping up the xmlParse method. Here are is the xml I get back from the software that I write out to a seperate file and it's good , I should be updating table with a status of F and reason read failed :
<?xml version="1.0" encoding="utf-8"?>
<SetOrderStatus>
<WebOrderNumber>322571</WebOrderNumber>
<DocumentNumber>322571</DocumentNumber>
<Status>F</Status>
<Reason>Item number: APALI22 not found in ICITEM table for customer: BLO02A</Reason>
</SetOrderStatus>
So , I am getting the response back from the order reader I just can't work on it from the xml file I create to read from , and unfortunately that's the file the reader sends the post back to. I hope I didn't confuse you further , thanks for your input!
Steve