Problem with defined endpoint in the Registry

tommy123's picture
Hello, i add an endpoint to the registry which was in a xml file: endpoint name="simpleEPRInvoker" address uri="http://localhost:9000/services/SimpleStockQuoteService"/ /endpoint Then i add a proxy with the endpoint from the registry: syn:proxy name="Simple_FMU_Proxy" transports="http" startOnLoad="true" statistics="disable" trace="disable" syn:target endpoint="Endpoints/endpoint_simpleFmu.xml"/ syn:publishWSDL key="WSDL/SimpleStockQuoteService"/ /syn:proxy When i start a test synapse says that the endpoint is invalid: 2009-06-17 10:56:54,322 [10.0.0.130.local] [HttpServerWorker-12] WARN FaultHandler ERROR_MESSAGE : Invalid endpoint configuration. 2009-06-17 10:56:54,322 [10.0.0.130.local] [HttpServerWorker-12] WARN FaultHandler ERROR_DETAIL : org.apache.synapse.SynapseException: Invalid endpoint configuration. at org.apache.synapse.config.xml.endpoints.EndpointFactory.handleException(EndpointFactory.java:464) at org.apache.synapse.config.xml.endpoints.EndpointFactory.getEndpointFactory(EndpointFactory.java:427) at org.apache.synapse.config.xml.endpoints.EndpointFactory.getEndpointFromElement(EndpointFactory.java:63) at org.apache.synapse.config.xml.endpoints.XMLToEndpointMapper.getObjectFromOMNode(XMLToEndpointMapper.java:51) at org.apache.synapse.registry.AbstractRegistry.getResource(AbstractRegistry.java:111) at org.wso2.carbon.mediation.registry.WSO2Registry.getResource(WSO2Registry.java:191) at org.apache.synapse.config.SynapseConfiguration.getEndpoint(SynapseConfiguration.java:507) at org.apache.synapse.core.axis2.Axis2MessageContext.getEndpoint(Axis2MessageContext.java:146) at org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:164) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275) at org.apache.synapse.transport.nhttp.ServerWorker.processPost(ServerWorker.java:290) at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:199) at org.apache.synapse.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:58) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:613) How may i add an endpoint to the registry and than to a proxy to make it work? I don't know, how to post xml tags. Thx, Piioo
indika's picture

Hi Following shows a correct

Hi Following shows a correct endpoint configuration. YOU MUST GIVE CORRECT namaspace - xmlns="http://ws.apache.org/ns/synapse" <endpoint xmlns="http://ws.apache.org/ns/synapse">     <address uri="http://localhost:9000/services/SimpleStockQuoteService"/> </endpoint> ESB sample 9 and 10 shows dynamic sequence /endpoint ...You can refer those. For post xmls ....You can use Rich editor (click open rich editor button) or attach xml files. Thanks Indika
piioo's picture

Thanks, it works :) Piioo

Thanks, it works :) Piioo
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)