このコードは古いVB6でうまくいきます。私はVB.NETでこれを行うためのあらゆる種類の方法を試しましたが、動作させることはできません。誰でも.NETで動作するコードを教えてください。VBXでのMSXML
Dim objHTTP As New MSXML2.XMLHTTP
Dim strReturn As String
Dim objReturn As New MSXML2.DOMDocument
Dim url As String
Dim XMLEnvelope As String
url = "http://zzzzzdummy.com"
XMLEnvelope = vbNull
objHTTP.open("post", url, False, "", "") '
Debug.Print(Err.Number)
objHTTP.setRequestHeader("Content-Type", "text/xml")
objHTTP.setRequestHeader("Content-length", Len(XMLEnvelope))
Debug.Print("------------Send Envelope-------------")
Debug.Print(XMLEnvelope)
Debug.Print("--------------------------------------")
objHTTP.send(XMLEnvelope)
strReturn = objHTTP.responseText
objReturn.loadXML(strReturn)
Debug.Print("----------Response Envelope-----------")
Debug.Print(strReturn)
Debug.Print("--------------------------------------")
あなたは 'System.Xml'名前空間を見たことがありますか? –
他に何を試しましたか? –