我有一个用 java 和 appache axis 实现的 Web 服务。我想在 .Net 中调用该服务。
问题是有一个必需的肥皂头,但它没有在 wsdl 中定义!
肥皂头必须如下所示:
;
778846user
有没有办法使用 .NET 发送此标头?
I have a web service implemented in java and appache axis.I want to call that service in .Net.
the problem is there is a required soap header but it is not defined in the wsdl !!
the soap header must be look like this :
<soapenv:Header>
<ns1:sessionID soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xmlns:ns1="urn:handlers.ws">778846user</ns1:sessionID>
</soapenv:Header>
Is there any way to send this header using .NET ??
发布评论
评论(1)
如果将 Web 服务添加为项目的引用,则可以使用 C#/VB 调用服务方法。
.net 框架将构建您的 SOAP 消息,包括 SOAP 标头。
If you add the webservice as a reference to the project you can call the service methods with C#/VB.
The .net framework will build your SOAP message, including the SOAP header.