I am using SMix 4.2
My http to http rout works if I use old http endpoints i.e 
<http:endpoint role="consumer" ..>

and 

<http:endpoint role="provider"...>

but when I try to access wsdl using http://0.0.0.0:8092/MyService?wsdl I see 
error message in the browser.

<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:ctx="http://www.springframework.org/schema/context";
       xmlns:http="http://servicemix.apache.org/http/1.0";
       xmlns:bar="http://myNamespace";
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
       http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
       http://servicemix.apache.org/http/1.0
http://servicemix.apache.org/schema/servicemix-http-3.2.3.xsd";>

In my beans.xml I replaced 

<http:endpoint role="consumer" locationURI="http://0.0.0.0:8092/MyService";
wsdlResource="http://remoteserver/myServices?wsdl"; ....>

<http:endpoint role="provider" ....>

with 

<http:soap-consumer locationURI="http://0.0.0.0:8092/MyService";
wsdl="http://remoteserver/myServices?wsdl"; .............>
<http:soap-provider ....>

These new endpoints force service and endpoints values to be same as what is
declared in wsdl. Now my service and enpoint in consumer and provider and I
get 

java.lang.IllegalStateException: An endpoint is already registered for key.


-- 
View this message in context: 
http://old.nabble.com/New-Http-soap-Endpoints-An-endpoint-is-already-registered-for-key-error-tp28824603p28824603.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to