Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Posting CXML using WININET API
Message
From
13/07/2004 20:17:24
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Title:
Posting CXML using WININET API
Miscellaneous
Thread ID:
00924019
Message ID:
00924019
Views:
211
I am attempting to post a CXML document. The document is formed correctly, as per XMLSpy. When I post, I get back the OK message, response code 200 (Status code="200" text="Ok">Ping ResponseMessage). That might be great, however, my contact at the company to where I post says that they are not getting anything from me. They say I should be getting a code 201 (Status code="201" text="Accepted">Accepted and submitted for processing).
Here is the code that i am using to post.


oHTTP = CREATEOBJECT("wwHTTP")
oHTTP.HTTPConnect("xxxx-xxx.staging.xxxx.net")
oHTTP.nHTTPPostMode = 4
oHTTP.AddPostKey("", tcXMLDocument)
lnResult = oHTTP.HTTPGetEx("iCIS/CXMLReceiver", @lcHTML, @lnText)


Again, the result is 0 (success) but there is no message on the server. Is this possible? Is the person whom I am working with a twit?

Do I need to do something special with the message? Here is a sample...
?xml version="1.0" encoding="UTF-8" ?>
!DOCTYPE cXML SYSTEM "http://xml.cXML.org/schemas/cXML/1.2.011/InvoiceDetail.dtd">
cXML version="1.2.011" timestamp="2004-07-13T15:50:36-08:00" xml:lang="en-US" payloadID="20040713155036.57036018._1A70XYH9U@telepress.com">
Header>
From>
Credential domain="DUNS">
Identity>134106397
/Credential>


Any help would be appreciated. Heck, is this even UTF-8 encoded?

I am using the wwHTTP tools, but I don't think that really matters because it is just using the WININET API. If there are other tools out there to post CXML messages, I would be interested as well.

DAvid
David
Reply
Map
View

Click here to load this message in the networking platform