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

敛我半世癫狂 2013-07-31 02:50:19
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
...全文
162 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复

12,162

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 Web Services
社区管理员
  • Web Services社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧