2 coderman llq coderMan_Llq 于 2014.03.09 15:13 提问

axis2 java调用.net出现Unexpected character 'I' (code 73) in prolog; expected '<'

服务端暴露的接口有三个方法,其中一个正常,另外两个调用报以下错误,求人解答

org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'I' (code 73) in prolog; expected '<'
at [row,col {unknown-source}]: [1,1]
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:123)
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:354)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:555)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:531)
at net.uni.ap.webservice.WebServiceUtil.invoke(WebServiceUtil.java:74)
at net.uni.ap.webservice.WebServiceUtil.main(WebServiceUtil.java:123)
Caused by: org.apache.axiom.om.OMException:

客户端调用部分代码为:
RPCServiceClient serviceClient = new RPCServiceClient();
Options options = serviceClient.getOptions();
EndpointReference targetEPR = new EndpointReference( url );
options.setTo( targetEPR );
// options.setAction(nameSpace+"/"+param);
serviceClient.setTargetEPR(targetEPR);
QName opName = new QName( nameSpace, param );
Object[] results = serviceClient.invokeBlocking( opName, entry, returnTypes);

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!