Combination View Flat View Tree View
Threads [ Previous | Next ]
W Rehman
build-wsdd fails for Service Builder
January 30, 2013 2:42 PM

W Rehman

Rank: New Member

Posts: 16

Join Date: November 22, 2012

Recent Posts

I am trying to run "build-wsdd" after inserting some methods in EntityServiceImp class. The idea is to expose these methods as web services. I first run "build-service" target which runs fine but when I try to run "build-wsdd" it fails. It seems that service builder is having problem with complex types such as com.liferay.portal.User. Some of my methods return User type and I can see the following output for "build-wsdd".

 1Java2WSDL com.ext.portlet.administrator.service.http.UserServiceSoap
 2     [java] 16:46:43,520 WARN  [Types:1704] The class com.liferay.portal.model.User does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
 3     [java]   WSDL2Java D:\workspace\liferay-ext\ext-impl\20130130164643458\service.wsdl
 4     [java]   Running Wsdl2javaAntTask with parameters:
 5     [java]       verbose:false
 6     [java]       debug:false
 7     [java]       quiet:false
 8     [java]       server-side:true
 9     [java]       skeletonDeploy:false
10     [java]       helperGen:false
11     [java]       factory:null
12     [java]       nsIncludes:[]
13     [java] Type {}User is referenced but not defined.
14     [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(
15     [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.add(
16     [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(
17     [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(
18     [java]       nsExcludes:[]
19     [java]     at org.apache.axis.wsdl.gen.Parser$
20     [java]     at
Hitoshi Ozawa
RE: build-wsdd fails for Service Builder
January 30, 2013 3:40 PM

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

You're correct. Try to stick to primitive types.

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!