5

I am new to java web service and apache axis2.Every time i run my client i get an error that the input stream for an incoming message is null. What could the the issues? I have attached my log 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).

Martin
  • 471
  • 3
  • 8
  • 13
  • Take a look at http://stackoverflow.com/a/8879520/283084. If it does not help, please post the relevant part of your code. – harpun Jan 21 '13 at 19:16
  • Hi @harpun i have tried the above link but i'm still getting the same error. – Martin Feb 21 '13 at 10:44

2 Answers2

0

I managed to solve the error by adding the settings below in my options object

options.setProperty(Constants.Configuration.MESSAGE_TYPE,HTTPConstants.MEDIA_TYPE_APPLICATION_ECHO_XML);
options.setProperty(Constants.Configuration.DISABLE_SOAP_ACTION,Boolean.TRUE);
Baby Groot
  • 4,637
  • 39
  • 52
  • 71
Martin
  • 471
  • 3
  • 8
  • 13
0

Adding the following statement

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

resolved the issue in my scenario.

HamedKhan
  • 61
  • 1
  • 1
  • 6