5

我是 java web 服务和 apache axis2 的新手。每次运行客户端时,我都会收到一个错误,即传入消息的输入流为空。这些问题可能是什么?我附上了我的日志log4j:WARN No appenders could be found for logger (org.apache.axis2.util.Loader). log4j:WARN Please initialize the log4j system properly. org.apache.axis2.AxisFault: The input stream for an incoming message is null. at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:92) 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.csapi.www.wsdl.parlayx.sms.notification_manager.v2_3.service.SmsNotificationManagerServiceStub.startSmsNotification(SmsNotificationManagerServiceStub.java:619) at org.di.custom.Notification.startNotification(Notification.java:142) at org.di.custom.Notification.main(Notification.java:57)

4

2 回答 2

0

我设法通过在我的选项对象中添加以下设置来解决错误

options.setProperty(Constants.Configuration.MESSAGE_TYPE,HTTPConstants.MEDIA_TYPE_APPLICATION_ECHO_XML);
options.setProperty(Constants.Configuration.DISABLE_SOAP_ACTION,Boolean.TRUE);
于 2013-03-18T07:16:56.283 回答
0

添加以下语句

options.setProperty(Constants.Configuration.DISABLE_SOAP_ACTION,Boolean.TRUE);

在我的场景中解决了这个问题。

于 2015-11-21T06:45:16.667 回答