You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Milan Satala <mi...@gmail.com> on 2009/03/23 18:17:13 UTC

Re: how to use http:soap-consumer and http:soap-provider with single wsdl

I've only tried this in a single SU. Unfortunately I ran into several other
problems when I deployed the SA to a servicemix running inside tomcat (this
configuration is used in our production server). I found two bugs in
http:soap-consumer and another one in http:endpoint when I tried to switch
to it. I'll be posting them to jira soon.
Back to the problem at hand. I have to provide a wsdl and both consumer and
provider need to have the same service and endpoint names as those stated in
the wsdl, otherwise I get an exception. If I use different service/endpoint
name I get another exception.


Gert Vanthienen wrote:
> 
> Milan,
> 
> If you're just using these two endpoints, you should be able to give
> them the same name.  The provider endpoint is an internal endpoint,
> but the consumer endpoint is an external endpoint and it should be
> perfectly fine to have the two of them running at the same time in the
> container.  Does the exception only occur if the two endpoints are in
> the same SU or do you have it all the time?
> 
> Regards,
> 
> Gert Vanthienen
> ------------------------
> Open Source SOA: http://fusesource.com
> Blog: http://gertvanthienen.blogspot.com/
> 
> 
> 
> 2009/3/19 Milan Satala <mi...@gmail.com>:
>>
>> I need servicemix to expose a webservice and route incoming messages to
>> actual provider. The problem is that both http:soap-consumer and
>> http:soap-provider forces me to use the same service and endpoint name as
>> the wsdl.
>> This naturally leads to following exception:
>> javax.jbi.management.DeploymentException: More than one endpoint found in
>> the SU for key:
>> {http://www.prolixproject.org/loes}LOEventService:LOEventServiceSoap
>>
>> Is there a way to route messages using a single wsdl?
>>
>> Here's my xbean.xml:
>> <http:soap-consumer service="loes:LOEventService"
>>        endpoint="LOEventServiceSoap"
>>        wsdl="classpath:LOEventService.wsdl"
>>        locationURI="http://localhost:8193/loes/"
>>        targetService="loes:LOEventService"
>>        targetEndpoint="LOEventServiceSoap"
>>        useJbiWrapper="true"
>>        validateWsdl="false"
>>        />
>>
>> <http:soap-provider service="loes:LOEventService"
>>      
>>  locationURI="http://localhost:1278/bluebox-web/services/LOEventService"
>>        endpoint="LOEventServiceSoap"
>>        wsdl="classpath:LOEventService.wsdl"
>>       useJbiWrapper="true"
>>        />
>> --
>> View this message in context:
>> http://www.nabble.com/how-to-use-http%3Asoap-consumer-and-http%3Asoap-provider-with-single-wsdl-tp22597992p22597992.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -----
> ---
> Gert Vanthienen
> http://gertvanthienen.blogspot.com
> 

-- 
View this message in context: http://www.nabble.com/how-to-use-http%3Asoap-consumer-and-http%3Asoap-provider-with-single-wsdl-tp22597992p22663896.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.