留言板

Service Builder, helper methods and SOAP models

Boris Hamm,修改在16 年前。

Service Builder, helper methods and SOAP models

New Member 帖子: 5 加入日期: 07-9-17 最近的帖子
Hi all,

in ext env. (4.3.2) i'm extending my modelImpl class to add some additional (non persistent) attributes to my model.
After I run Service Builder again everything is fine for my local services but my SOAP model does not get updated.
My additional attributes do not appear in the WSDL file.
Is there a fix for this? Or is there a different way?

thanks
Boris
thumbnail
Jorge Ferrer,修改在16 年前。

RE: Service Builder, helper methods and SOAP models

Liferay Legend 帖子: 2871 加入日期: 06-8-31 最近的帖子
Hi Boris,

There is a separate ant target to build the WSDL. Try ant build-wsdd
Boris Hamm,修改在16 年前。

RE: Service Builder, helper methods and SOAP models

New Member 帖子: 5 加入日期: 07-9-17 最近的帖子
yes I know, but my problem is:
I extend from my model interface and implementation because I want my model to have some attributes that come from other services, like:

public class XXImpl extends XXModelImpl implements XX {

public String getScreenName(){

return UserLocalServiceUtil.getUserById(getUserId()).getScreenName();

}
}

but when I run the Service Builder the SOAP class only has the getters and setters like in the service.xml.
I have to change the SOAP class by hand and then I can run build-wsdd and everything works fine.
But I can't run the Service Builder again because then my SOAP class gets overridden.

The only solution I found was to change the ServiceBuilder but I don't want to mess with the portal code I'd rather stay inside ext ;)
thumbnail
Jorge Ferrer,修改在16 年前。

RE: Service Builder, helper methods and SOAP models

Liferay Legend 帖子: 2871 加入日期: 06-8-31 最近的帖子
Hi Boris,

Got it! I think your only choice to achieve that is to modify ServiceBuilder. It seems to me like a general improvement that would be helpful for others so if you want to contribute it, it could be integrated into Liferay so that you don't have to maintain it yourself.

Also you may want to take a look at the latest changes to make ServiceBuilder more flexible and easy to extend. See LEP-4274 and LEP-4296 for details.
Boris Hamm,修改在16 年前。

RE: Service Builder, helper methods and SOAP models

New Member 帖子: 5 加入日期: 07-9-17 最近的帖子
Thanks Jorge,

I will have a look at the newer versions of ServiceBuilder and see how I can integrate my fix and contribute it then.
Jeffrey Lilly,修改在16 年前。

RE: Service Builder, helper methods and SOAP models

New Member 帖子: 5 加入日期: 07-6-14 最近的帖子
Hello Boris,

Were you able to resolve this gracefully? I am having a similar issue and was wondering if you have submitted a fix.

Kind regards,
Jeffrey
Phap Phan,修改在11 年前。

RE: Service Builder, helper methods and SOAP models

New Member 帖子: 5 加入日期: 12-3-27 最近的帖子
Hello,

I'm having exactly the same issue as you guys have here. Has anyone figured out yet?
thumbnail
Hitoshi Ozawa,修改在11 年前。

RE: Service Builder, helper methods and SOAP models

Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
Yes, Service Builder is now able to generate WSDD as well.

ant target build-wsdd