Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Chad Minick
Making simple webservices with liferay
July 5, 2012 12:19 PM
Answer

Chad Minick

Rank: New Member

Posts: 4

Join Date: June 29, 2012

Recent Posts

I am trying to make a simple webservice call with liferay. I'm wanting to use liferay's existing message board services. Unfortunately the built in json and soap services for the Message Boards won't meet my needs. (See my earlier thread for why). So it looks like I'll have to make my own.

How can I build a service off an already existing service model?

Can I somehow bypass the whole wsdd and service builder altogether for remote services? It looks like I can use serveResource in the portlet to make simple Restful api, but I can't figure out how to use friendly-url mapper to map a friendly URL to serveResource. (friendly url is needed so I can use it an an external language).
Chad Minick
RE: Making simple webservices with liferay
July 5, 2012 2:10 PM
Answer

Chad Minick

Rank: New Member

Posts: 4

Join Date: June 29, 2012

Recent Posts

I guess another way to approach and ask this question.

How could I get service builder to build what I need to make a remote service without the service having it's own model?
Hitoshi Ozawa
RE: Making simple webservices with liferay
July 5, 2012 5:23 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

Just modify the impl file and rebuild your services and wsdd. I'm doing this to provide backward compatibiilties and to add custom interfaces too. :-)
Chad Minick
RE: Making simple webservices with liferay
July 6, 2012 7:26 AM
Answer

Chad Minick

Rank: New Member

Posts: 4

Join Date: June 29, 2012

Recent Posts

I don't understand. What would my service.xml look like so I wouldn't create any actual database codes but will still create a stub for the Impl and corresponding wsdd file?
Hitoshi Ozawa
RE: Making simple webservices with liferay
July 6, 2012 3:10 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

Read up on Service Builder. All liferay database tables are created using it.
http://www.liferay.com/community/wiki/-/wiki/Main/Service+Builder

A brief tutorial to get started.
http://www.liferay.com/documentation/liferay-portal/6.0/development/-/ai/service-build-2