Ezani 0 Newbie Poster

Hi all!

I'm really excited to be a part of this forum. I'm trying to open a SOAP file from a common dialog in VB6 and then use the MSSOAPReader to read the SOAP file's envelope, body, header, etc. My code is as follows :-

Dim Reader As New MSSOAPLib30.SoapReader30
m = Reader.Load("C:\SOAPResponse.xml")
'm = Reader.LoadXML("C:\SOAPResponse.xml")
Debug.Print Reader.Body.xml

The problem is, at the third line - I'm getting an error message :

Run time error '91' : Object variable or With block variable not set.

Question : How do I read a SOAP XML file (saved to disk) with MSSOAP SDK ?