can we consume WSRP portlet on J2EE application? - portlet

how to create a client for portlet as webservice in WSRP. i.e portlet is exposed as webservice and can we create a client for that service and consume it in J2EE application.

If your WSRP is of version 2.0 then Service URL will be http://wportal8.cmp.com:10039/wps/wsdl/service.wsdl?version=v2. With the help of this URL you can generate clients but it is not possible to access portlet content wih the help of generated clients because Web service WSDL specifications and WSRP specifications are totally different.In WSDL communication is through SOAP where as in WSRP it is presentation layer.Alternate way is POC (Piece of Content URL) using this we will get atom feeds by parsing we can retrieve Portlet content.

Related

Domino client web services and SOAP 1.2

I create a client in Domino to consume a web service that works with SOAP 1.2 and has HTTPBinding.
The client generation tool for Domino Designer Web services an error is displayed when trying to generate reporting that the SOAP accepted version is 1.1.
I decided to create the client with CXF framework through tool wsdl2java. In an agent I used these classes to consume the web service, however the below error was displayed. I think it's because of the SOAP version, but I'm not sure.
com.sun.xml.internal.ws.protocol.soap.MUTube getMisUnderstoodHeaders
INFO: Element not understood={http://www.w3.org/2005/08/addressing}Action
Also generated a jar of classes generated by wsdltojava and imported to another agent, but the error below is displayed.
java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=, offset=6
The question is, no way consume a web service with SOAP 1.2 in Domino only supports up to version 1.1?
Thanks a lot!
I don't believe that Domino's web service consumer supports SOAP 1.2 at this time. You might be able to do what you need with an agent though - here's one way: How can I call a SOAP 1.2 Web service from a LotusScript agent?
In fact there is no way to natively consume a web service with soap version 1.2. There are already several requests from IBM to upgrade the SOAP version. What I did, was to develop a new layer through a new web service with the version SOAP 1.1, which internally calls the web service with the SOAP version 1.2;

Can VB6 be used to realize SOAP web service?

I have a exe application written in VB6, now I want to make it support SOAP web service, so other clients can access the data it provided. I know vb.net can support SOAP web service well, I do not want to upgrade it to vb.net, how can I realize SOAP web service in VB6?

REST vs Dynamic web project

I developed a dynamic web project in eclipse java EE ide as index.jsp, when I run it on Tomcat Server7.0 server it says http://localhost:8080/filename/ something. is that what they mean by REST? or do I need Spring to run a REST ?. rest is what that comes in a url, if i provide this url in my browser it opens the file, then why I can't call it as rest service?
Restful is an architectural style that make in disposition through HTTP a number of resources under different formats, usually json, to set or retrive the ressources, simple http operations (PUT, GET, POST, and DELETE. PUT) could be used for that.
I recommend you to use JAX-RS, but here u can see how to work with rest web service with Spring:
Building a RESTful Web Service Spring

Calling SOAP in Jersey

I have a requirement from a client which wants to write a wrapper REST web service around a SOAP web service.
I am new to both SOAP and REST. Can anyone please let me know
If we can call SOAP web service inside a REST web service?
If yes, then how to do it in Jersey 2.0?
Thanks in advance.
Yes
There is nothing special about calling a SOAP service from inside a JAX-RS Resouce. Just write a JAX-WS client as described in the Java EE 7 Tutorial.

Create JAX WS Web Service that Response XML using Netbeans

I'm newbie at web service stuff,
I have following the tutorial at https://netbeans.org/kb/docs/websvc/jax-ws.html
Now I want to create web service (like that tutorial) but it return a XML.
How I can build that?
Thank you for the answer