Posting XML to web service

ninel

Active member
Joined
Mar 23, 2005
Messages
32
Location
Land O Lakes, Florida
Programming Experience
3-5
I am posting xml as a string to a web service function.

VB6 code:
objXMLPost.Open "POST", sUrl, False
objXMLPost.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
objXMLPost.send (sXML)

sXML is the xml string
sUrl is the web service function url

Web Service function code:
<WebMethod()> _
PublicFunction punchInEmployee(ByVal sRequestXML AsString)
Dim objDoc As New System.Xml.XmlDocument
objDoc.LoadXml(sRequestXML)

'I loop through the xml
End Function




I am getting the following error:
System.InvalidOperationException: Missing parameter: sRequestXML.

The url I am using: http://localhost/repclock/repclock.asmx?punchInEmployee


Am I posting the xml correctly?
Am I using the function name in the url correctly?
 
Last edited:
Back
Top