c++ gsoap webservice入门 (二)

来源:互联网 发布:网络语除草是什么意思 编辑:程序博客网 时间:2024/05/18 20:48

另外一个在mfc中带参数的webservice调用

void CDlgLogin::OnBnClickedOk(){// TODO: 在此添加控件通知处理程序代码const char* server="http://192.168.1.250/xinwssb/service/BJGTJWSSBService.asmx"; BJGTJWSSBServiceSoapProxy ss(server,SOAP_C_UTFSTRING); _ns1__UserLogin hw;_ns1__UserLoginResponse hwp;hw.userName="rhythm";hw.pwd="rhythm";if(ss.UserLogin(&hw,&hwp)==SOAP_OK) { AfxMessageBox(hwp.UserLoginResult); } else AfxMessageBox("error"); }

参考:http://commandos.blog.51cto.com/154976/130652/

http://blog.csdn.net/startexcel/article/details/8208135

原创粉丝点击