XML HTTP question...one more try 
Author Message
 XML HTTP question...one more try

Sorry for cross-posting but I thought this might be better posted here....

I am trying to do a simple XML post to a server.  Does the XML text need to
contain the "xml version" and "Doctype"?  Assuming that the TNXphoneservelet
is expecting XML, does the XML string appear to be formatted properly?  As
you might guess, I am new to this...Thanks in advance...

Private Sub cmdGetAddr_Click()
  Dim oSrvXmlHttp As New MSXML2.ServerXMLHTTP
  Dim strXML As String
  strXML = "<?xml version=" & Chr(34) & "1" & Chr(34) & "?>" & _
           "<!DOCTYPE TNXRequest SYSTEM " & Chr(34) &
"http://localhost:7001/dtd/tnx/getphone.dtd" & Chr(34) & ">" & _
           "<TNXRequest>" & _
           "<TNXRequestHeader>" & _
           "<TNXCOMMAND>GETPHONE</TNXCOMMAND>" & _
           "</TNXRequestHeader>" & _
           "<TNXRequestBody>" & _
           "<NAME>" & _
           "<FIRST>Joe</FIRST>" & _
           "<LAST>Smith</LAST>" & _
           "</NAME>" & _
           "</TNXRequestBody>" & _
           "</TNXRequest>"
  oSrvXmlHttp.open "POST", " http://www.*-*-*.com/ ;, False
  oSrvXmlHttp.setRequestHeader "Content-Type", "text/xml"
  oSrvXmlHttp.send strXML
  MsgBox oSrvXmlHttp.responseText
End Sub



Wed, 09 Jun 2004 08:57:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Trying to append a simple XML document as a node in an XML document

2. XML Newbie question, getting a value from an XML string

3. One file question, one menu question

4. Working with XML via HTTP

5. http://www.besamung.de.vu http://www.besamung.de.vu http://www.besamung.de.vu http://www.besamung.de.vu http://www.besamung.de.vu http://www.besamung.de.vu

6. Posting xml doc via http

7. XML HTTP

8. ADVICE Needed (XML/HTTP) urgently

9. XML http request in synchronous mode

10. HELP - got to send an XML file from iPAQ to web via HTTP POST

11. Trying to connect to Access DB over HTTP

12. Try this encouraging page http://phobos.illtel.denver.co.us/

 

 
Powered by phpBB® Forum Software