| |
Dim xmlhttp, xmldom
Set xmlhttp = CreateObject("Microsoft.XMLHTTP")
set xmldom = CreateObject("Microsoft.XMLDOM")
Dim sEnvelope
Dim szUrl
szUrl = "http://wsstemplate/ffi/_vti_bin/routingservices.asmx"
sEnvelope = "<soap:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance""
xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/"">"
sEnvelope = sEnvelope & "<soap:Body>"
sEnvelope = sEnvelope & "<GetDepartmentList "
sEnvelope = sEnvelope & "xmlns=""http://www.plasmedia.com/ffi/SharepointRoutingWS"">"
sEnvelope = sEnvelope & "<listName>Department Info</listName>"
sEnvelope = sEnvelope & "</GetDepartmentList></soap:Body></soap:Envelope>"
xmlhttp.Open "POST", szUrl, False
xmlhttp.setRequestHeader "Content-Type", "text/xml"
xmlhttp.setRequestHeader "SOAPAction", "http://www.plasmedia.com/ffi/SharepointRoutingWS/GetDepartmentList"
xmlhttp.send (sEnvelope)
If (xmlhttp.readyState = 4) Then
If (xmlhttp.Status = 200)
Then
xmldom.async = False
xmldom.loadXML(xmlhttp.responseText) 'Hasil ini
akan di hasilkan result XMl sesuai dengan hasil yg jelaskan
diatas
msgbox xmlhttp.responseText
End If
End If
Set xmldom = Nothing
Set xmlhttp = Nothing |