I have attached the configuration that I am trying out. I have commented out
configuration using old http endpoints which works. The only problem with
old endpoints is that I am unable to access the wsdl from a browser. i.e.
http://hostname:8092/cbservices/MyService/main.wsdl does not work.


With new http endpoints I am able to see
http://hostname:8092/cbservices/MyService/main.wsdl 
but the service route doesn't work.

I cannot use different endpoint names using new http:soap endpoints if there
is only one port in my wsdl.

I tried making a copy of wsdl and changed the portname  in copy of the wsdl
and correspoinding endpoint name in beans.xml but then my soap request is
not going through to the provider.
I get following error when I try to test out new configuration by passing a
soap message:
java.lang.NullPointerException: InputStream content not found
        at
org.apache.servicemix.soap.interceptors.mime.AttachmentsInInterceptor.handleMessage(AttachmentsInInterceptor.java:46)
        at
org.apache.servicemix.soap.core.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:85)
        at
org.apache.servicemix.http.endpoints.HttpSoapConsumerMarshaler.createExchange(HttpSoapConsumerMarshaler.java:107)
        at
org.apache.servicemix.http.endpoints.HttpConsumerEndpoint.createExchange(HttpConsumerEndpoint.java:421)
        at
org.apache.servicemix.http.endpoints.HttpConsumerEndpoint.process(HttpConsumerEndpoint.java:266)
        at
org.apache.servicemix.http.HttpBridgeServlet.service(HttpBridgeServlet.java:56)






Jean-Baptiste Onofré wrote:
> 
> Hi,
> 
> Have you defined service, endpoint and targetService, targetEndpoint 
> attributes ?
> Haven't you defined the same endpoint name two times ?
> 
> Regards
> JB
> 
> On 06/09/2010 02:02 AM, ssheth wrote:
>>
>> 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.
>>
>>
> 
> 
http://old.nabble.com/file/p28833139/beans.xml beans.xml 
-- 
View this message in context: 
http://old.nabble.com/New-Http-soap-Endpoints-An-endpoint-is-already-registered-for-key-error-tp28824603p28833139.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to