Fórum

Consuming Liferay Remote Spring HttpInvoker [RESOLVED]

thumbnail
Rishi Dev Gupta, modificado 12 Anos atrás.

Consuming Liferay Remote Spring HttpInvoker [RESOLVED]

Expert Postagens: 255 Data de Entrada: 23/11/08 Postagens Recentes
Hi all

I need to consume liferay remote services exposed using spring httpinvoker

I am getting this error
org.apache.jasper.JasperException: org.springframework.remoting.RemoteAccessException: Could not access HTTP invoker remote service at [http://localhost:8080/tunnel-web/secure/spring/com_liferay_portal_service_spring_UserService-http]; nested exception is java.io.IOException: Did not receive successful HTTP response: status code = 401, status message = [Unauthorized]
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:491)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


Any idea what i am missing here

I am using liferay 6 community
thumbnail
jelmer kuperus, modificado 12 Anos atrás.

RE: Consuming Liferay Remote Spring HttpInvoker

Liferay Legend Postagens: 1191 Data de Entrada: 10/03/10 Postagens Recentes
You need to supply the correct username and password to access the services via basic authentication

See : http://www.liferay.com/community/forums/-/message_boards/message/5504664
thumbnail
Rishi Dev Gupta, modificado 12 Anos atrás.

RE: Consuming Liferay Remote Spring HttpInvoker

Expert Postagens: 255 Data de Entrada: 23/11/08 Postagens Recentes
thanks jk, the approach worked, i can go with it...

but is there a option to do this thing using spring bean xml definitions
thumbnail
jelmer kuperus, modificado 12 Anos atrás.

RE: Consuming Liferay Remote Spring HttpInvoker

Liferay Legend Postagens: 1191 Data de Entrada: 10/03/10 Postagens Recentes
Sure, just make the SimpleHttpInvokerRequestExecutor subclass into it's own class and wire it up in xml
thumbnail
Rishi Dev Gupta, modificado 12 Anos atrás.

[RESOLVED]RE: Consuming Liferay Remote Spring HttpInvoker

Expert Postagens: 255 Data de Entrada: 23/11/08 Postagens Recentes
gret got it working
thumbnail
Masroor Khan, modificado 12 Anos atrás.

RE: [RESOLVED]RE: Consuming Liferay Remote Spring HttpInvoker

Regular Member Postagens: 124 Data de Entrada: 09/09/08 Postagens Recentes
Hi,

Is there any possibilities to invoke our custom services through Liferay Remote Spring HttpInvoker.



Regards,

Masroor Khan