C#为服务端,java为客户端,java调用C#的webservice,soap协议,传了5个string类型的值,C#只接受到了3个值,另外两个没有接收到
C# 代码如下, 目前,CSPID,和 LSPID 还有 int的cmdResult 这三个值取到了,java那边也确实返回了五个值,也抓了网络包看了,但是本地确实没取到
using BLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
//using System.Web.Script.Serialization;
using System.Web.Services;
using System.Web.Services.Description;
using System.Web.Services.Protocols;
using System.Xml;
namespace WebEPG.cis.service
{
[WebService(Namespace = "iptv")]
//[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[WebServiceBinding(ConformsTo = WsiProfiles.None)]
[System.ComponentModel.ToolboxItem(false)]
// 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消注释以下行。
//[System.Web.Script.Services.ScriptService]
[SoapDocumentService(RoutingStyle = SoapServiceRoutingStyle.RequestElement)]
public class syncNotifyResp : System.Web.Services.WebService
{
[SoapRpcMethod(Use = SoapBindingUse.Literal, Action = "http://tempuri.org/ResultNotify", RequestNamespace = "iptv", ResponseNamespace = "iptv")]
[WebMethod(MessageName = "ResultNotifySoapIn")]//(MessageName = "ResultNotifyWithName")
public string ResultNotify(string CSPID, string LSPID, string correlateID, int cmdResult, string resultFileURL)
{
WebBLL web = new WebBLL();
XmlDocument xmlDoc = new XmlDocument();
try
{
web.InsertWebLog("消息返回", "CSPID:" + CSPID + ",LSPID:" + LSPID + ",CorrelateID:" + correlateID + ",ResultFileURL:" + resultFileURL + ",cmdResult:" + cmdResult, 20200401);
return "0";
}
catch (Exception ex)
{
return ex.ToString();
}
}
}
}