vb6.0实现soap的客户端[2]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

stream.
    objSerial.Init objConn.InputStream
   
    ' Build the SOAP message.
    With objSerial
        .startEnvelope              ' <SOAP-ENV:Envelope>
        .startBody                  ' <SOAP-ENV:Body>
        ' Use the Web method's name and schema target namespace URI.
        .startElement "GetNaturalInfo"
        .endElement
        .endBody                    ' </SOAP-ENV:Body>
        .endEnvelope                ' </SOAP-ENV:Envelope>
    End With
   
    ' Send the SOAP message.
    objConn.EndMessage
   
    Set objRead = New MSSOAPLib.SoapReader
   
    ' Initialize the SOAP reader to the connector's output stream.
    objRead.Load objConn.OutputStream
     
    Set objResults = objRead.RPCResult.childNodes
       
    ' Iterate through the returned nodes.
    For Each objNode In objResults
        'Debug.Print objNode.nodeValue
        MsgBox objNode.nodeTypedValue
     Next objNode
   
       
End Sub

本文关键:vb6.0实现soap的客户端
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top