DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: SOAP and XMLHTTP object...

  1. #1
    David Guest

    SOAP and XMLHTTP object...


    HI,
    Does anyone know a good way to send a SOAP message inside an XMLHTTP object.
    Everytime I try, I get a 405 error message from my server. I even try with
    an M-POST method but it still doesn't seem to work...
    So my question is the following : can someone give me the correct syntax
    and the required fields that I have to put in the HTTP envelope.

    Thanking you in advance

    Did anyone succeed making work the application example included in the MS
    book "XML and SOAP programming for BIZTALK Server" ?

  2. #2
    w Guest

    Re: SOAP and XMLHTTP object...


    I used this and it worked:
    Dim http_obj As MSXML2.XMLHTTP
    Set http_obj = CreateObject("Microsoft.XMLHTTP")
    http_obj.open "POST", "http://www.xml101.com/examples/httprequest.asp", False
    http_obj.send
    'Stop

    Debug.Print http_obj.Status
    Debug.Print http_obj.statusText
    Debug.Print http_obj.responseText
    Dim xml ' As MSXML2.DOMDocument
    Dim x As MSXML2.IXMLDOMNode
    Dim s As String
    Set xml = CreateObject("Microsoft.XMLDOM")
    xml.async = False
    xml.loadXML (http_obj.responseText)
    If (xml.parseError.errorCode <> 0) Then
    s = "XML error " & "<br>" & xml.parseError.reason
    Else
    s = ""
    For Each x In xml.documentElement.childNodes
    s = s & x.nodeName & "=" & x.childNodes(0).nodeValue & "; "
    Next
    End If

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center