vb.net写的Web Service在java调用出现的问题

phaqyxiao 2004-08-12 11:39:03
Public Structure ReturnStruc
Public return_flag As Integer '成功失败标志
......
End Structure
Public Structure StrucEmployee
Public xinbie As Short '性别
Public cengyongming As String '曾用名
Public chushengriqi As Date '出生日期
......
End Structure


<WebMethod()> _
Public Function InsertEmployee(ByVal EmployeeType As Short, ByVal RYSX As String, ByVal Name As String, ByVal Company As String, ByVal Department As String, ByVal Pinyin As String, ByVal GZNumber As String, ByVal employee As StrucEmployee) As ReturnStruc
{ ......
}

java这样调用
......
StrucEmployee se2 = new StrucEmployee();
se2.setXinbie((short)2);
rs = hsoap.updateEmployee("A00001","ljsnew","34920440002010101",se2);
......
出这样的错误:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString: Server was unable to read request. --> There is an error in XML
document (10, 35). --> String was not recognized as a valid DateTime.
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace: AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString: Server was unable to read request. --&gt; There is an error in
XML document (10, 35). --&gt; String was not recognized as a valid DateTime
.
faultActor:
faultNode:
faultDetail:
是啥问题?
好像是一个字符串与日期类型转换的问题。请指点

...全文
85 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
phaqyxiao 2004-08-12
  • 打赏
  • 举报
回复
Public Structure ReturnStruc
Public return_flag As Integer '成功失败标志
......
End Structure
Public Structure StrucEmployee
Public xinbie As Short '性别
Public cengyongming As String '曾用名
Public chushengriqi As Date '出生日期
......
End Structure


<WebMethod()> _
Public Function InsertEmployee(ByVal EmployeeType As Short, ByVal RYSX As String, ByVal Name As String, ByVal Company As String, ByVal Department As String, ByVal Pinyin As String, ByVal GZNumber As String, ByVal employee As StrucEmployee) As ReturnStruc
{ ......
}

<WebMethod()> _
Public Function UpdateEmployee(ByVal GZNumber As String, ByVal Name As String, ByVal Department As String, ByVal employee As StrucEmployee) As ReturnStruc
{

}

java这样调用
......
StrucEmployee se2 = new StrucEmployee();
se2.setXinbie((short)2);
rs = hsoap.updateEmployee("A00001","ljsnew","34920440002010101",se2);
......
出这样的错误:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString: Server was unable to read request. --> There is an error in XML
document (10, 35). --> String was not recognized as a valid DateTime.
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace: AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString: Server was unable to read request. --&gt; There is an error in
XML document (10, 35). --&gt; String was not recognized as a valid DateTime
.
faultActor:
faultNode:
faultDetail:
是啥问题?
好像是一个字符串与日期类型转换的问题。请指点
phaqyxiao 2004-08-12
  • 打赏
  • 举报
回复
这个属性是某一个结构的,可以不赋值吧?
guguniaoufo 2004-08-12
  • 打赏
  • 举报
回复
DateTime 没有值啊!

12,162

社区成员

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

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