Click to See Complete Forum and Search --> : Using SOAP 3.0 Toolkits


sindylee
March 16th, 2005, 03:55 AM
Hi All,

I am using SOAP 3.0 provided by Microsoft. I need to invoke a web services without WSDL. My codes are as follows: -

Dim connector As New MSSOAPLib30.HttpConnector30
Dim serializer As New MSSOAPLib30.SoapSerializer30
Dim composer As New MSSOAPLib30.DimeComposer30

connector.Property("EndPointURL") = endpoint 'Some URL
connector.Property("SoapAction") = "urn:soapAction"

composer.Initialize("c:\temp\")
serializer.InitWithComposer(connector.InputStream, composer)
serializer.StartEnvelope()
serializer.StartBody()
serializer.StartElement("action-ws")
serializer.StartElement("seq-no")
serializer.WriteString(lngID.toString)
serializer.EndElement()
serializer.EndElement()

Dim fileattach As New MSSOAPLib30.FileAttachment30
fileattach.FileName = filename

serializer.AddAttachment(fileattach)
serializer.EndBody()
serializer.EndEnvelope()
serializer.Finished()

When I execute serializer.Finished() I encounter Host not found. However I am very sure that the host exist. Please help as I am really in a loss....

Best Regards
Sindy Lee