<!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="http://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="http://community.jboss.org/people/t.himaja">Himaja Thovi</a> in <i>JBoss Web Services</i> - <a href="http://community.jboss.org/message/580453#580453">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi,</p><p>Later i added few jars like jbossws-client.jar, jboss-common.jar, log4j.jar then i got some debug log at client side as follows:</p><pre class="jive-pre"><code class="jive-code">DEBUG [main] (JAXWSClientMetaDataBuilder.java:77) - START buildMetaData: [service={http://com/}ServerService]
DEBUG [main] (WSDLDefinitionsFactory.java:102) - parse: http://127.0.0.1:9898/JbossWS/Server?wsdl
DEBUG [main] (JavaToXSD.java:175) - Load schema: http://com/=file:/tmp/JBossWS_com_5071302848578309750.xsd
DEBUG [main] (JBossWSEntityResolver.java:64) - resolveEntity: [pub=null,sysid=file:/tmp/JBossWS_com_5071302848578309750.xsd]
DEBUG [main] (JBossWSEntityResolver.java:64) - resolveEntity: [pub=http://schemas.xmlsoap.org/soap/encoding/,sysid=null]
DEBUG [main] (EndpointMetaData.java:311) - Using default parameter style: WRAPPED
DEBUG [main] (JAXWSClientMetaDataBuilder.java:102) - END buildMetaData: 
UnifiedMetaData: 
 implementation: jbossws-3.0.1-native-2.0.4.GA (build=200803312044)
 deploymentName: null
 securityDomain: null

ServiceMetaData:
 qname={http://com/}ServerService
 refName=null
 wsdName=null
 wsdlFile=null
 wsdlLocation=http://127.0.0.1:9898/JbossWS/Server?wsdl
 jaxrpcMapping=null
 publishLocation=null
 securityConfig=null
 properties=null

TypesMetaData: 
&lt;schema targetNamespace='http://com/' xmlns='http://www.w3.org/2001/XMLSchema' xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/' xmlns:tns='http://com/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'&gt;
 &lt;complexType name='message'/&gt;
 &lt;complexType name='messageResponse'&gt;
&#160; &lt;sequence&gt;
&#160;&#160; &lt;element maxOccurs='1' minOccurs='0' name='return' type='string'/&gt;
&#160; &lt;/sequence&gt;
 &lt;/complexType&gt;
 &lt;element name='message' type='tns:message'/&gt;
 &lt;element name='messageResponse' type='tns:messageResponse'/&gt;
&lt;/schema&gt;


ClientEndpointMetaData:
 type=JAXWS
 qname={http://com/}ServerPort
 address=http://127.0.0.1:9898/JbossWS/Server
 binding=http://schemas.xmlsoap.org/wsdl/soap/http
 seiName=null
 configFile=META-INF/standard-jaxws-client-config.xml
 configName=Standard Client(Doubt At This Point)
 authMethod=null
 properties={}

OperationMetaData:
 qname={http://com/}message
 javaName={http://com/}message
 style=document/literal/WRAPPED
 oneWay=false
 soapAction=
DEBUG [main] (JAXWSClientMetaDataBuilder.java:276) - START: rebuildMetaData
DEBUG [main] (EndpointMetaData.java:321) - setParameterStyle: null
DEBUG [main] (EndpointMetaData.java:812) - Create new config [name=Standard Client,file=META-INF/standard-jaxws-client-config.xml]
DEBUG [main] (JBossWSConfigFactory.java:125) - getConfig: [name=Standard Client,url=META-INF/standard-jaxws-client-config.xml]
DEBUG [main] (JBossWSConfigFactory.java:71) - parse: jar:file:/home/himaja/NetBeansProjects/JbossWSClient/lib/jbossws-client.jar!/META-INF/standard-jaxws-client-config.xml
DEBUG [main] (SaxJBossXBParser.java:241) - Created parser: org.apache.xerces.jaxp.SAXParserImpl@15aed57, isNamespaceAware: true, isValidating: true, isXIncludeAware: true
DEBUG [main] (SaxJBossXBParser.java:157) - http://xml.org/sax/features/validation set to: true
DEBUG [main] (SaxJBossXBParser.java:157) - http://xml.org/sax/features/namespaces set to: true
DEBUG [main] (SaxJBossXBParser.java:157) - http://apache.org/xml/features/validation/dynamic set to: true
DEBUG [main] (SaxJBossXBParser.java:157) - http://xml.org/sax/features/validation set to: true
DEBUG [main] (SaxJBossXBParser.java:157) - http://apache.org/xml/features/validation/schema set to: true
DEBUG [main] (SaxJBossXBParser.java:241) - Created parser: org.apache.xerces.jaxp.SAXParserImpl@15aed57, isNamespaceAware: true, isValidating: true, isXIncludeAware: true
DEBUG [main] (EndpointMetaData.java:867) - Configure EndpointMetaData
DEBUG [main] (EndpointMetaData.java:879) - Added 0 PRE handlers
DEBUG [main] (EndpointMetaData.java:880) - Added 0 ENDPOINT handlers
DEBUG [main] (EndpointMetaData.java:881) - Added 0 POST handlers
DEBUG [main] (EndpointMetaData.java:321) - setParameterStyle: WRAPPED
DEBUG [main] (JAXWSMetaDataBuilder.java:938) - JAXBContext [types=[class com.Message, class com.MessageResponse],tns=http://com/]
DEBUG [main] (OperationMetaData.java:208) - Found best matching java method: public abstract java.lang.String com.Server.message()
DEBUG [main] (JAXWSClientMetaDataBuilder.java:322) - END: rebuildMetaData

ServiceMetaData:
 qname={http://com/}ServerService
 refName=null
 wsdName=null
 wsdlFile=null
 wsdlLocation=http://127.0.0.1:9898/JbossWS/Server?wsdl
 jaxrpcMapping=null
 publishLocation=null
 securityConfig=null
 properties=null

TypesMetaData: 
&#160; [complexType={http://com/}message,javaType=com.Message]
&#160; [complexType={http://com/}messageResponse,javaType=com.MessageResponse]
&lt;schema targetNamespace='http://com/' xmlns='http://www.w3.org/2001/XMLSchema' xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/' xmlns:tns='http://com/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'&gt;
 &lt;complexType name='message'/&gt;
 &lt;complexType name='messageResponse'&gt;
&#160; &lt;sequence&gt;
&#160;&#160; &lt;element maxOccurs='1' minOccurs='0' name='return' type='string'/&gt;
&#160; &lt;/sequence&gt;
 &lt;/complexType&gt;
 &lt;element name='message' type='tns:message'/&gt;
 &lt;element name='messageResponse' type='tns:messageResponse'/&gt;
&lt;/schema&gt;


ClientEndpointMetaData:
 type=JAXWS
 qname={http://com/}ServerPort
 address=http://127.0.0.1:9898/JbossWS/Server
 binding=http://schemas.xmlsoap.org/wsdl/soap/http
 seiName=com.Server
 configFile=META-INF/standard-jaxws-client-config.xml
 configName=Standard Client
 authMethod=null
 properties={}

OperationMetaData:
 qname={http://com/}message
 javaName=message
 style=document/literal/WRAPPED
 oneWay=false
 soapAction=
ParameterMetaData:
 xmlName={http://com/}message
 partName=message
 xmlType={http://com/}message
 javaType=com.Message
 mode=IN
 inHeader=false
 index=0
 wrappedParameters=[]
ReturnMetaData:
 xmlName={http://com/}messageResponse
 partName=messageResponse
 xmlType={http://com/}messageResponse
 javaType=com.MessageResponse
 mode=OUT
 inHeader=false
 index=-1
 wrappedParameters=[[name = return, type = java.lang.String, typeArgs = null, variable = return, index = -1]]
DEBUG [main] (EndpointMetaData.java:732) - Configure SOAPBinding
DEBUG [main] (HandlerResolverImpl.java:125) - initHandlerChain: PRE
DEBUG [main] (HandlerResolverImpl.java:125) - initHandlerChain: ENDPOINT
DEBUG [main] (HandlerResolverImpl.java:125) - initHandlerChain: POST
DEBUG [main] (HandlerResolverImpl.java:99) - getHandlerChain: [type=PRE,info=[service={http://com/}ServerService,port={http://com/}ServerPort,binding=http://schemas.xmlsoap.org/wsdl/soap/http]]
DEBUG [main] (HandlerResolverImpl.java:99) - getHandlerChain: [type=POST,info=[service={http://com/}ServerService,port={http://com/}ServerPort,binding=http://schemas.xmlsoap.org/wsdl/soap/http]]
DEBUG [main] (HandlerResolverImpl.java:99) - getHandlerChain: [type=ENDPOINT,info=[service={http://com/}ServerService,port={http://com/}ServerPort,binding=http://schemas.xmlsoap.org/wsdl/soap/http]]
DEBUG [main] (BindingImpl.java:94) - setHandlerChain: []
DEBUG [main] (ServiceDelegateImpl.java:434) - No port configuration for: {http://com/}ServerPort
DEBUG [main] (MessageContextAssociation.java:46) - pushMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS@afae4a (Thread main)
DEBUG [main] (ParameterWrapping.java:109) - wrapRequestParameters: com.Message
DEBUG [main] (EndpointInvocation.java:103) - setRequestParamValue: [name={http://com/}message,value=com.Message]
DEBUG [main] (CommonSOAPBinding.java:144) - bindRequestMessage: {http://com/}message
DEBUG [main] (EndpointInvocation.java:110) - getRequestParamValue: {http://com/}message
DEBUG [main] (EndpointInvocation.java:268) - transformPayloadValue: com.Message -&gt; com.Message
DEBUG [main] (HandlerChainExecutor.java:84) - Create a handler executor: []
DEBUG [main] (HandlerChainExecutor.java:84) - Create a handler executor: []
DEBUG [main] (HandlerChainExecutor.java:84) - Create a handler executor: []
DEBUG [main] (HTTPRemotingConnection.java:176) - Get locator for: [addr=http://127.0.0.1:9898/JbossWS/Server,props={javax.xml.ws.service.endpoint.address=http://127.0.0.1:9898/JbossWS/Server}]
DEBUG [main] (MicroRemoteClientInvoker.java:298) - org.jboss.remoting.transport.http.HTTPClientInvoker@15b0e2c connecting
DEBUG [main] (MicroRemoteClientInvoker.java:312) - org.jboss.remoting.transport.http.HTTPClientInvoker@15b0e2c connected
DEBUG [main] (HTTPRemotingConnection.java:220) - Remoting metadata: {NoThrowOnError=true, HEADER={SOAPAction="", Content-Type=text/xml; charset=UTF-8}}
DEBUG [main] (HTTPClientInvoker.java:313) - Setting request header with SOAPAction : ""
DEBUG [main] (HTTPClientInvoker.java:313) - Setting request header with Content-Type : text/xml; charset=UTF-8
DEBUG [main] (SOAPContentElement.java:137) - -----------------------------------
DEBUG [main] (SOAPContentElement.java:138) - Transitioning from OBJECT_VALID to XML_VALID
DEBUG [main] (ObjectContent.java:135) - getXMLFragment from Object [xmlType={http://com/}message,javaType=class com.Message]
DEBUG [main] (JAXBSerializer.java:61) - serialize: [xmlName={http://com/}message,xmlType={http://com/}message]
DEBUG [main] (JAXBSerializer.java:83) - serialized: &lt;ns1:message xmlns:ns1="http://com/"/&gt;
DEBUG [main] (ObjectContent.java:162) - xmlFragment: [source=&lt;ns1:message xmlns:ns1="http://com/"/&gt;]
DEBUG [main] (SOAPContentElement.java:144) - -----------------------------------
DEBUG [main] (SOAPMessageUnMarshallerHTTP.java:123) - getMimeHeaders from: {Date=[Thu, 13 Jan 2011 05:18:34 GMT], Transfer-Encoding=[chunked], NoThrowOnError=true, HEADER={SOAPAction="", Content-Type=text/xml; charset=UTF-8}, ResponseCode=500, ResponseCodeMessage=Internal Server Error, ResponseHeaders={null=[HTTP/1.1 500 Internal Server Error], Transfer-Encoding=[chunked], Date=[Thu, 13 Jan 2011 05:18:34 GMT], Content-Type=[text/xml;charset=UTF-8], Connection=[close], Server=[Apache-Coyote/1.1], X-Powered-By=[Servlet 2.5; JBoss-5.0/JBossWeb-2.1]}, Connection=[close], Content-Type=[text/xml;charset=UTF-8], X-Powered-By=[Servlet 2.5; JBoss-5.0/JBossWeb-2.1], Server=[Apache-Coyote/1.1]}
DEBUG [main] (MessageFactoryImpl.java:215) - createMessage: [contentType=text/xml; charset=UTF-8]
DEBUG [main] (InvokerRegistry.java:631) - removed org.jboss.remoting.transport.http.HTTPClientInvoker@15b0e2c from registry
DEBUG [main] (MessageContextJAXWS.java:105) - Begin response processing
DEBUG [main] (MessageContextAssociation.java:75) - popMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS@afae4a (Thread main)
DEBUG [main] (MessageContextAssociation.java:46) - pushMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS@61cd2 (Thread main)
DEBUG [main] (CommonSOAPBinding.java:542) - unbindResponseMessage: {http://com/}message
DEBUG [main] (SOAPContentElement.java:137) - -----------------------------------
DEBUG [main] (SOAPContentElement.java:138) - Transitioning from XML_VALID to DOM_VALID
DEBUG [main] (SOAPContentElement.java:144) - -----------------------------------
DEBUG [main] (HandlerChainExecutor.java:96) - close
DEBUG [main] (HandlerChainExecutor.java:96) - close
DEBUG [main] (HandlerChainExecutor.java:96) - close
DEBUG [main] (MessageContextAssociation.java:75) - popMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS@61cd2 (Thread main)
javax.xml.ws.soap.SOAPFaultException: This service requires &lt;wsse:Security&gt;, which is missing.
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultException(SOAPFaultHelperJAXWS.java:72)
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.throwFaultException(SOAP11BindingJAXWS.java:109)
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:579)
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:380)
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:302)
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:172)
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:152)
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at $Proxy15.message(Unknown Source)
&#160;&#160;&#160;&#160;&#160;&#160;&#160; at jbosswsclient.Main.main(Main.java:16)
BUILD SUCCESSFUL (total time: 2 seconds)
</code></pre></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/580453#580453">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Web Services at <a href="http://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>