Web service 笔记

    技术2022-05-11  33

    1、axis 中使用 basic 验证时,.net 调用需要设置:     UserAccountService uas = new UserAccountService();     uas.Url = this.accountServiceEndpointAddress;     uas.PreAuthenticate = true; // 预先处理,可以提高速度,不是必须     uas.Credentials = new System.Net.NetworkCredential(this.accountServiceUsername, this.accountServicePassword); 2、.net 客户端调用 axis 时报错:(不确定此解决方法的有效性) org.xml.sax.SAXException: No deserializer for {http://xml.apache.org/xml-soap}mapItem  <parameter name="dotNetSoapEncFix" value="true"/>

    最新回复(0)