<!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;">
    WS-Adresssing not working in Jboss-5 webservice client
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/arun.m">Arun Kumar</a> in <i>JBoss Web Services Development</i> - <a href="https://community.jboss.org/message/832161#832161">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p><span style="color: #000000; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; background-color: #ffffff;">Am using java webservice client. I ran the below code as a main program and it is working fine</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="color: #000000; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; background-color: #ffffff;"><code style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;">VASWCF vas = new VASWCF();<br/>System.out.println(" Trying to get contract ") ;<br/>IRequestUnifiedVASContract contract = vas<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .getWSHttpBindingIRequestUnifiedVASContract(new AddressingFeature(true,true));<br/>System.out.println(" Trying to send SOAP request ") ;<br/>contract.notify(inputXml, null);<br/>System.out.println(" SOAP message sent successfully ");</code></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="color: #000000; font-size: 14px; background-color: #ffffff; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;">But when i run the same code in Jboss-5, exceptions are occuring</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="color: #000000; font-size: 14px; background-color: #ffffff; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;"><code style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;">2013-08-09 19:09:35,264 WARN&#160; [org.jboss.ws.tools.wsdl.WSDL11Reader] (http-127.0.0.1-8080-1) UsingAddressing extensibility element not supported yet.<br/>2013-08-09 19:09:35,317 INFO&#160; [STDOUT] (http-127.0.0.1-8080-1)&#160; Trying to get VAS contract <br/>2013-08-09 19:09:35,581 INFO&#160; [STDOUT] (http-127.0.0.1-8080-1)&#160; Trying to send SOAP request <br/>2013-08-09 19:09:35,797 ERROR [org.jboss.ws.core.CommonClient] (http-127.0.0.1-8080-1) Exception caught while (preparing for) performing the invocation: <br/>javax.xml.ws.soap.SOAPFaultException: The message with To '' cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher.&#160; Check that the sender and receiver's EndpointAddresses agree.<br/>&#160;&#160;&#160; at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultException(SOAPFaultHelperJAXWS.java:84)<br/>&#160;&#160;&#160; at org.jboss.ws.core.jaxws.binding.SOAP12BindingJAXWS.throwFaultException(SOAP12BindingJAXWS.java:115)<br/>&#160;&#160;&#160; at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:579)<br/>&#160;&#160;&#160; at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:381)<br/>&#160;&#160;&#160; at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:290)<br/>&#160;&#160;&#160; at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:170)<br/>&#160;&#160;&#160; at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)<br/>&#160;&#160;&#160; at $Proxy276.notify(Unknown Source)<br/>&#160;&#160;&#160; at com.arun.sartest.LogTestMbean.kickStartSMS(LogTestMbean.java:57)<br/>&#160;&#160;&#160; at com.arun.sartest.LogTestMbean.getLogValue(LogTestMbean.java:44)<br/>&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br/>&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br/>&#160;&#160;&#160; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br/>&#160;&#160;&#160; at java.lang.reflect.Method.invoke(Method.java:597)<br/>&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:122)<br/>&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)<br/>&#160;&#160;&#160; at org.jboss.ejb3.EJBContainerInvocationWrapper.invokeNext(EJBContainerInvocationWrapper.java:69)<br/>&#160;&#160;&#160; at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.invoke(InterceptorSequencer.java:73)<br/>&#160;&#160;&#160; at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.aroundInvoke(InterceptorSequencer.java:59)<br/>&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br/>&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br/>&#160;&#160;&#160; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br/>&#160;&#160;&#160; at java.lang.reflect.Method.invoke(Method.java:597)<br/>&#160;&#160;&#160; at org.jboss.aop.advice.PerJoinpointAdvice.invoke(PerJoinpointAdvice.java:174)<br/>&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)</code></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="margin: 0 0 1em; font-size: 14px; background-color: #ffffff; color: #000000; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;">When the same code runs as main program, it works fine. Wondering how it is not working in jboss-5 . <strong>I suspect that Jboss's JAXWS jar files are causing this</strong>. If so how to avoid that and make Jboss-5 use Java's classpath ?</p><p style="margin: 0 0 1em; font-size: 14px; background-color: #ffffff; color: #000000; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;">Please help me on this</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/832161#832161">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Web Services Development at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2047">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>