Re: [Dev] Not getting response in try-it in FF browser
Hi Asanka, Thanks for the info. I'll check on that. -- Thilini On Sun, Apr 27, 2014 at 10:52 PM, Asanka Abeyweera wrote: > Hi, > > I also faced a similar issue when I was using the Try-It tool in WSO2 DSS > in Firefox (to test a sample [1]). I think the issue is related to the > default ACCEPT header [3] values used by the two browsers. > > Header in the request from Firefox: > ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 > > Header in the request from Chrome: > ACCEPT: */* > > Since there is "application/xml" value in the ACCEPT header of the Firefox > request, server responds with a plain XML message instead of a SOAP > message. But for the request from Chrome, server responds with a SOAP > message since the ACCEPT header value is "*/*". > > When the response is processed to show in the Try-It tool, it looks for a > SOAP body in the response ( line 523 of WSRequest.js [2]). Since there is > no SOAP body in response for Firefox browser, the results failed to render. > > One solution for this issue is to set the ACCEPT header explicitly in the > request. > > [1]. https://docs.wso2.org/display/DSS320/Boxcarring+Sample > [2]. > http://wso2.org/svn/browse/wso2/trunk/carbon/core/org.wso2.carbon.ui/src/main/resources/web/admin/js/WSRequest.js?view=markup > [3]. http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1 > > > > On Fri, Apr 25, 2014 at 2:34 PM, Chanaka Jayasena wrote: > >> You are getting the response but it's not rendered in the UI correctly. >> So try to find the place where the response is set to the UI. Start >> debugging from there. >> >> thanks, >> Chanaka >> >> >> On Fri, Apr 25, 2014 at 12:40 PM, Thilini Ishaka wrote: >> >>> >>> Hi All, >>> >>> I'm facing the aforementioned issue now. A sceenshot is attached. I >>> don't see any error in the Firebug error console. Seeing the correct >>> response on Firebug reponse window. >>> This should be a try-it issue in FF as it works on chrome without any >>> issue. >>> >>> This is a blocker for me at the moment for the release work. >>> >>> Kindly appreciate quick help on this if you know anything related to >>> this or anyway of further debugging the issue. >>> >>> Thanks >>> Thilini >>> >>> -- >>> Thilini Ishaka >>> Senior Software Engineer >>> Phone: +94 11 214 5345 >>> WSO2 Inc. http://wso2.com >>> >>> blog: thiliniishaka.blogspot.com >>> linkedin: http://lk.linkedin.com/in/thiliniishaka >>> twitter: https://twitter.com/#!/ThiliniIsh >>> >> >> >> >> -- >> Chanaka Jayasena >> Senior Software Engineer; WSO2, Inc.; http://wso2.com/ >> email: chan...@wso2.com; cell: +94 77 785 5565 >> blog: http://chanaka3d.blogspot.com >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Asanka Abeyweera > Software Engineer > WSO2 Inc. > > -- Thilini Ishaka Senior Software Engineer Phone: +94 11 214 5345 WSO2 Inc. http://wso2.com blog: thiliniishaka.blogspot.com linkedin: http://lk.linkedin.com/in/thiliniishaka twitter: https://twitter.com/#!/ThiliniIsh ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Not getting response in try-it in FF browser
Hi, I also faced a similar issue when I was using the Try-It tool in WSO2 DSS in Firefox (to test a sample [1]). I think the issue is related to the default ACCEPT header [3] values used by the two browsers. Header in the request from Firefox: ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Header in the request from Chrome: ACCEPT: */* Since there is "application/xml" value in the ACCEPT header of the Firefox request, server responds with a plain XML message instead of a SOAP message. But for the request from Chrome, server responds with a SOAP message since the ACCEPT header value is "*/*". When the response is processed to show in the Try-It tool, it looks for a SOAP body in the response ( line 523 of WSRequest.js [2]). Since there is no SOAP body in response for Firefox browser, the results failed to render. One solution for this issue is to set the ACCEPT header explicitly in the request. [1]. https://docs.wso2.org/display/DSS320/Boxcarring+Sample [2]. http://wso2.org/svn/browse/wso2/trunk/carbon/core/org.wso2.carbon.ui/src/main/resources/web/admin/js/WSRequest.js?view=markup [3]. http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1 On Fri, Apr 25, 2014 at 2:34 PM, Chanaka Jayasena wrote: > You are getting the response but it's not rendered in the UI correctly. So > try to find the place where the response is set to the UI. Start debugging > from there. > > thanks, > Chanaka > > > On Fri, Apr 25, 2014 at 12:40 PM, Thilini Ishaka wrote: > >> >> Hi All, >> >> I'm facing the aforementioned issue now. A sceenshot is attached. I don't >> see any error in the Firebug error console. Seeing the correct response on >> Firebug reponse window. >> This should be a try-it issue in FF as it works on chrome without any >> issue. >> >> This is a blocker for me at the moment for the release work. >> >> Kindly appreciate quick help on this if you know anything related to this >> or anyway of further debugging the issue. >> >> Thanks >> Thilini >> >> -- >> Thilini Ishaka >> Senior Software Engineer >> Phone: +94 11 214 5345 >> WSO2 Inc. http://wso2.com >> >> blog: thiliniishaka.blogspot.com >> linkedin: http://lk.linkedin.com/in/thiliniishaka >> twitter: https://twitter.com/#!/ThiliniIsh >> > > > > -- > Chanaka Jayasena > Senior Software Engineer; WSO2, Inc.; http://wso2.com/ > email: chan...@wso2.com; cell: +94 77 785 5565 > blog: http://chanaka3d.blogspot.com > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Asanka Abeyweera Software Engineer WSO2 Inc. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Not getting response in try-it in FF browser
You are getting the response but it's not rendered in the UI correctly. So try to find the place where the response is set to the UI. Start debugging from there. thanks, Chanaka On Fri, Apr 25, 2014 at 12:40 PM, Thilini Ishaka wrote: > > Hi All, > > I'm facing the aforementioned issue now. A sceenshot is attached. I don't > see any error in the Firebug error console. Seeing the correct response on > Firebug reponse window. > This should be a try-it issue in FF as it works on chrome without any > issue. > > This is a blocker for me at the moment for the release work. > > Kindly appreciate quick help on this if you know anything related to this > or anyway of further debugging the issue. > > Thanks > Thilini > > -- > Thilini Ishaka > Senior Software Engineer > Phone: +94 11 214 5345 > WSO2 Inc. http://wso2.com > > blog: thiliniishaka.blogspot.com > linkedin: http://lk.linkedin.com/in/thiliniishaka > twitter: https://twitter.com/#!/ThiliniIsh > -- Chanaka Jayasena Senior Software Engineer; WSO2, Inc.; http://wso2.com/ email: chan...@wso2.com; cell: +94 77 785 5565 blog: http://chanaka3d.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Not getting response in try-it in FF browser
Hi Waruna, I don't think so. Same FF version does work for released version of the product/s. So ideally this should work irrespective of that. Thanks Thilini On Fri, Apr 25, 2014 at 1:01 PM, Waruna Jayaweera wrote: > Hi Thilini, > Problem may be with FF version. can we test with different FF version? > > > On Fri, Apr 25, 2014 at 12:40 PM, Thilini Ishaka wrote: > >> >> Hi All, >> >> I'm facing the aforementioned issue now. A sceenshot is attached. I don't >> see any error in the Firebug error console. Seeing the correct response on >> Firebug reponse window. >> This should be a try-it issue in FF as it works on chrome without any >> issue. >> >> This is a blocker for me at the moment for the release work. >> >> Kindly appreciate quick help on this if you know anything related to this >> or anyway of further debugging the issue. >> >> Thanks >> Thilini >> >> -- >> Thilini Ishaka >> Senior Software Engineer >> Phone: +94 11 214 5345 >> WSO2 Inc. http://wso2.com >> >> blog: thiliniishaka.blogspot.com >> linkedin: http://lk.linkedin.com/in/thiliniishaka >> twitter: https://twitter.com/#!/ThiliniIsh >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Regards, > > Waruna Lakshitha Jayaweera > Software Engineer > WSO2 Inc; http://wso2.com > phone: +94713255198 > -- Thilini Ishaka Senior Software Engineer Phone: +94 11 214 5345 WSO2 Inc. http://wso2.com blog: thiliniishaka.blogspot.com linkedin: http://lk.linkedin.com/in/thiliniishaka twitter: https://twitter.com/#!/ThiliniIsh ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Not getting response in try-it in FF browser
Hi Thilini, Problem may be with FF version. can we test with different FF version? On Fri, Apr 25, 2014 at 12:40 PM, Thilini Ishaka wrote: > > Hi All, > > I'm facing the aforementioned issue now. A sceenshot is attached. I don't > see any error in the Firebug error console. Seeing the correct response on > Firebug reponse window. > This should be a try-it issue in FF as it works on chrome without any > issue. > > This is a blocker for me at the moment for the release work. > > Kindly appreciate quick help on this if you know anything related to this > or anyway of further debugging the issue. > > Thanks > Thilini > > -- > Thilini Ishaka > Senior Software Engineer > Phone: +94 11 214 5345 > WSO2 Inc. http://wso2.com > > blog: thiliniishaka.blogspot.com > linkedin: http://lk.linkedin.com/in/thiliniishaka > twitter: https://twitter.com/#!/ThiliniIsh > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Regards, Waruna Lakshitha Jayaweera Software Engineer WSO2 Inc; http://wso2.com phone: +94713255198 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev