Direct writing of soap to call webservice

Source: Internet
Author: User
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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.