hi Buddhimala, Thanks for pointing that out!
It is better to explain why we need to do that in the doc. Therefore, I have corrected the note now. On Mon, Nov 13, 2017 at 11:24 AM, Thivya Mahenthirarasa <thi...@wso2.com> wrote: > Thank you vijitha, I could able to resolve the error by using your > proposed method. > > > > On Mon, Nov 13, 2017 at 10:35 AM, Buddhimala Ranasinghe < > buddhim...@wso2.com> wrote: > >> Hi Praneesha, >> >> I have checked the update done in [1]. >> >> However, the line "Therefore, when you uncomment this property, WSO2 ESB >> does not apply this default content type when sending the message." seems >> like confusing the readers with the line "Comment out the >> http.headers.preserve=Content-Type parameter in the >> <EI_HOME>/conf/passthru-http.properties file.". >> >> Therefore, shall we simply say the reader to comment out the relevant >> parameter? >> >> [1] https://docs.wso2.com/display/ESB500/Configuring+Specifi >> c+Use+Cases#ConfiguringSpecificUseCases-EnablingRESTtoSOAP >> >> Regards, >> Buddhimala >> >> On Mon, Nov 13, 2017 at 10:33 AM, Buddhimala Ranasinghe < >> buddhim...@wso2.com> wrote: >> >>> Hi Praneesha, >>> >>> I have checked the update done in [1]. >>> >>> However, the line "Therefore, when you uncomment this property, WSO2 ESB >>> does not apply this default content type when sending the message." seems >>> like confusing the readers with the line "Comment out the >>> http.headers.preserve=Content-Type parameter in the >>> <EI_HOME>/conf/passthru-http.properties file.". >>> >>> Therefore, shall we simply say the reader to comment out the relevant >>> parameter? >>> >>> Regards, >>> Buddhimala >>> >>> On Fri, Nov 10, 2017 at 7:53 PM, Praneesha Chandrasiri < >>> pranee...@wso2.com> wrote: >>> >>>> This is applicable only to WSO2 ESB 5.0.0 and is fixed in WSO2 EI. >>>> Therefore, updated [1] accordingly. >>>> >>>> Thanks for the support Vijitha and Milinda! >>>> >>>> [1] https://docs.wso2.com/display/ESB500/Configuring+Specific+Use+Cases >>>> >>>> On Fri, Nov 10, 2017 at 5:21 PM, Vijitha Ekanayake <vijit...@wso2.com> >>>> wrote: >>>> >>>>> [++ documentation] >>>>> >>>>> The reason for the issue seems to be, ESB is preserving the >>>>> Content-Type header as the default behavior. Since GET request doesn't >>>>> have >>>>> a Content-Type, ESB sends application/x-www-form-urlencoded as the >>>>> Content-Type to the backend which is the reason for this failure. To >>>>> overcome this issue you can comment out the following parameter in the >>>>> passthru-http.properties. >>>>> >>>>> http.headers.preserve=Content-Type >>>>> >>>>> Thanks, >>>>> Vijitha. >>>>> >>>>> On Fri, Nov 10, 2017 at 5:04 PM, Vijitha Ekanayake <vijit...@wso2.com> >>>>> wrote: >>>>> >>>>>> Hi Buddhimala, >>>>>> >>>>>> The reason for the issue seems to be, ESB is preserving the >>>>>> Content-Type header as the default behavior. Since GET request doesn't >>>>>> have >>>>>> a Content-Type, ESB sends application/x-www-form-urlencoded as the >>>>>> Content-Type to the backend which is the reason for this failure. To >>>>>> overcome this issue you can comment out the following parameter in the >>>>>> passthru-http.properties. >>>>>> >>>>>> http.headers.preserve=Content-Type >>>>>> >>>>>> Thanks, >>>>>> Vijitha. >>>>>> >>>>>> >>>>>> On Fri, Nov 10, 2017 at 4:29 PM, Buddhimala Ranasinghe < >>>>>> buddhim...@wso2.com> wrote: >>>>>> >>>>>>> Hi All, >>>>>>> >>>>>>> Today I tried out "Enabling REST to SOAP" sample in ESB as per the >>>>>>> following wso2 document. >>>>>>> >>>>>>> https://docs.wso2.com/display/ESB500/Configuring+Specific+Us >>>>>>> e+Cases#ConfiguringSpecificUseCases-EnablingRESTtoSOAP >>>>>>> >>>>>>> But when I tried to invoke the API using the curl command, I got >>>>>>> following error. >>>>>>> >>>>>>> <faultstring>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.</faultstring> >>>>>>> >>>>>>> And the axis2 server side it gave the following error. >>>>>>> >>>>>>> [2017-11-10 16:25:33,268] ERROR {org.apache.axis2.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(Di >>>>>>> spatchPhase.java:102) >>>>>>> at org.apache.axis2.engine.Phase.invoke(Phase.java:329) >>>>>>> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:26 >>>>>>> 1) >>>>>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:1 >>>>>>> 67) >>>>>>> at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngi >>>>>>> ne(RESTUtil.java:144) >>>>>>> at org.apache.axis2.transport.http.util.RESTUtil.processXMLRequ >>>>>>> est(RESTUtil.java:89) >>>>>>> at org.apache.synapse.transport.nhttp.util.RESTUtil.processPOST >>>>>>> Request(RESTUtil.java:213) >>>>>>> at org.apache.synapse.transport.nhttp.ServerWorker.processEntit >>>>>>> yEnclosingMethod(ServerWorker.java:468) >>>>>>> at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWo >>>>>>> rker.java:291) >>>>>>> at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.r >>>>>>> un(NativeWorkerPool.java:172) >>>>>>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool >>>>>>> Executor.java:1142) >>>>>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo >>>>>>> lExecutor.java:617) >>>>>>> at java.lang.Thread.run(Thread.java:748) >>>>>>> [2017-11-10 16:25:33,270] ERROR >>>>>>> {org.apache.synapse.transport.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(Di >>>>>>> spatchPhase.java:102) >>>>>>> at org.apache.axis2.engine.Phase.invoke(Phase.java:329) >>>>>>> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:26 >>>>>>> 1) >>>>>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:1 >>>>>>> 67) >>>>>>> at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngi >>>>>>> ne(RESTUtil.java:144) >>>>>>> at org.apache.axis2.transport.http.util.RESTUtil.processXMLRequ >>>>>>> est(RESTUtil.java:89) >>>>>>> at org.apache.synapse.transport.nhttp.util.RESTUtil.processPOST >>>>>>> Request(RESTUtil.java:213) >>>>>>> at org.apache.synapse.transport.nhttp.ServerWorker.processEntit >>>>>>> yEnclosingMethod(ServerWorker.java:468) >>>>>>> at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWo >>>>>>> rker.java:291) >>>>>>> at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.r >>>>>>> un(NativeWorkerPool.java:172) >>>>>>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool >>>>>>> Executor.java:1142) >>>>>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo >>>>>>> lExecutor.java:617) >>>>>>> at java.lang.Thread.run(Thread.java:748) >>>>>>> >>>>>>> Please help to resolve. >>>>>>> >>>>>>> Regards, >>>>>>> Buddhimala >>>>>>> -- >>>>>>> >>>>>>> >>>>>>> *Buddhimala Ranasinghe* >>>>>>> Software Engineer-Support Team | WSO2 >>>>>>> Emil: buddhim...@wso2.com >>>>>>> Mobile:+94771563138 <+94%2077%20156%203138> >>>>>>> Web:http://wso2.com >>>>>>> [image: https://wso2.com/signature] <https://wso2.com/signature> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Dev mailing list >>>>>>> Dev@wso2.org >>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Vijitha Ekanayake >>>>>> Senior Software Engineer*, *WSO2, Inc.; http://wso2.com/ >>>>>> Mobile : +94 777 24 73 39 | +94 718 74 44 08 >>>>>> lean.enterprise.middleware >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Vijitha Ekanayake >>>>> Senior Software Engineer*, *WSO2, Inc.; http://wso2.com/ >>>>> Mobile : +94 777 24 73 39 | +94 718 74 44 08 >>>>> lean.enterprise.middleware >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "WSO2 Documentation Group" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to documentation+unsubscr...@wso2.com. >>>>> For more options, visit https://groups.google.com/a/wso2.com/d/optout. >>>>> >>>> >>>> >>>> >>>> -- >>>> Thanks & Best Regards, >>>> *Praneesha Chandrasiri* >>>> *Senior Technical Writer* >>>> *WSO2 Inc. * >>>> *Mobile: +(94) 718156888 <+94%2071%20815%206888>* >>>> *E-mail: pranee...@wso2.com <pranee...@wso2.com>* >>>> <http://wso2.com/signature> >>>> >>>> >>> >>> >>> -- >>> >>> >>> *Buddhimala Ranasinghe* >>> Software Engineer-Support Team | WSO2 >>> Emil: buddhim...@wso2.com >>> Mobile:+94771563138 <+94%2077%20156%203138> >>> Web:http://wso2.com >>> [image: https://wso2.com/signature] <https://wso2.com/signature> >>> >> >> >> >> -- >> >> >> *Buddhimala Ranasinghe* >> Software Engineer-Support Team | WSO2 >> Emil: buddhim...@wso2.com >> Mobile:+94771563138 <+94%2077%20156%203138> >> Web:http://wso2.com >> [image: https://wso2.com/signature] <https://wso2.com/signature> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "WSO2 Documentation Group" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to documentation+unsubscr...@wso2.com. >> For more options, visit https://groups.google.com/a/wso2.com/d/optout. >> > > > > -- > > *Thivya Mahenthirarasa* > > *Software Engineer -Support Team | WSO2* > > > *Email: thi...@wso2.com <thi...@wso2.com>* > > *Mobile: +94766461966 <+94%2076%20646%201966> <http://wso2.com/signature>* > *Web: http://wso2.com <http://wso2.com>* > -- Thanks & Best Regards, *Praneesha Chandrasiri* *Senior Technical Writer* *WSO2 Inc. * *Mobile: +(94) 718156888 <+94%2071%20815%206888>* *E-mail: pranee...@wso2.com <pranee...@wso2.com>* <http://wso2.com/signature>
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev