Foren

Service Builder, helper methods and SOAP models

Boris Hamm, geändert vor 16 Jahren.

Service Builder, helper methods and SOAP models

New Member Beiträge: 5 Beitrittsdatum: 17.09.07 Neueste Beiträge
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, geändert vor 16 Jahren.

RE: Service Builder, helper methods and SOAP models

Liferay Legend Beiträge: 2871 Beitrittsdatum: 31.08.06 Neueste Beiträge
Hi Boris,

There is a separate ant target to build the WSDL. Try ant build-wsdd
Boris Hamm, geändert vor 16 Jahren.

RE: Service Builder, helper methods and SOAP models

New Member Beiträge: 5 Beitrittsdatum: 17.09.07 Neueste Beiträge
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, geändert vor 16 Jahren.

RE: Service Builder, helper methods and SOAP models

Liferay Legend Beiträge: 2871 Beitrittsdatum: 31.08.06 Neueste Beiträge
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, geändert vor 16 Jahren.

RE: Service Builder, helper methods and SOAP models

New Member Beiträge: 5 Beitrittsdatum: 17.09.07 Neueste Beiträge
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, geändert vor 16 Jahren.

RE: Service Builder, helper methods and SOAP models

New Member Beiträge: 5 Beitrittsdatum: 14.06.07 Neueste Beiträge
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, geändert vor 12 Jahren.

RE: Service Builder, helper methods and SOAP models

New Member Beiträge: 5 Beitrittsdatum: 27.03.12 Neueste Beiträge
Hello,

I'm having exactly the same issue as you guys have here. Has anyone figured out yet?
thumbnail
Hitoshi Ozawa, geändert vor 12 Jahren.

RE: Service Builder, helper methods and SOAP models

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
Yes, Service Builder is now able to generate WSDD as well.

ant target build-wsdd