gSOAP call WCF,but "wsse:Security" lead to error.Fllow is my code
gSOAP 2.8.15 [ wsdl2h -c -o smart.h http://www.myweb/?wsdl ]
and then i use: [ soapcpp2 -c -C -I E:\gsoap-2.8\gsoap\import smart.h ]
min code:
struct soap soap;
soap_init(&soap);
_tempuri__GetRolePrivilegeList param;
char* str="001";
param.strXML=str;
_tempuri__GetRolePrivilegeListResponse respons;
if
(soap_call___tempuri__GetRolePrivilegeList(&soap,NULL,NULL,¶m,&respons)
== 0)
{
cout<<respons.GetRolePrivilegeListResult<<endl;
}else{}
but when exec at line 6283 of soapC.c,it's error. this line txt:
if (soap_out_PointerTo_wsse__Security(soap, "wsse:Security", -1,
&a->wsse__Security, ""))
the WCF Build with VS2010 and C#. Thanks everyone look this problem,and
help me.
No comments:
Post a Comment