Hi Aruna,
Sample 50 synapse configuration seems to be out dated. in order to get the
sample worked, you need to set the SOAPAction transport header before
sending the soap message to backend since the rest message does not send
the SOAPAction header. If you did not set the SOAPAction, axis2 server does
not consider it is a soap message due to the fix done with the content type
text/xml

Setting SOAPAction
<property name="SOAPAction" value="getQuote" scope="transport"/>

Please create a Documentation JIRA to get the sample 50 fixed.

Thanks,
Nuwanw




On Wed, Dec 18, 2013 at 2:53 PM, Aruna Karunarathna <[email protected]> wrote:

> Hi all,
>
> When I ran  the sample 50 of wso2 esb [1] , I ended up with the following
> errors. Following is the error which I got on the axis2Server console.
>
> 13/12/18 14:48:04 ERROR engine.AxisEngine: The endpoint reference (EPR)
> for the Operation not found is /services/SimpleStockQuoteService and the
> WSA Action = null. 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 = null.
> 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$Worker.runTask(ThreadPoolExecutor.java:895)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
>     at java.lang.Thread.run(Thread.java:662)
> 13/12/18 14:48:04 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 = null.
> 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$Worker.runTask(ThreadPoolExecutor.java:895)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
>     at java.lang.Thread.run(Thread.java:662)
>
>
>
> However when running the sample removing "-Drest=true" parameter it gave
> the following output.
>
>
> Wed Dec 18 14:49:29 IST 2013 samples.services.SimpleStockQuoteService  ::
> Accepted order #1 for : 19735 stocks of IBM at $ 160.93494838305423
>
>
> What might be the cause of the error??..
>
> Thanks.
>
> [1].
> http://docs.wso2.org/display/ESB480/Sample+50%3A+POX+to+SOAP+conversion
> --
>
> * Aruna Sujith Karunarathna* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: [email protected] | Web: www.wso2.com
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Nuwan Wimalasekara
Senior Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to