如何将标头信息传递到soap标头SOAP_ENV__Header,在c++使用 gsoap
我正在使用 c++ 中的 gsoap 包调用 Web 服务并获取响应。 我还必须传递一些标头信息,我不知道该怎么做,因为我的标头是这样的 - /* SOAP 标头: */
struct SOAP_ENV__Header
{
public:
void *dummy; /* transient */
};
是否有什么我错过了,或者应该只是这样,我们必须在这里做出改变? 我已阅读此处一些信息,但我的标题只是假的。
其次,为了进一步调试,我想启用 DEBUGS,为此,根据用户指南,我取消了 stdsoap2.h 中 DEBUG 宏的注释,并再次使用 DEBUG 标志构建,但是,我无法获取 .log文件正在创建。有什么想法吗?
迪帕克
I am working on calling the webservices using the gsoap packages in c++ and get the responses.
I have to pass some header information as well, which I am not sure how to do that, as my header is like this -
/* SOAP Header: */
struct SOAP_ENV__Header
{
public:
void *dummy; /* transient */
};
Is there something I missed, or it is supposed to be like this only and we have to make changes here?
I have read here some info, but my header is just dummy.
Secondly, for further debugging, I wanted to enable DEBUGS and for that, as per the user-guide, I have uncommented the DEBUG macros in the stdsoap2.h and built with the DEBUG flag again but, I couldn't get the .log files getting created. Any idea?
Deepak
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你可以做类似的事情
You can do something like
对于休息呼叫,这有效 -
}
For rest calls this works -
}