<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<a class="moz-txt-link-freetext" href="https://jira.jboss.org/browse/JBWS-3040">https://jira.jboss.org/browse/JBWS-3040</a><br>
<br>
On 05/25/2010 11:42 PM, Riccardo Serafin wrote:
<blockquote
 cite="mid:1010450824.645111274823757779.JavaMail.jive@clearspace02.app.mwc.hst.phx2.redhat.com"
 type="cite">
  <div>
  <table
 style="border: 1px solid rgb(218, 218, 218); margin-bottom: 30px; width: 100%; -moz-border-radius-topleft: 6px; -moz-border-radius-topright: 6px; -moz-border-radius-bottomright: 6px; -moz-border-radius-bottomleft: 6px;"
 bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0">
    <tbody>
      <tr>
        <td>
        <table
 style="border: 2px solid rgb(204, 204, 204); background: rgb(218, 218, 218) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: 100%; -moz-border-radius-topleft: 6px; -moz-border-radius-topright: 6px; -moz-border-radius-bottomright: 6px; -moz-border-radius-bottomleft: 6px;"
 bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0">
          <tbody>
            <tr>
              <td
 style="border-bottom: 1px solid rgb(204, 204, 204); padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px;"
 bgcolor="#000000" height="58px" valign="middle">
              <h1
 style="margin: 0pt; color: rgb(51, 51, 51); font-family: Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: bold; font-size: 22px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; display: block ! important;">
<!-- To have a header image/logo replace the name below with your img tag -->
<!-- Email clients will render the images when the message is read so any image -->
<!-- must be made available on a public server, so that all recipients can load the image. -->
              <a moz-do-not-send="true"
 href="http://community.jboss.org/index.jspa"
 style="text-decoration: none; color: rgb(225, 225, 225);">Community</a></h1>
              </td>
            </tr>
            <tr>
              <td
 style="padding: 20px; font-family: Arial,Helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; color: rgb(51, 51, 51); -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px;"
 bgcolor="#ffffff">
              <h3
 style="margin: 10px 0pt 5px; font-size: 17px; font-weight: normal;">
WS-Policy, SOAP 1.2 and the Standard client config
              </h3>
              <span style="margin-bottom: 10px;"> created by <a
 moz-do-not-send="true" href="http://community.jboss.org/people/barakka">Riccardo
Serafin</a> in <i>JBoss Web Services Development</i> - <a
 moz-do-not-send="true"
 href="http://community.jboss.org/message/544747#544747">View the full
discussion</a>
              </span>
              <hr
 style="border: medium none ; margin: 20px 0pt; background-color: rgb(218, 218, 218); height: 1px;">
              <div class="jive-rendered-content">
              <p>Hi,</p>
              <p style="padding: 0px; min-height: 8pt; height: 8pt;"> </p>
              <p>I'm using JBossWS 3.1.1.GA, and I've discovered a
possible problem when mixing the support for WS-Policy, WS-Security and
a web service with SOAP1.2 binding.</p>
              <p style="padding: 0px; min-height: 8pt; height: 8pt;"> </p>
              <p>The problem is that by default, if no specific client
configuration is provided, the client wsdl parser will parse the
provided policy, detect that WS-Security is required and load the
"Standard WSSecurity Client" configuration from the embedded
standard-jaxws-client-confix.xml, which correcly adds the WS-Security
handler, but only for the SOAP11 binding. As the web services requires
SOAP12, the client will send the message using this protocol, the
handler will not be activated, and of course the message will be
rejected.</p>
              <p style="padding: 0px; min-height: 8pt; height: 8pt;"> </p>
              <p>There a two fixes: first provide a custom client
configuration that adds the WS-Security handler for both protocols
bindings (which is what I've done), second modify the standard
configuration provided with the bundled library to activate the handler
for both protocols. I not sure if later versions have already fixed
this problems but, if not, would it possible to include this change in
the standard config?</p>
              <p style="padding: 0px; min-height: 8pt; height: 8pt;"> </p>
              <p>All the best,</p>
              <p>Riccardo.</p>
              </div>
              <div
 style="padding: 10px; background-color: rgb(244, 244, 244); margin-top: 20px;">
              <p style="margin: 0pt;">Reply to this message by <a
 moz-do-not-send="true"
 href="http://community.jboss.org/message/544747#544747">going to
Community</a></p>
              <p style="margin: 0pt;">Start a new discussion in JBoss
Web Services Development at <a moz-do-not-send="true"
 href="http://community.jboss.org/choose-container%21input.jspa?contentType=1&amp;containerType=14&amp;container=2047">Community</a></p>
              </div>
              </td>
            </tr>
          </tbody>
        </table>
        </td>
      </tr>
    </tbody>
  </table>
  </div>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
jboss-dev-forums mailing list
<a class="moz-txt-link-abbreviated" href="mailto:jboss-dev-forums@lists.jboss.org">jboss-dev-forums@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/jboss-dev-forums">https://lists.jboss.org/mailman/listinfo/jboss-dev-forums</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Richard Opalka
<a class="moz-txt-link-abbreviated" href="mailto:ropalka@redhat.com">ropalka@redhat.com</a>
JBoss, by Red Hat

Office: +420 222 365 200
Mobile: +420 731 186 942
</pre>
</body>
</html>