http://www.cnblogs.com/fineboy/archive/2005/08/10/211403.html
解决方案 »
- C#WinForm DataGridView绑定了数据库 当数据库数据更新时如何使DataGridView自动更新数据
- 数据库access 字段filedata 类型old 一个字段怎么样保存多张图片和读取
- socket绑定套接字问题
- .net中如何在页面中嵌入word,excel?
- 急求C#中递归算法关于TreeView的无限分级方法(是C#!不要VB)
- 微软的Visual Developer 2005,有不用安装板吗?想放到移动硬盘上用。
- 取得unix命令提示符
- 高手留步,mac地址问题
- 【高难、高分】正则表达式求解,关于+-*/()混合运算计算公式拆分的。
- 关于在一个treeview树形目录结构中点击时右边显示其UML和名字,怎么实现
- c#加密问题
- 提问?应输入类型、命名空间定义或文件尾
非常感谢!不过上面这个是简单的调用,不包含soap header 部分。现在的问题是,JAVA写的WEBservice 需要验证SOAP头信息,而.net默认是不发SOAP头过去的 ,肯定要自己定义了,自定义方法:
Inherits System.Web.Services.Protocols.SoapHttpClientProtocol Public Class MySoapHeader
Inherits SoapHeader
Public Username As String
Public Password As String
End Class但是怎么样将这个soap包一起发送到java 的webserivce 呢?.net 中通过引用 java 的 webseice 后自动生产代理类
<System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace:="http://test/AVExternalWS", ResponseNamespace:="http://test/AVExternalWS", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)> _
Public Function aliReceiveCancelAV(<System.Xml.Serialization.XmlElementAttribute(IsNullable:=True)> ByVal in0 As String) As <System.Xml.Serialization.XmlElementAttribute("out", IsNullable:=True)> String
Dim results() As Object = Me.Invoke("aliReceiveCancelAV", New Object() {in0})
Return CType(results(0), String)
End Function现在的问题是怎么样向这类中添加自定义SOAP header,这样似乎也不对<System.Web.Services.Protocols.SoapDocumentMethodAttribute("MySoapHeader", RequestNamespace:="http://test/AVExternalWS", ResponseNamespace:="http://test/AVExternalWS", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)>
我遇到跟你一样的问题。
调用 JAVA web服务带了SOAPHEADER那怎么调,在.NET程序中根本不能看到头信息