And as an addition, In Sample 51: MTOM and SwA optimizations and
request/response correlation [1], In the last paragraph it says,

"By sending this message through TCPMon you would be able to see the actual
message..." ,

To use TCPMon I had to change the port in
<ESB-HOME>/samples/axis2Client/src/samples/userguide/MTOMSwAClient.java file

line 70: String targetEPR = getProperty("opt_url", "http://localhost:*8280*
/services/MTOMSwASampleService");

I don't know this is the best way to do it and isn't it great if the
document state the steps rather than saying use the TCPMon or it's better
if we can use a smart client for this.

WDYT?..

[1]. http://docs.wso2.org/pages/viewpage.action?pageId=30540367

Regards,


On Thu, Dec 19, 2013 at 9:51 AM, Nirmal Fernando <[email protected]> wrote:

> I think we should document this if it's not already there. That is, if our
> samples cannot be run continuously, we should ask to reset any
> configuration changes made before. WDYT?
>
>
> On Thu, Dec 19, 2013 at 9:35 AM, Aruna Karunarathna <[email protected]>wrote:
>
>> Hi Nuwan,
>>
>> Thank you very much for the reply.
>>
>>
>> However I've acquired a fresh copy Enterprise Service Bus 4.8.0 and ran
>> the sample 50 again. This time it worked
>> as it should. I think the errors caused due to the configuration changes
>> made for the earlier samples.
>>
>>
>> Regards,
>>
>>
>> On Wed, Dec 18, 2013 at 9:28 PM, Nuwan Wimalasekara <[email protected]>wrote:
>>
>>> 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
>>>
>>>
>>>
>>>
>>
>>
>> --
>>
>> * 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
>>
>>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>


-- 

*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

Reply via email to