cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Baker <john.ba...@camelotgroup.co.uk>
Subject RE: Schema validation of SOAP headers
Date Fri, 02 Nov 2012 08:41:53 GMT
Of course, that makes perfect sense. Thanks!

Is that clearly documented somewhere? Perhaps it can go in the FAQs if not. I had trouble
finding a solution when Googling, but perhaps I just missed it.

-----Original Message-----
From: Daniel Kulp [mailto:dkulp@apache.org] 
Sent: 01 November 2012 16:41
To: users@cxf.apache.org; John Baker
Subject: Re: Schema validation of SOAP headers


This is a problem with the test case.  It's not using the wsdl for the service and thus is
generating a new schema at runtime based on the annotations.  JAXB doesn't have any annotations
for the various facet restrictions and such so that information is lost.  

If you update the @WebService annotation to:

@WebService(serviceName = "Hello_Service", targetNamespace = "http://www.examples.com/wsdl/HelloService.wsdl")


and then update the ws-context.xml to add:
wsdlLocation="classpath:hello.wsdl" 

to the jaxws:endpoint, then your test passes.  The fault is raised.


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



<FONT size=1> <P><FONT size=2>****************************************************************************************</FONT></P><P><FONT
size=2>The information contained in this email may be confidential. It is intended</FONT></P><P><FONT
size=2>only for the use of the named recipient. If you are not the named recipient</FONT></P><P><FONT
size=2>please delete this email and notify the sender of the delivery error. If you</FONT></P><P><FONT
size=2>have received this email and are not the named recipient, any disclosure,</FONT></P><P><FONT
size=2>reproduction, distribution or other dissemination or use of the information</FONT></P><P><FONT
size=2>contained in this email is strictly prohibited.</FONT></P><P><FONT
size=2> </FONT></P><P><FONT size=2>The transmission of email cannot
be guaranteed to be secure or error free as</FONT></P><P><FONT size=2>information
could be intercepted, corrupted, lost, destroyed, arrive late or</FONT></P><P><FONT
size=2>incomplete, or contain viruses. The sender therefore does not accept</FONT></P><P><FONT
size=2>liability for any errors or omissions in the contents of this message which</FONT></P><P><FONT
size=2>arise as a result of email transmission. If verification is required please</FONT></P><P><FONT
size=2>request a hard copy version.</FONT></P><P><FONT size=2>
</FONT></P><P><FONT size=2>The Camelot group of companies includes:</FONT></P><P><FONT
size=2>Camelot UK Lotteries Limited (reg. no 2822203), Camelot Business Solutions</FONT></P><P><FONT
size=2>Limited (reg. no 07553982), Camelot Strategic Solutions Limited (reg. no</FONT></P><P><FONT
size=2>07553980), Camelot Global Services Limited (reg. no 02822300) and Camelot</FONT></P><P><FONT
size=2>Commercial Services Limited (reg. no 06911097), all of which are registered</FONT></P><P><FONT
size=2>in England and Wales and have their registered office at:</FONT></P><P><FONT
size=2>Tolpits Lane</FONT></P><P><FONT size=2>Watford</FONT></P><P><FONT
size=2>WD18 9RN</FONT></P><P><FONT size=2>Tel : 01923 425000</FONT></P><P><FONT
size=2>***************************************************************************************</FONT></P></FONT>

Mime
View raw message