Foros de discusión

Service Builder, helper methods and SOAP models

Boris Hamm, modificado hace 16 años.

Service Builder, helper methods and SOAP models

New Member Mensajes: 5 Fecha de incorporación: 17/09/07 Mensajes recientes
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 hace 16 años.

RE: Service Builder, helper methods and SOAP models

Liferay Legend Mensajes: 2871 Fecha de incorporación: 31/08/06 Mensajes recientes
Hi Boris,

There is a separate ant target to build the WSDL. Try ant build-wsdd
Boris Hamm, modificado hace 16 años.

RE: Service Builder, helper methods and SOAP models

New Member Mensajes: 5 Fecha de incorporación: 17/09/07 Mensajes recientes
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 hace 16 años.

RE: Service Builder, helper methods and SOAP models

Liferay Legend Mensajes: 2871 Fecha de incorporación: 31/08/06 Mensajes recientes
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 hace 16 años.

RE: Service Builder, helper methods and SOAP models

New Member Mensajes: 5 Fecha de incorporación: 17/09/07 Mensajes recientes
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 hace 16 años.

RE: Service Builder, helper methods and SOAP models

New Member Mensajes: 5 Fecha de incorporación: 14/06/07 Mensajes recientes
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 hace 12 años.

RE: Service Builder, helper methods and SOAP models

New Member Mensajes: 5 Fecha de incorporación: 27/03/12 Mensajes recientes
Hello,

I'm having exactly the same issue as you guys have here. Has anyone figured out yet?
thumbnail
Hitoshi Ozawa, modificado hace 12 años.

RE: Service Builder, helper methods and SOAP models

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
Yes, Service Builder is now able to generate WSDD as well.

ant target build-wsdd