Skip to main content

@SchemaValidation annotation is not validating schema

2 replies [Last post]
nucahx
Offline
Joined: 2006-08-16

This is my web service implementation.

@Stateless
@WebService(serviceName = "Service", portName = "ServicePPort", endpointInterface = "my.endpoint.ServicesSOAP", targetNamespace = "http://ws.my.endpoint/", wsdlLocation = "META-INF/wsdl/Services.wsdl")
@SchemaValidation(handler = MyErrorHandler.class)
public class TestServices
{
//Service impl.
}

I have a wsdl which imports the schema from an xsd.

No matter what type of data I send to this implementation it is never validated. It does not match max/min occurs or dataTypes.

I am running this on Glassfish v3 -- JAX-WS RS 2.2.1

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
pjurak
Offline
Joined: 2008-11-29

Hi, did you find solution for this issue? I'm facing same problem as you. Thanks in advance.

hgrongstad
Offline
Joined: 2003-06-17

Hi. I see the same problem. When using just @SchemaValidation alone, no valildation takes place. When using a custom validator e.g. @SchemaValidation(handler=MyErrorHandler.class ) no validation takes place. I can't find any relevant information indicating if this is a bug or not. I'm using lassFish Server Open Source Edition 3.0.1 (build 22) with Metro 2.0.1-0. Any help will be appreciated.