You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by Kumar <ba...@gmail.com> on 2005/06/23 08:40:13 UTC
Unable to generate BinarySecurityToken element in SOAP Header using WSS4J
Hi All,
1. I want to generate a BinarySecurityToken element in SOAP Header like below.
<wsse:BinarySecurityToken wsu:Id="A1UdAQQ8MDqAEEVs"
ValueType="wsse:X509v3" EncodingType="wsse:Base64Binary">
MIIEZzCCA9CgAwIBAgIQEmtJZc0
</wsse:BinarySecurityToken>
No matter how I tweak my client_config.wsdd for this it didnt help. I
am only seeing the signature in my request soap message but no
certificate. Can anyone please paste or refer a sample
client_config.wsdd file. I have looked at the .wsdd files in
***\ws-fx_20050620105356\ws-fx\wss4j\interop*** directory but no use.
I just want to sign a soap message using a X509 Certificate and want
to see the certificate in <wsse:BinarySecurityToken> tags. Not
looking for any encryption or username token in the soap message.
Please suggest how a sample config file on the client side and server
side looks like.
2. Also, under what case we get below exception. I have the same
action attribute value in both client side config file and server side
config file.
WSDoAllReceiver: security processing failed (actions number mismatch)
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1077)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:225)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:173)
at org.apache.axis.client.Call.invokeEngine(Call.java:2737)
at org.apache.axis.client.Call.invoke(Call.java:2720)
at org.apache.axis.client.Call.invoke(Call.java:2396)
at org.apache.axis.client.Call.invoke(Call.java:2319)
at org.apache.axis.client.Call.invoke(Call.java:1776)
at stock.SparePartInfoSoapBindingStub.getPartInfo(SparePartInfoSoapBindingStub.java:104)
Thanks & Regards,
Kumar.