I have a class class like this
public class Log implements Serializable{ @NotNull @Pattern(regexp="[a-z0-9]") private String controller; }
and cxf web services:
@WebService @SOAPBinding(style=Style.DOCUMENT, use=Use.LITERAL) @SchemaValidation public interface LogService { @WebMethod BigInteger createLog(@NotNull String appName,@Valid Log log); }
This is my w spring ws configuration:
<jaxws:endpoint id="logService" implementor="#logServiceEndpoint" address="/logService"> <jaxws:properties> <entry key="schema-validation-enabled" value="true" /> </jaxws:properties> </jaxws:endpoint> <bean id="logServiceEndpoint" class="it.trecube.logging.ws.LogServiceImpl"> <property name="controller" ref="loggingController"></property> </bean>
I would have checked this log class and this information was also presented in the created wsdl and appName, but I'm trying to pass appName = null and Log without a controller, and everything goes fine ...
I use spring, maven and cxf
tanks for an answer and sorry for my bad english
source share