PortableRenderer IceFaces - web-services

I am trying to implement an IceFaces Project where I have a java web service doing push-notifications.
I have a client that logs in and sends a push notification through the web service to others.
My problem is that I discovered that I have to use portableRenderer() because the web service is outside the JSF context. It needs a ServletContext as argument.
I tried to do it but it seems to have problem in passing the context from client to web service because ServletContext is not an available type (integer, string, boolean, ...).
The error returned is NullPointerException. Any suggestion?
I have tried to follow some guides on internet and PushRenderer() locally works good.

I answer myself.
I wrote to IceFaces developers and they very kindly answered my questions. So I report here if anyone has the same problem.
It is not possible to push notificate with the IceFaces Renderer outside the JSF context. It has to be done locally.

Related

How to create and publish a web service websphere?

I wonder how a web service is published in websphere?, recently perform the following tutorial:
http://examples.javacodegeeks.com/enterprise-java/jws/jax-ws-web-services-on-tomcat/
My question is, how do I do the same with websphere? I do not wish to create axis, otherwise as hece in this example, without help from the IDE.
regards

Consume webservice Workflow Foundation 4.5

My solution has 2 projects. One is a workflow service and the other is a webservice. I want to know if I can make the workflow consume the webservice without having to create a custom code activity...
Basically the webservice is a call-and-forget kind of thing... I tried the "send" activity but i couldnt manage to get it working...
i also downloaded the code samples from MSDN but couldnt find a match for my case...
As long as your webservice is a WCF compatible service you can do an add service reference and the required custom activities will be generated. And if that works you can also configure a standard Send and ReceiveReply to do the same thing. If you are using an ASMX/WSE style web service this usually works but takes a bit more doing to get the message contract right.

GWT: Expose the service implementation class as web service

Problem scenario is: I am writing a Google Gadget. Data presented in the gadget will come from my deployed GWT app. I am planing to call the web service from Java script to show the required data.
I need to know how I can expose the Service implementation class like GreetingServiceImpl(generated by default as sample in Eclipse GWT project) as web service.
I did tried to to expose the logic using approach suggested here(http://igorshare.wordpress.com/2009/05/20/building-gwt-web-clients-part-2-how-to-expose-rest-full-jax-rs-service-with-jersey-on-tomcat-server/).
But rather than creating the dynamic web project, I created the Google web project in Eclipse. And I am getting the 404 exception.
Any suggestions why I am getting 404 error?
Regards,
Vikram
Check this: Retrieving JSON Data

Add SugarCRM REST services to NetBeans

I'm trying to use NetBeans "Add Web Service" wizard to see SugarCRM REST web services. But when I insert url 'http://ip/sugarcrm/service/v2/rest.php' (or 'http://ip/sugarcrm/service/v2/rest.php?wadl') I receive the error message:
"cannot determine if the service is of type wsdl or wadl".
I have already included JAX-RPC plugin, as mentioned in 'http://stackoverflow.com/questions/4762149/adding-new-web-services-in-netbeans', but this not helped. In fact, I think NetBeans doesn't need RPC plugins to connecto to REST services...
Any help?
As far as I know, Sugar uses the same methods and types for both SOAP and Rest. Can Netbeans interpret a soap wsdl for rest purposes?
I don't think you're using the correct URLs.
One of the URLs in your post: http://ip/sugarcrm/service/v2/rest.php -> is trying to go to a host called "ip". Is that a host in your network? If not, then its going nowhere.

Creating a crystal report in a web service that uses XMLRPC

I have looked into everything but I think this is a unique problem. I have a web service in my website. This web service uses XMLRPC.NET but that hardly matters. i use this web service to get the string sent by the client and convert it into XML.This all is working fine. But the real problem is: I have a .aspx that uses the above written xml to generate a crystal report and save it as a PDF. The problem is I cannot call the .aspx page from my web service as response. redirect does not work. I tried writing the complete crystal report generation and PDF save logic in the web service method but it does not work because the CrystalReportViewer1.reportsource gives an error as it does not recognize the CrystalReportViewer1 in the current context. is there any way that I can do this by redirecting or by using the crystal report logic in the web service or any other way. Seems a little complicated but any help will be greatly appreciated. Please need help.
Thank You