473,545 Members | 2,092 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

cXML response page in PHP

80 New Member
I have some ASP code I'm trying to make work in PHP. The code is intended to receive a cXML feed and send a response. A tool sends this feed via tcp/ip port 80 transfer to my webserver. The tool fails when it is tried, but the client who owns the tool is unable to provide me with any log information as to why it fails. When I go to the page just through a browser, I get:

"XML Parsing Error: no element found" (if I use firefox. The IE error is so generic as to be totally useless).

This leads me to believe that the page is expecting some XML information to come in, and just not finding it.

Here's my code:

<?php
// Option $EXPLICIT;
header("Content-type: "."text/xml"); // $oXML is of type "msxml2.domdocu ment"
$uniqueID=doubl eval(time());
$oXML->resolveExterna ls=false;
$oXML->validateOnPars e=false;
$oXML->load($response );
$oXML->Save("/home/username".$uniq ueID.".xml");
?>
<!DOCTYPE cXML SYSTEM"http://xml.cXML.org/schemas/cXML/x.x.xxx/cXML.dtd">
<cXML payloadID="<? echo $uniqueID;?>@yo urdomain.com" xml:lang="en-US"
timestamp="1999-03-12T18:39-08:00">
<Response>
<Status code="200" text="OK"/>
</Response>
</cXML>
<?
$oXML=null;

?>
Nov 30 '07 #1
0 2452

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

Similar topics

0
2405
by: Jason Jodon | last post by:
I am trying to change the value of the Qty field in this cXML stream to reflect the value the user enters in the Qty field. Our programmer showed me this in XML using Microsoft.XMLDOM, but the rules don't seem to apply for cXML. Any help would be greatly appreciated by this very new cXML programmer. Thanks!!! --- <FORM METHOD=POST...
0
1213
by: Richard Buschhold | last post by:
Hi Ng, i need to create an XML-File according to the cXML.dtd. I have to do this from an Access97 database. So I think I have to Access with VBA? Further I think a parser won't help me, because that kind of software works in the opposite direction, which I need? Are there any tools / suggestions to keep me continue with that work?
1
4459
by: Dan | last post by:
Hi I've created a generic 'Report' class that takes a DataView from a DataGrid control and writes it out to the response as a csv file for download. Basically, when a user clicks the download button on the page, this class is instantiated and the download method called. The odd thing is you get the Save/Open dialog popup twice!! Any ideas...
2
7148
by: josh | last post by:
Hi, I am trying to validate cXML documents against cXML.dtd using the XmlValidatingReader. If I set the XMLValidatingReader's ValidatingType to ValidationType.DTD, I get the following System.Xml.Schema.XmlSchemaException: "The parameter entity replacement text must nest properly within markup
6
7325
by: john | last post by:
The standard method to transmit a file from an aspx page to a browser is to stream the file to the response then end the response. The HTML code generated by the aspx page is discarded, and the browser displays or offers to save the binary file instead. I would like to have the browser accept and display the revised HTML code as well as...
5
4548
by: venner | last post by:
I'm having an issue with an ASP.NET website after upgrading to ASP.NET 2.0. The website makes use of a central authentication service (CAS) provided at the university I work for. Each page checks a session variable, and if it is not present, does a Response.Redirect to a webpage for the CAS passing a url parameter for the url to post back...
0
1363
by: samridhi | last post by:
Hi Do anybody have code example in .net of providing a url for posting or requesting cxml timecard data. I searched the net but didn't found any example.
2
3910
by: rando1000 | last post by:
Has anyone worked with the commerce Xml standard before? I'm trying to write a php document that will send a Respond to a cXml Request to my URL. The only sample code I have is ASP, and I don't want to go that route for various reasons. Is this possible with PHP scripting, or do I need to look at Java?
0
1098
by: jtgarrison | last post by:
All - Is there a way to import CXML into Accesss? I know that you can import XML,, but I haven't been successful trying to import CXML. I'm not sure if there needs to be transform or not. Thanks. Jeff G
0
7473
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...
0
7408
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...
0
7661
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7815
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7763
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
4949
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...
0
3458
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...
0
3444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
712
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...

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.