WWSAPI 和设置“soapenv:Header”价值观
我正在尝试使用 WWS 从 C++ 应用程序连接到 Web 服务。我的基础连接工作得很好。我的 XML 消息有两部分:标头 (soapenv:Header) 和正文 (soapenv:Body)。生成的函数仅填充主体。如何设置标题信息?我认为它与 WsSetHeader() 或 WsAddCustomHeader() 有关,但无法找到在参数中使用的正确值。有人能在这里指出正确的方向吗?
我已经在谷歌上搜索并尝试研究这个问题好几天了,并且找到了许多有关 WWSAPI 的基本帮助的来源,但没有什么可以更深入地探讨如何将其用于更高级的应用程序。有什么好的链接或资源可以找到有关 WWSAPI 的更多高级帮助吗?
谢谢,
--Ben Burnett
I'm trying to connect to a web service from a C++ app using WWS. I got the base connection working just fine. My XML message has two parts though, a header (soapenv:Header) and a body (soapenv:Body). the generated functions only fill in the body. How do I set the Header information? I assumed it has something to do with WsSetHeader() or WsAddCustomHeader() but can't seam to find the right values to use in the parameters. Can someone point me in the right direction here?
I've been googling and trying to research this now for several days and am finding many sources for basic help with WWSAPI, but nothing seams to go deeper into how to use it for more advanced applications. any good links or resources to find more advanced help on WWSAPI?
Thanks,
--Ben Burnett
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此示例包含有关添加自定义标头的信息,但阅读您的描述后,您是否需要标准消息标头或自定义标头并不清楚。如果您实际上谈论的是标准消息标头,那么这些标头应该由 WsCreateMessage 和 WsInitializeMessage。
This example contains information on adding a custom header, but reading your description it is ambiguous whether you want the standard message headers or custom headers. If you are actually talking about the standard message headers, then these should be populated by WsCreateMessage and WsInitializeMessage.