Hi all, I have set that property in insequence of my configuration file and now I am able to get the response from backend(Slideshare API).
thank you On Fri, Dec 5, 2014 at 3:40 PM, Vanjikumaran Sivajothy <[email protected]> wrote: > Hi Vanni, > > I was able reproduce this issue and observed that there are overbalance in > the middle. > > [2014-12-05 14:46:47,529] DEBUG - wire >> "HTTP/1.0 301 Moved > Permanently[\r][\n]" > [2014-12-05 14:46:47,529] DEBUG - wire >> "Server: nginx[\r][\n]" > > In-order to solve this issue use the POST_TO_URI property before you send > the request to backend. > > Example > > > <inSequence> > * <property name="POST_TO_URI" value="true" scope="axis2" > type="STRING"></property>* > <send> > <endpoint> > <address uri=" > https://www.slideshare.net/api/2/get_slideshow?api_key=4yCEGJou&ts=1417771920&hash=55d44386ee30e3d1e4d2a3b64c060d1427ada16a&slideshow_id=124324&slideshow_url= > "></address> > </endpoint> > </send> > </inSequence> > > > [1] > https://docs.wso2.com/display/ESB470/HTTP+Transport+Properties#HTTPTransportProperties-Property:POST_TO_URI > > > > On Tue, Dec 2, 2014 at 1:26 PM, Malaka Silva <[email protected]> wrote: > >> Hi Vanii, >> >> It can be due to a a SSL issue. We can verify this by enabling SSL Debug >> logs. Info can be found in [1] >> >> Then we can compare that with the logs from curl. >> >> [1] >> http://blog.facilelogin.com/2010/11/debugging-ssl-connections-part-i.html >> >> >> On Fri, Nov 28, 2014 at 10:46 PM, Vanii Thiyagarajah <[email protected]> >> wrote: >> >>> Hi All, >>> I'm implementing WSO2 ESB connector project for SlideShare API. >>> Their API end point working properly in Rest client .When running through >>> WSO2 ESB i got this error. Can you please figure out this error. >>> >>> Response in XML >>> >>> <?xml version="1.0" encoding="UTF-8"?> >>> <SlideShareServiceError> >>> <Message ID="24">You must use https:// to access this API >>> endpoint</Message> >>> </SlideShareServiceError> >>> >>> >>> *synapse configuration * >>> >>> <template name="getSlideshow" xmlns="http://ws.apache.org/ns/synapse"> >>> <parameter name="api_key" description="List of preferences." /> >>> <parameter name="ts" description="List of preferences." /> >>> <parameter name="hash" description="List of preferences." /> >>> <parameter name="slideshow_id" description="List of preferences." /> >>> <parameter name="slideshow_url" description="List of preferences." /> >>> >>> <sequence> >>> <property name="uri.var.api_key" expression="$func:api_key" /> >>> <property name="uri.var.ts" expression="$func:ts" /> >>> <property name="uri.var.hash" expression="$func:hash" /> >>> <property name="uri.var.slideshow_id" >>> expression="$func:slideshow_id" /> >>> <property name="uri.var.slideshow_url" >>> expression="$func:slideshow_url" /> >>> >>> <call> >>> <endpoint> >>> <property name="ContentType" value="application/xml" >>> scope="axis2"/> >>> <http method="get" >>> uri-template=" >>> https://www.slideshare.net/api/2/get_slideshow?api_key={uri.var.api_key}&ts={uri.var.ts}&hash={uri.var.hash}&slideshow_id={uri.var.slideshow_id}&slideshow_url={uri.var.slideshow_url}" >>> /> >>> </endpoint> >>> </call> >>> <header name="x-li-format" scope="transport" action="remove"/> >>> <header name="X-LI-UUID" scope="transport" action="remove"/> >>> <header name="X-Li-Pop" scope="transport" action="remove"/> >>> <header name="X-Li-Fabric" scope="transport" action="remove"/> >>> <header name="x-li-request-id" scope="transport" >>> action="remove"/> >>> </sequence> >>> >>> </template> >>> >>> >>> >>> >>> >>> >>> >>> >>> . >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> >> Best Regards, >> >> Malaka Silva >> Senior Tech Lead >> M: +94 777 219 791 >> Tel : 94 11 214 5345 >> Fax :94 11 2145300 >> Skype : malaka.sampath.silva >> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 >> Blog : http://mrmalakasilva.blogspot.com/ >> >> WSO2, Inc. >> lean . enterprise . middleware >> http://www.wso2.com/ >> http://www.wso2.com/about/team/malaka-silva/ >> <http://wso2.com/about/team/malaka-silva/> >> >> Save a tree -Conserve nature & Save the world for your future. Print this >> email only if it is absolutely necessary. >> > > > > -- > Sivajothy Vanjikumaran > *Senior Software Engineer* > *Integration Technologies Team* > *WSO2 Inc. http://wso2.com <http://wso2.com/>* > *Mobile:(+94)777219209* > [image: Facebook] <https://www.facebook.com/vanjikumaran> [image: Twitter] > <https://twitter.com/vanjikumaran> [image: LinkedIn] > <http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293> [image: > Blogger] <http://vanjikumaran.blogspot.com/> [image: SlideShare] > <http://www.slideshare.net/vanjikumaran> > > This communication may contain privileged or other > confidential information and is intended exclusively for the addressee/s. > If you are not the intended recipient/s, or believe that you may > have received this communication in error, please reply to the > sender indicating that fact and delete the copy you received and in > addition, you should not print, copy, re-transmit, disseminate, or > otherwise use the information contained in this communication. > Internet communications cannot be guaranteed to be timely, secure, error > or virus-free. The sender does not accept liability for any errors > or omissions >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
