The 404 error must be for confiurations problems:

In the Provider, the "service" and "targetService" attributes must be equal
that the wsdl (external) service name.

In the Consumer, the "service" attribute must be equal that the service of
provider.

In this case, the xmlns:po="http://javaguru.fi/servicemix/service/po"; must
be equal that the wsdl (external) definitions targetNamespace.

regards


Mika-4 wrote:
> 
> I'm trying to doing something like this:
> 
> client --[soap/http]--> SM --[soap/http]--> actual service endpoint
> 
> ServiceMix exposes a external web service (OrderService) on the bus
> that service has a WSDL. Now I would like to expose that service on
> the bus to outside client that accesses it from the bus and not
> directly.
> 
> Exposing to outside from ServiceMix seems to work but I can't get the
> WSDL from the endpoint where the actual web service endpoint address
> is replaced with the servicemix endpoint address. It actually can't
> find the WSDL at all. I get a 404 error on /PoService/main.wsdl when
> accessing http://localhost:8192/PoService?WSDL
> 
> The OrderService is XFire example service deployed to JBoss.
> 
> What am I doing wrong?
> 
> Below is my SU xbean:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns:http="http://servicemix.apache.org/http/1.0";
>          xmlns:po="http://javaguru.fi/servicemix/service/po";>
> 
>     <http:endpoint service="po:PoService"
>                    endpoint="PoService"
>                    role="provider"
> 
> locationURI="http://localhost:8080/purchase-order/services/OrderService";
> 
> wsdlResource="http://localhost:8080/purchase-order/services/OrderService?WSDL";
>                    soap="true"
>                    />
> 
>     <http:endpoint service="po:PoService"
>                    endpoint="PoServiceEP"
>                    targetEndpoint="PoService"
>                    role="consumer"
>                    locationURI="http://0.0.0.0:8192/PoService/";
>                    defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
> 
> wsdlResource="http://localhost:8080/purchase-order/services/OrderService?WSDL";
>                    soap="true"
>                    />
> 
> </beans>
> 
> 
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
> 
> 
> 
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Exposing-extenal-web-service-to-bus-and-out-again-tf3225670s12049.html#a8961588
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to