.net与java webservice传输对象数组的问题

敛我半世癫狂 敛我半世癫狂 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
java平台那边调用.net提供的webservice接口,参数为对象数组。但是调用后,可识别我的对象,但数组长度一直为0

webservice
    /// <summary>
/// Summary description for DepartmentService
/// </summary>
[WebService(Namespace = "...")]
[SoapDocumentService(RoutingStyle = SoapServiceRoutingStyle.RequestElement)]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
// [System.Web.Script.Services.ScriptService]
public class DepartmentService : System.Web.Services.WebService
{

[WebMethod]
public void saveDepartmentDataFromSap(SapDepartmentData[] List)


对象
namespace DepartmentProxy
{
[XmlType(Namespace = "...")]
public class SapDepartmentData
...全文
评论 1
收藏 已收藏
分享
返回顶部
敛我半世癫狂
Web Services 12,164 成员 16,322 内容