Title: Message
This is my encrypted file i can Decrypt the  <wsse:Password> element and write this out to a file but having spent the last few hours tring to find out why i can access ne to remove the cipher elements.
 
I've attached source code, Someone Please tell me where i'm going wrong.
 
Thanks in advance
 
 
John
 
 
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/secext" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" soapenv:mustUnderstand="1">
 <soapenv:Header>
  <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soapenv:mustUnderstand="0">
   <wsse:UsernameToken>
    <wsse:Username wsu:Id="UsernameToken">username</wsse:Username>
    <wsse:Password><EncryptedData xmlns="http://www.w3.org/2001/04/xmlenc#" Id="wsse:Password" Type="http://www.w3.org/2001/04/xmlenc#Content">
    <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#DESede"/>
    <CipherData>
  <CipherValue>+VJQClJAx8zOMijKdwfnug==</CipherValue>
    </CipherData>
</EncryptedData></wsse:Password>
   </wsse:UsernameToken>
  </wsse:Security>
  <wsse:Signature/>
 </soapenv:Header>
 <soapenv:Body>
  <serviceMethod soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
   <arg1 xsi:type="xsd:string"><EncryptedData xmlns="http://www.w3.org/2001/04/xmlenc#" Id="arg1" Type="http://www.w3.org/2001/04/xmlenc#Content">
    <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#DESede"/>
    <CipherData>
  <CipherValue>sJzgu8mTQpJ2Xu/ABKVfBQ==</CipherValue>
    </CipherData>
</EncryptedData></arg1>
  </serviceMethod>
 </soapenv:Body>
</soapenv:Envelope>
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/secext"; xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; soapenv:mustUnderstand="1">
	<soapenv:Header>
		<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"; soapenv:mustUnderstand="0">
			<wsse:UsernameToken>
				<wsse:Username wsu:Id="UsernameToken">username</wsse:Username>
				<wsse:Password><EncryptedData xmlns="http://www.w3.org/2001/04/xmlenc#"; Id="wsse:Password" Type="http://www.w3.org/2001/04/xmlenc#Content";>
    <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#DESede"/>
    <CipherData>
		<CipherValue>+VJQClJAx8zOMijKdwfnug==</CipherValue>
    </CipherData>
</EncryptedData></wsse:Password>
			</wsse:UsernameToken>
		</wsse:Security>
		<wsse:Signature/>
	</soapenv:Header>
	<soapenv:Body>
		<serviceMethod soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
			<arg1 xsi:type="xsd:string"><EncryptedData xmlns="http://www.w3.org/2001/04/xmlenc#"; Id="arg1" Type="http://www.w3.org/2001/04/xmlenc#Content";>
    <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#DESede"/>
    <CipherData>
		<CipherValue>sJzgu8mTQpJ2Xu/ABKVfBQ==</CipherValue>
    </CipherData>
</EncryptedData></arg1>
		</serviceMethod>
	</soapenv:Body>
</soapenv:Envelope>

Attachment: StringEncrypter.java
Description: Binary data


Attachment: StringDcMain.java
Description: Binary data

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/secext"; xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; soapenv:mustUnderstand="1">
	<soapenv:Header>
		<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"; soapenv:mustUnderstand="0">
			<wsse:UsernameToken>
				<wsse:Username wsu:Id="UsernameToken">username</wsse:Username>
				<wsse:password>password</wsse:password>
			</wsse:UsernameToken>
			<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#";>
				<ds:SignedInfo>
					<ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
					<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#dsa-sha1"/>
					<ds:Reference URI="#Body">
						<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
						<ds:DigestValue>2jmj7l5rSw0yVb/vlWAYkK/YBwk=</ds:DigestValue>
					</ds:Reference>
				</ds:SignedInfo>
				<ds:SignatureValue>jLwXNoJ5BWwfhOkeXZofTbc6Mn1BTSYomthjjZIGqIurVm3VhnvHPQ==</ds:SignatureValue>
				<ds:KeyInfo>
					<ds:X509Data>
						<ds:X509Certificate>
							MIIDETCCAs4CBEJBc7swCwYHKoZIzjgEAwUAMG4xCzAJBgNVBAYTAlVLMRcwFQYDVQQIEw5MZWlj
							ZXN0ZXJzaGlyZTESMBAGA1UEBxMJTGVpY2VzdGVyMQwwCgYDVQQKEwNETVUxDDAKBgNVBAsTA0RN
							VTEWMBQGA1UEAxMNSm9obiBIYXJyaXNvbjAeFw0wNTAzMjMxMzQ4NDNaFw0wNTA2MjExMzQ4NDNa
							MG4xCzAJBgNVBAYTAlVLMRcwFQYDVQQIEw5MZWljZXN0ZXJzaGlyZTESMBAGA1UEBxMJTGVpY2Vz
							dGVyMQwwCgYDVQQKEwNETVUxDDAKBgNVBAsTA0RNVTEWMBQGA1UEAxMNSm9obiBIYXJyaXNvbjCC
							AbcwggEsBgcqhkjOOAQBMIIBHwKBgQD9f1OBHXUSKVLfSpwu7OTn9hG3UjzvRADDHj+AtlEmaUVd
							QCJR+1k9jVj6v8X1ujD2y5tVbNeBO4AdNG/yZmC3a5lQpaSfn+gEexAiwk+7qdf+t8Yb+DtX58ao
							phUPBPuD9tPFHsMCNVQTWhaRMvZ1864rYdcq7/IiAxmd0UgBxwIVAJdgUI8VIwvMspK5gqLrhAvw
							WBz1AoGBAPfhoIXWmz3ey7yrXDa4V7l5lK+7+jrqgvlXTAs9B4JnUVlXjrrUWU/mcQcQgYC0SRZx
							I+hMKBYTt88JMozIpuE8FnqLVHyNKOCjrh4rs6Z1kW6jfwv6ITVi8ftiegEkO8yk8b6oUZCJqIPf
							4VrlnwaSi2ZegHtVJWQBTDv+z0kqA4GEAAKBgHmCYwXahGcAcI0ngl/z740T8MWVs4a/7Tr8JGlN
							2QPMgG7kEkszusYv7/VOv3ermhqkZFKJmJMbmH8fZZ8c3xJCeUe/caAZgvUDQUK/QhOfUIjDnRrG
							4wbkUU0DeWC3QPWVQL3K6R8JH+HvJy68YUSO/a95vVj+5Lg9VbmzhAHjMAsGByqGSM44BAMFAAMw
							ADAtAhUAgd+u1PPAFsoHLkfSpABV3rX8xWICFDXBiEqcRZafhy/fw338uKrBZxA/
						</ds:X509Certificate>
					</ds:X509Data>
					<ds:KeyValue>
						<ds:DSAKeyValue>
							<ds:P>
								/X9TgR11EilS30qcLuzk5/YRt1I870QAwx4/gLZRJmlFXUAiUftZPY1Y+r/F9bow9subVWzXgTuA
								HTRv8mZgt2uZUKWkn5/oBHsQIsJPu6nX/rfGG/g7V+fGqKYVDwT7g/bTxR7DAjVUE1oWkTL2dfOu
								K2HXKu/yIgMZndFIAcc=
							</ds:P>
							<ds:Q>l2BQjxUjC8yykrmCouuEC/BYHPU=</ds:Q>
							<ds:G>
								9+GghdabPd7LvKtcNrhXuXmUr7v6OuqC+VdMCz0HgmdRWVeOutRZT+ZxBxCBgLRJFnEj6EwoFhO3
								zwkyjMim4TwWeotUfI0o4KOuHiuzpnWRbqN/C/ohNWLx+2J6ASQ7zKTxvqhRkImog9/hWuWfBpKL
								Zl6Ae1UlZAFMO/7PSSo=
							</ds:G>
							<ds:Y>
								eYJjBdqEZwBwjSeCX/PvjRPwxZWzhr/tOvwkaU3ZA8yAbuQSSzO6xi/v9U6/d6uaGqRkUomYkxuY
								fx9lnxzfEkJ5R79xoBmC9QNBQr9CE59QiMOdGsbjBuRRTQN5YLdA9ZVAvcrpHwkf4e8nLrxhRI79
								r3m9WP7kuD1VubOEAeM=
							</ds:Y>
						</ds:DSAKeyValue>
					</ds:KeyValue>
				</ds:KeyInfo>
			</ds:Signature></wsse:Security>
		<wsse:Signature/> </soapenv:Header>
	<soapenv:Body>
		<serviceMethod soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
			<arg1 xsi:type="xsd:string"><EncryptedData xmlns="http://www.w3.org/2001/04/xmlenc#"; Id="arg1" Type="http://www.w3.org/2001/04/xmlenc#Content";>
    <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#DESede"/>
    <CipherData>
		<CipherValue>sJzgu8mTQpJ2Xu/ABKVfBQ==</CipherValue>
    </CipherData>
</EncryptedData></arg1>
		</serviceMethod>
	</soapenv:Body>
</soapenv:Envelope>

Attachment: StringEncMain.java
Description: Binary data

<?xml version="1.0" encoding="UTF-8"?>
<EncryptedData Id="arg1" Type="http://www.w3.org/2001/04/xmlenc#Content"; xmlns="http://www.w3.org/2001/04/xmlenc#";>
    <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#DESede"/>
    <CipherData>
		<CipherValue>
			Value
		</CipherValue>
    </CipherData>
</EncryptedData>

Reply via email to