ninel
Active member
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?
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: