Ramya, this is a c# newsgroup you are posting to. I understand your
Webservice is .NET, but you're asking for classic VB help.
1) you could get the SOAP Toolkit which provides classic VB Support.
2) take a look at this sample code from an ASP page:
<%@ Page aspcompat=true Debug="true"%>
<%
Dim objXMLHTTP, xml, flightnumber, url
' Create an Server xmlhttp object:
xml = Server.CreateObject("MSXML2.ServerXMLHTTP")
url = cstr("http://www.imdb.com/Find")
xml.Open ("POST", url , False)
xml.Send ("select=All&for=My Big Fat Greek Wedding")
Response.Write ("<h1>This generated results from IMDB using ServerXMLHTTP
</h1>")
Response.Write (xml.responseText)
xml = Nothing
%>
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
"Ramya A" wrote:
Hi All:
I have a .NET webservice accepting an XML request document as a
parameter
How do I call this webservice with ServerXMLHTTP object from my VB6.0
client?
I have enabled the HttpPost and HttpGet protocols in the web.config
file.
This is the calling part:
Set xmlHTTPRequest = New MSXML2.ServerXMLHTTP40
xmlHTTPRequest.open "POST",
"http://localhost/WebService2/QueueList.asmx/QueueList", True
sParam = "strXMLRequest:=" & xmlDom.xml
xmlHTTPRequest.send (sParam)
It keeps throwing the error "Request format is invalid: ."
Please Help!
Thanks,
Ramya Ashok