The locationUri is the URI that will be used to send the HTTP request (and not the one specified in the wsdl if any). Make sure you have your web service running at http://localhost:8192/NSRService/ or change the URI to point to it.
On 5/29/07, Benamin <[EMAIL PROTECTED]> wrote:
gnodet wrote: > > Can you confirm that the null value for the channel property is causing > the > NPE ? > In such a case, you should check that you have called the base class > methods > if you > overrode some ... and try to set a breakpoint in the parent class to make > sure the channel > is correctly initialized. > > Yes, the channel was the problem. Thanks for the help. Now, I have another issue. It looks like the message gets to the http provider component, but then the provider fails to to send it to the web service. My xbean for the http provider looks like this: beans xmlns:http="http://servicemix.apache.org/http/1.0" xmlns:sm="http://tapestry.cgi.com/servicemanagerassembly"> <http:endpoint service="sm:httpService" endpoint="soap" role="provider" locationURI="http://localhost:8192/NSRService/" defaultMep="http://www.w3.org/2004/08/wsdl/in-out" soap="true" wsdlResource="http://localhost:8192/NSRService/main.wsdl " /> </beans> I have setup a jsr181 and http consumer for the web service. If I try the http://localhost:8192/NSRService/ through the sample client.html, I get a correct response. So I am thinking I must be setting something wrong in the http provider xbean. Any ideas what to look for? Here is the error it is giving me from the http provider: ERROR - HttpComponent - Error processing exchange InOut[ id: ID:massive-62699-1180398855630-11:0 status: Active role: provider service: {http://tapestry.cgi.com/smix}httpService endpoint: soap in: <?xml version="1.0" encoding="UTF-8"?><hello>Testing</hello> ] org.apache.commons.httpclient.NoHttpResponseException: The server localhost failed to respond at org.apache.commons.httpclient.HttpMethodBase.readStatusLine( HttpMethodBase.java:1835) at org.apache.commons.httpclient.HttpMethodBase.readResponse( HttpMethodBase.java:1590) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java :995) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry( HttpMethodDirector.java:397) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod( HttpMethodDirector.java:170) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java :396) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java :346) at org.apache.servicemix.http.processors.ProviderProcessor.process( ProviderProcessor.java:168) at org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess( AsyncBaseLifeCycle.java:489) at org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange( AsyncBaseLifeCycle.java:441) at org.apache.servicemix.common.BaseLifeCycle.onMessageExchange( BaseLifeCycle.java:46) at org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound( DeliveryChannelImpl.java:593) at org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting( AbstractFlow.java:174) at org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java :176) at org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java :134) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask (ThreadPoolExecutor.java:665) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:690) at java.lang.Thread.run(Thread.java:595) -- View this message in context: http://www.nabble.com/SE-that-continually-reads-and-sends-data-tf3764809s12049.html#a10846350 Sent from the ServiceMix - User mailing list archive at Nabble.com.
-- Cheers, Guillaume Nodet ------------------------ Principal Engineer, IONA Blog: http://gnodet.blogspot.com/
