Fórum

Service Builder, helper methods and SOAP models

Boris Hamm, modificado 16 Anos atrás.

Service Builder, helper methods and SOAP models

New Member Postagens: 5 Data de Entrada: 17/09/07 Postagens Recentes
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, modificado 16 Anos atrás.

RE: Service Builder, helper methods and SOAP models

Liferay Legend Postagens: 2871 Data de Entrada: 31/08/06 Postagens Recentes
Hi Boris,

There is a separate ant target to build the WSDL. Try ant build-wsdd
Boris Hamm, modificado 16 Anos atrás.

RE: Service Builder, helper methods and SOAP models

New Member Postagens: 5 Data de Entrada: 17/09/07 Postagens Recentes
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, modificado 16 Anos atrás.

RE: Service Builder, helper methods and SOAP models

Liferay Legend Postagens: 2871 Data de Entrada: 31/08/06 Postagens Recentes
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, modificado 16 Anos atrás.

RE: Service Builder, helper methods and SOAP models

New Member Postagens: 5 Data de Entrada: 17/09/07 Postagens Recentes
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, modificado 16 Anos atrás.

RE: Service Builder, helper methods and SOAP models

New Member Postagens: 5 Data de Entrada: 14/06/07 Postagens Recentes
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, modificado 12 Anos atrás.

RE: Service Builder, helper methods and SOAP models

New Member Postagens: 5 Data de Entrada: 27/03/12 Postagens Recentes
Hello,

I'm having exactly the same issue as you guys have here. Has anyone figured out yet?
thumbnail
Hitoshi Ozawa, modificado 12 Anos atrás.

RE: Service Builder, helper methods and SOAP models

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
Yes, Service Builder is now able to generate WSDD as well.

ant target build-wsdd