请教:delphi写的WebService接口在java中调用出错,接口函数中有地址传递类的参数 ( 积分: 200 )

  • 主题发起人 主题发起人 adden_lian
  • 开始时间 开始时间
A

adden_lian

Unregistered / Unconfirmed
GUEST, unregistred user!
接口函数:
function QueryClientIntroInfo(var APageDataInfo: TPageDataInfo;
AClientId: WideString): TIntroClientInfoArray;
stdcall;
调用方法:
IHgWsservice service = new IHgWsserviceLocator();
try {
IHgWs ihgws = service.getIHgWsPort();
TPageDataInfoHolder PageDataInfoHolder = new TPageDataInfoHolder(new TPageDataInfo());
PageDataInfoHolder.value.setPageNo(1);
PageDataInfoHolder.value.setPageSize(15);
PageDataInfoHolder.value.setRecordCount(0);

List result = new ArrayList();
TIntroClientInfo[] clist = (TIntroClientInfo[])ihgws.queryClientIntroInfo(PageDataInfoHolder, "C00000000000000001");
System.out.println(PageDataInfoHolder.value.getPageNo());
System.out.println(PageDataInfoHolder.value.getPageSize());
System.out.println(PageDataInfoHolder.value.getRecordCount());


} catch (ServiceException e){
e.printStackTrace();
}
错误信息:
java.lang.ClassCastException
at org.tempuri.IHgWsbindingStub.queryClientIntroInfo(IHgWsbindingStub.java:1715)
at JustText.main(JustText.java:48)
Exception in thread "main"

IHgWsbindingStub.java:1715中出错的代码:
try {
APageDataInfo.value = (HgWsDataType.TPageDataInfo) _output.get(new javax.xml.namespace.QName("", "APageDataInfo"));
} catch (java.lang.Exception _exception) {
APageDataInfo.value = (HgWsDataType.TPageDataInfo) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("", "APageDataInfo")), HgWsDataType.TPageDataInfo.class);
}
 
好歹也给点回应嘛``伤脑筋
 
注意传递的参数类型
 
来几个人分分喽!!!
 
看不懂,接分阿
 
现在的分还真贬值了,送也没人要了
 
问题没有解决,有其他的方法代替了
 
后退
顶部