I have an http: // 192.168.19.134/service/api. php question about calling webservice by writing soap directly? Wsdl
Two simple functions, feedback and add
Soap toolkit is easy to call when I use vb.
Dim ss As New SoapClient30 ss.MSSoapInit "http://192.168.19.134/service/api.php?wsdl"MsgBox ss.feedback("zzzz")MsgBox ss.Add(34, 56)
But I want to learn how to use xmlhttp and call it through soap?
url = "http://192.168.19.134/service/api.php?wsdl" oXMLHttp.Open "POST", url, False oXMLHttp.setRequestHeader "Content-Type", "text/xml; charset=utf-8" oXMLHttp.setRequestHeader "Content-length", Len(URLEncode(postData)) oXMLHttp.setRequestHeader "Accept-Language", "zh-CN" oXMLHttp.setRequestHeader "SOAPAction", "http://192.168.19.134/service/api.php?wsdl" oXMLHttp.setRequestHeader "Host", "192.168.19.134" oXMLHttp.Send URLEncode(postData)
Postdata
postData = "
" postData = postData & "
" postData = postData & "
" postData = postData & "
" postData = postData & "
1
" postData = postData & "
2
" postData = postData + "
" postData = postData + "
" postData = postData + "
"
When I send a message like this, I always receive a 500 error. what is the error?
Reply to discussion (solution)
Eldest brother. It seems to be a php Forum ..
Does your soap server support the get or post method?
Supported
Does your soap server support the get or post method?