Hi

Created a proxy for  Publish-Subscribe Channel EIP as follows, and created
a topic as " PublisherSubsciber"

Started two sample Axis2 server instances in port 9000  and 9001

https://docs.wso2.org/display/IntegrationPatterns/Publish-Subscribe+Channel



<?xml version="1.0" encoding="UTF-8"?>

<proxy xmlns="http://ws.apache.org/ns/synapse";

name="Event"

transports="https,http"

statistics="disable"

trace="disable"

startOnLoad="true">

<target>

<inSequence>

<event topic="PublisherSubsciber"/>

</inSequence>

<faultSequence>

<log level="full">

<property name="MESSAGE" value="Executing default &#34;fault&#34;
sequence"/>

<property name="ERROR_CODE" expression="get-property('ERROR_CODE')"/>

<property name="ERROR_MESSAGE" expression="get-property('ERROR_MESSAGE')"/>

</log>

<drop/>

</faultSequence>

</target>

<description/>

</proxy>


Then I tried using giving the below message


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ser="http://services.samples"; xmlns:xsd="http://services.samples/xsd";>
   <soapenv:Header/>
   <soapenv:Body>
      <ser:getQuote>
         <ser:request>
            <xsd:symbol>foo</xsd:symbol>
         </ser:request>
      </ser:getQuote>
   </soapenv:Body>
</soapenv:Envelope>

following error is observed in axis2 server

14/04/09 13:57:44 ERROR engine.AxisEngine: The endpoint reference (EPR) for
the Operation not found is /services/SimpleStockQuoteService and the WSA
Action = http://ws.apache.org/ws/2007/05/eventing-extended/Publish. If this
EPR was previously reachable, please contact the server administrator.

org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation
not found is /services/SimpleStockQuoteService and the WSA Action =
http://ws.apache.org/ws/2007/05/eventing-extended/Publish. If this EPR was
previously reachable, please contact the server administrator.

at
org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:102)

at org.apache.axis2.engine.Phase.invoke(Phase.java:329)

at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)

at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)

at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)

at
org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:459)

at
org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:279)

at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)

at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

at java.lang.Thread.run(Thread.java:722)

14/04/09 13:57:44 ERROR nhttp.ServerWorker: Error processing POST request

org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation
not found is /services/SimpleStockQuoteService and the WSA Action =
http://ws.apache.org/ws/2007/05/eventing-extended/Publish. If this EPR was
previously reachable, please contact the server administrator.

at
org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:102)

at org.apache.axis2.engine.Phase.invoke(Phase.java:329)

at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)

at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)

at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)

at
org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:459)

at
org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:279)

at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)

at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

at java.lang.Thread.run(Thread.java:722)

Please have a look.

Regards,

-- 
*Chathurika Mahaarachchi*
Software Engineer, QA.
WSO2 Inc.: http://wso2.com/
lean.enterprise.middleware
Mobile: +94718223950
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to