You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by juanjoluna <ju...@gmail.com> on 2012/08/21 15:19:05 UTC

Error: Schema element xxx references undefined type 'anyType'

Hello,

I'm in a big company wich uses Emailvision webservice. We have used CXF
2.1.2 in our application to generate the Java client. 

The wsdl of the webservice is at 
http://p4apie.emv3.com/apiccmd/services/CcmdService?wsdl
http://p4apie.emv3.com/apiccmd/services/CcmdService?wsdl 

I'm having an error when trying to get access to the service when this line
in our code is executed:

CcmdService ccmdService = new CcmdServiceService().getCcmdServicePort();

The error message is:
12:40:15,965 ERROR main ReflectionServiceFactoryBean:235 - Schema element
xxx references undefined type {http://www.w3.org/2001/XMLSchema}anyType for
service {http://api.service.apiccmd.emailvision.com/}CcmdServiceService.

The error appears 4 times, where I wrote xxx substitute for each of these:
{http://api.service.apiccmd.emailvision.com/}sortOption
{http://api.service.apiccmd.emailvision.com/}search
{http://api.service.apiccmd.emailvision.com/}list
{http://api.service.apiccmd.emailvision.com/}listOption

Though it is an error, it apparently doesn't affect the operation since all
seems to work ok, but I must get rid of the error message because it is
populating the production server logs (it executes every 10 minutes)

About the error itself, it is strange because the "anyType" type is common.

We are using other webservices of the same company (apireporting service,
memberservice service) wich doesn't generate this error, and also we are
using other webservices using CFX with no problems.

Please let me know what more information I'm missing here that could help
solve this problem.

Ah!, also I found a similar problem in this mailing list but it seems a
different case, I don't understand fully what is said here:
http://cxf.547215.n5.nabble.com/problem-with-client-td556609.html
http://cxf.547215.n5.nabble.com/problem-with-client-td556609.html 

thanks in advance,

Juanjo Luna



--
View this message in context: http://cxf.547215.n5.nabble.com/Error-Schema-element-xxx-references-undefined-type-anyType-tp5712869.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Error: Schema element xxx references undefined type 'anyType'

Posted by juanjoluna <ju...@gmail.com>.
Thanks for the response, Daniel

Unfortunately we cannot easily switch to a newer version of CXF because the
project is already using it for other webservices and it would imply to
revalidate all of them.

Thanks



--
View this message in context: http://cxf.547215.n5.nabble.com/Error-Schema-element-xxx-references-undefined-type-anyType-tp5712869p5713141.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Error: Schema element xxx references undefined type 'anyType'

Posted by Daniel Kulp <dk...@apache.org>.
My suggestion would be to upgrade to a much newer version of CXF.  2.1.2 is ancient, unsupported, and has several security related issues.

I just tried with the latest 2.6.2 release and didn't see any errors in the logs.  Thus, this may be fixed.

Dan



On Aug 21, 2012, at 9:19 AM, juanjoluna <ju...@gmail.com> wrote:

> Hello,
> 
> I'm in a big company wich uses Emailvision webservice. We have used CXF
> 2.1.2 in our application to generate the Java client. 
> 
> The wsdl of the webservice is at 
> http://p4apie.emv3.com/apiccmd/services/CcmdService?wsdl
> http://p4apie.emv3.com/apiccmd/services/CcmdService?wsdl 
> 
> I'm having an error when trying to get access to the service when this line
> in our code is executed:
> 
> CcmdService ccmdService = new CcmdServiceService().getCcmdServicePort();
> 
> The error message is:
> 12:40:15,965 ERROR main ReflectionServiceFactoryBean:235 - Schema element
> xxx references undefined type {http://www.w3.org/2001/XMLSchema}anyType for
> service {http://api.service.apiccmd.emailvision.com/}CcmdServiceService.
> 
> The error appears 4 times, where I wrote xxx substitute for each of these:
> {http://api.service.apiccmd.emailvision.com/}sortOption
> {http://api.service.apiccmd.emailvision.com/}search
> {http://api.service.apiccmd.emailvision.com/}list
> {http://api.service.apiccmd.emailvision.com/}listOption
> 
> Though it is an error, it apparently doesn't affect the operation since all
> seems to work ok, but I must get rid of the error message because it is
> populating the production server logs (it executes every 10 minutes)
> 
> About the error itself, it is strange because the "anyType" type is common.
> 
> We are using other webservices of the same company (apireporting service,
> memberservice service) wich doesn't generate this error, and also we are
> using other webservices using CFX with no problems.
> 
> Please let me know what more information I'm missing here that could help
> solve this problem.
> 
> Ah!, also I found a similar problem in this mailing list but it seems a
> different case, I don't understand fully what is said here:
> http://cxf.547215.n5.nabble.com/problem-with-client-td556609.html
> http://cxf.547215.n5.nabble.com/problem-with-client-td556609.html 
> 
> thanks in advance,
> 
> Juanjo Luna
> 
> 
> 
> --
> View this message in context: http://cxf.547215.n5.nabble.com/Error-Schema-element-xxx-references-undefined-type-anyType-tp5712869.html
> Sent from the cxf-user mailing list archive at Nabble.com.

-- 
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com