Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
Boris Hamm
Service Builder, helper methods and SOAP models
21 de Novembro de 2007 08:03
Resposta

Boris Hamm

Ranking: New Member

Mensagens: 6

Data de entrada: 17 de Setembro de 2007

Mensagens 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
Jorge Ferrer
RE: Service Builder, helper methods and SOAP models
25 de Novembro de 2007 12:29
Resposta

Jorge Ferrer

LIFERAY STAFF

Ranking: Liferay Legend

Mensagens: 2768

Data de entrada: 31 de Agosto de 2006

Mensagens recentes

Hi Boris,

There is a separate ant target to build the WSDL. Try ant build-wsdd
Boris Hamm
RE: Service Builder, helper methods and SOAP models
26 de Novembro de 2007 02:06
Resposta

Boris Hamm

Ranking: New Member

Mensagens: 6

Data de entrada: 17 de Setembro de 2007

Mensagens 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 ;)
Jorge Ferrer
RE: Service Builder, helper methods and SOAP models
26 de Novembro de 2007 14:32
Resposta

Jorge Ferrer

LIFERAY STAFF

Ranking: Liferay Legend

Mensagens: 2768

Data de entrada: 31 de Agosto de 2006

Mensagens 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
RE: Service Builder, helper methods and SOAP models
27 de Novembro de 2007 02:05
Resposta

Boris Hamm

Ranking: New Member

Mensagens: 6

Data de entrada: 17 de Setembro de 2007

Mensagens 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
RE: Service Builder, helper methods and SOAP models
5 de Dezembro de 2007 09:18
Resposta

Jeffrey Lilly

Ranking: New Member

Mensagens: 5

Data de entrada: 14 de Junho de 2007

Mensagens 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
RE: Service Builder, helper methods and SOAP models
4 de Abril de 2012 18:18
Resposta

Phap Phan

Ranking: New Member

Mensagens: 5

Data de entrada: 26 de Março de 2012

Mensagens recentes

Hello,

I'm having exactly the same issue as you guys have here. Has anyone figured out yet?
Hitoshi Ozawa
RE: Service Builder, helper methods and SOAP models
14 de Abril de 2012 05:59
Resposta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensagens: 7949

Data de entrada: 23 de Março de 2010

Mensagens recentes

Yes, Service Builder is now able to generate WSDD as well.

ant target build-wsdd