<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; 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 href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Re: missing <wsse:Security> tag in WS-Security
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/noe_bartino1984">NOE GUTIERREZ</a> in <i>JBoss Web Services</i> - <a href="https://community.jboss.org/message/779166#779166">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p><strong>Hi:</strong></p><p><strong> I have found the solution to this mistake <strong style="background-color: #ffffff; font-size: 1.1111em; color: #777777; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;"><a class="jive-link-message-small" href="https://community.jboss.org/message/776941#776941">missing <wsse:Security> tag in WS-Security</a></strong></strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong style="background-color: #ffffff; font-size: 1.1111em; color: #777777; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">the configuration client </strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong style="background-color: #ffffff; font-size: 1.1111em; color: #777777; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">jdk6 an jboss 5.1.0<br/></strong></p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;"><strong> <span style="background-color: #eef4f9;">I used this VM options  </span><span style="background-color: #eef4f9;">-Dsun.lang.ClassLoader.allowArraySyntax=true "-Djava.endorsed.dirs=D:\jboss-5.1.0.GA\lib\endorsed"</span></strong></p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;"><strong style="background-color: #eef4f9;"><br/></strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;"><strong style=": ; color: #555555; font-size: 12px; background-color: #ffffff; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">and added this jars to my classpath</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><ul style="list-style-type: disc;"><li><strong>jaxb-impl.jar</strong></li><li><strong>xmlsec-1.4.1.jar</strong></li><li><strong>jboss-logging-spi.jar</strong></li><li><strong>jbossws-spi.jar</strong></li><li><strong>jbossws-spi.jar</strong></li><li><strong>jbossws-native-jarxrpc.jar</strong></li><li><strong>mail.jar</strong></li><li><strong>jbossws-client.jar</strong></li><li><strong>jboss-common-core.jar</strong></li><li><strong>jbossws-common.jar</strong></li><li><strong>wsdl4j.jar</strong></li><li><strong>jboss-xml-binding.jar</strong></li><li><strong>jaxb-xjc.jar</strong></li><li><strong>xercesImpl.jar</strong></li><li><strong>policy.jar</strong></li><li><strong>commos-logging.jar</strong></li><li><strong>javassist.jar</strong></li><li><strong>concurrent.jar</strong></li><li><strong>jboss-remoting.jar</strong></li></ul><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>my main Class Client</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>import org.jboss.logging.Logger;</strong></p><p><strong>import org.jboss.ws.core.StubExt;</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>import misservicios.insys.ws.*;</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>public class ClientSample {</strong></p><p><strong>          private static Logger log = Logger.getLogger(ClientSample.class);</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>          public static void main(String[] args) {</strong></p><p><strong>                  System.out.println("***********************");</strong></p><p><strong>                  System.out.println("Create Web Service Client...");</strong></p><p>                  </p><p><strong>                  try {</strong></p><p>           <strong> log.info("Create Web Service Client...");</strong></p><p><strong>                                                  log.info("***********************");</strong></p><p><strong>                                                  OperacionService service1 = new OperacionService();</strong></p><p><strong>                                                  log.info("El Servicio consumido "+service1.getServiceName().getNamespaceURI());</strong></p><p><strong>                                                  log.info("El host:"+service1.getWSDLDocumentLocation().getHost());</strong></p><p><strong>                                                  log.info("El path:"+service1.getWSDLDocumentLocation().getPath());</strong></p><p><strong>                                                  log.info("El Protocolo:"+service1.getWSDLDocumentLocation().getProtocol());</strong></p><p>  </p><p><strong>                                 Operacion port1 = service1.getOperacionPort();</strong></p><p>                           </p><p>                            </p><p>                           </p><p><strong>                            ((StubExt) port1).setConfigName("Standard WSSecurity Client");// add this line</strong></p><p><strong>                            System.setProperty("org.jboss.ws.wsse.keyStore", "D:\\MY_WEBSERVICES\\WEB_SERVICE_CLIENT\\src\\META-INF\\client-keystore.jks");</strong></p><p><strong>                            System.setProperty("org.jboss.ws.wsse.keyStorePassword", "changeit");</strong></p><p><strong>                            System.setProperty("org.jboss.ws.wsse.keyStoreType", "jks");</strong></p><p>                            </p><p><strong>                            System.setProperty("org.jboss.ws.wsse.trustStore", "D:\\MY_WEBSERVICES\\WEB_SERVICE_CLIENT\\src\\META-INF\\client-truststore.jks");</strong></p><p><strong>                            System.setProperty("org.jboss.ws.wsse.trustStorePassword", "changeit");</strong></p><p><strong>                            System.setProperty("org.jboss.ws.wsse.trustStoreType", "jks");</strong></p><p>                           </p><p>                           </p><p>                            </p><p>                                      </p><p>                            </p><p>                           </p><p>                            </p><p><strong>                            log.info("Call Web Service Operation...");</strong></p><p><strong>                            log.info("Server said: " + port1.multiplica(Integer.parseInt(args[0]),Integer.parseInt(args[1])));</strong></p><p><strong>                            log.info("***********************");</strong></p><p><strong>                            log.info("Call Over!");</strong></p><p><strong>                              } catch (Exception e) {</strong></p><p>  </p><p><strong>                                        log.error("ocurrio un Error ",e);</strong></p><p><strong>                              }</strong></p><p>                   </p><p>               </p><p>                  </p><p><strong>          }</strong></p><p><strong>}</strong></p><p><strong><br/></strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;"><strong style=": ; color: #555555; font-size: 12px; background-color: #ffffff; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;"><br/></strong></p><p style="background-color: #ffffff; font-size: 12px; color: #555555; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;"><strong style=": ; color: #555555; font-size: 12px; background-color: #ffffff; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;"><br/></strong></p><p><strong style="background-color: #ffffff; font-size: 1.1111em; color: #777777; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;"><br/></strong></p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/779166#779166">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Web Services at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>