Michael,
One possible problem is the service name of your HTTP provider endpoint,
which should match the name of the external web service you want to
call. You can also use the same name on your consumer endpoint to
obtain the pass-through behavior you describe, there's no need to use
the targetService attribute there.
I also think that you have to specify a real IP address or hostname.
You can use the 0.0.0.0 on a consumer endpoint to specify that you want
to bind to all networks your host is in, but here you'll have to specify
localhost or 127.0.0.1.
Regards,
Gert
Michael Mattox wrote:
Help!
I set up an http consumer & provider to pass through to an external
webservice running under tomcat. I cannot for the life of me get it
to work. Searching the mailing list shows the same error reported by
other people but I do not find any solutions posted. I'm using
3.1.1-incubating.
xbean.xml:
<http:endpoint service="test:MyProviderService"
endpoint="myProvider"
role="provider"
soapVersion="1.1"
soap="true"
locationURI="http://0.0.0.0:8080/test-business-service/services/BookService"
/>
<http:endpoint service="test:MyConsumerService"
endpoint="myConsumer"
targetService="test:MyProviderService"
role="consumer"
locationURI="http://0.0.0.0:8192/BookService/"
defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
soapVersion="1.1"
soap="true"
/>
web page result (http://ics030126:8192/BookService/?wsdl):
HTTP ERROR: 404
Unable to find requested resource
RequestURI=/BookService/main.wsdl
Powered by Jetty://
in the servicemix log:
18:21:50,858 | DEBUG | btpool0-0 - Acceptor0 SelectChannelConnector @
0.0.0.0:8192 | JettyContextManager |
ntextManager$ThreadPoolWrapper 441 | Dispatching job:
[EMAIL PROTECTED],io=0,w=true,b=0|0]
18:21:50,858 | DEBUG | btpool0-2 | ConsumerProcessor |
p.processors.ConsumerProcessor 120 | Receiving HTTP request: GET
/BookService/?wsdl HTTP/1.1
Host: ics030126:8192
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
18:21:50,967 | DEBUG | btpool0-0 - Acceptor0 SelectChannelConnector @
0.0.0.0:8192 | JettyContextManager |
ntextManager$ThreadPoolWrapper 441 | Dispatching job:
[EMAIL PROTECTED],io=1,w=true,b=0|0]
18:21:50,967 | DEBUG | btpool0-2 | ConsumerProcessor |
p.processors.ConsumerProcessor 120 | Receiving HTTP request: GET
/BookService/main.wsdl HTTP/1.1
Host: ics030126:8192
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
18:21:50,967 | DEBUG | btpool0-2 | HttpComponent |
e.servicemix.soap.SoapEndpoint 276 | Retrieving proxied endpoint
definition
18:21:50,967 | DEBUG | btpool0-2 | HttpComponent |
icemix.common.DefaultComponent 79 | Querying service description for
ServiceEndpoint[service={http://servicemix.apache.org/service}MyProviderService,endpoint=myProvider]
18:21:50,967 | DEBUG | btpool0-2 | HttpComponent |
icemix.common.DefaultComponent 87 | No description found for
{http://servicemix.apache.org/service}MyProviderService:myProvider
I'm completely blocked by this, quite embarrassingly so in front of my
client! If anyone can tell me how to get past this I'd be very
grateful. I'm trying to build a proof of concept for a new project.
Thanks,
Michael