Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-3993

Need to have @org.apache.cxf.annotations.SchemaValidation working on @WebMethod

XMLWordPrintable

    • Hide
      • Attached is a reproducer, schemaValidation-demo.war file.
      • The @SchemaValidation annotation is placed at @WebMethod.
      • Client send the following request,
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sam="http://redhat.com/">
         <soapenv:Header/>
         <soapenv:Body>
            <sam:foo x="y"/>
         </soapenv:Body>
      </soapenv:Envelope>
      
      • This should be validate and a soap fault should be returned back.
      • This only works when @SchemaValidation is at Class Level.
      Show
      Attached is a reproducer, schemaValidation-demo.war file. The @SchemaValidation annotation is placed at @WebMethod. Client send the following request, <soapenv:Envelope xmlns:soapenv= "http: //schemas.xmlsoap.org/soap/envelope/" xmlns:sam= "http://redhat.com/" > <soapenv:Header/> <soapenv:Body> <sam:foo x= "y" /> </soapenv:Body> </soapenv:Envelope> This should be validate and a soap fault should be returned back. This only works when @SchemaValidation is at Class Level.

            rhn-engineering-ema Jim Ma
            rhn-support-vgohel Viral Gohel
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: