This content has been marked as final.
Show 2 replies
-
1. Re: SOAPClient - unwanted WARN
phicouek Feb 21, 2008 8:53 AM (in response to phicouek)I'm using JBossESB 4.2.1 and below is sample call
jboss-esb.xml<action name="sendPagerRequestMapper" class="SendPagerRequestMapper"> </action> <action name="sendPagerWs" class="org.jboss.soa.esb.actions.soap.SOAPClient"> <property name="wsdl" value="http://validserver:8080/EMapComm/services/EMapCommSOAP?wsdl" /> <property name="responseAsOgnlMap" value="true" /> <property name="SOAPAction" value="PagerSend"/> </action>
process method from SendPagerRequestMapperpublic Message process(Message message) throws Exception { try { AutoMessage varMsg=(AutoMessage)message.getBody().get(); HashMap requestMap = new HashMap(); requestMap.put("PagerSend.capCode", varMsg.getCommServer()); requestMap.put("PagerSend.message", varMsg.getMessage()); message.getBody().add(requestMap); } catch(Exception ex) { ex.printStackTrace(); } return message; }
-
2. Re: SOAPClient - unwanted WARN
kconner Feb 21, 2008 10:57 AM (in response to phicouek)The WARN would suggest that the webservice is responding using chunking and not specifying the content length. As a result, the HttpClient is buffering the message internally and emitting the warning.
On the whole this should be harmless unless, that is, your webservice is returning MBs.