Listing 6

<SOAP-SEC:Signature>
   <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="#purchaseOrder">
      <ds:DigestMethod Algorithm=
	  "http://www.w3.org/2000/09/xmldsig#sha1"/>
      <ds:DigestValue>2jmj7l5rSw0yVb/vlWAYkK/YBwk= </ds:DigestValue>
   </ds:Reference>
    </ds:SignedInfo>
    <ds:SignatureValue>
	ZW7stqLKyeLlHxJ611C7LLLcw96ArOVnNNw/J/6e+
	TeDDeaa1K1EtA==</ds:SignatureValue>
    <ds:KeyInfo>
    </ds:KeyInfo>
   </ds:Signature>
  </SOAP-SEC:Signature>

Listing 7

<soapenv:Envelope soapenv:actor="some-uri" soapenv:mustUnderstand="1"
// namespace declaration >
<soapenv:Header>
  	<SOAP-SEC:Signature </SOAP-SEC:Signature>
  </soapenv:Header>
<soapenv:Body>
 	 <ns1:processPOMethod xmlns:ns1="http://localhost:8080/POService"/>
  <purchaseOrder orderDate="2003-01-20">
 </purchaseOrder>
  	</soapenv:Body>
</soapenv:Envelope>

Listing 8

<deployment xmlns="http://xml.apache.org/axis/wsdd/"
 xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
  <!-- define signature handler configuration -->
 <handler name=" signature" type="DecryptionHandler">
<!--	define the file to log the exceptions/faults -- >
<parameter name="filename" value="MyService.log"/>
 </handler>

 <!-- define the service, using the log handler we just defined -->
 <service name="http://localhost:8080/POService" provider="java:RPC">
  <requestFlow>
   <handler type="  signature"/>
  </requestFlow>
<!--specify the class name and its methods to the purchase order service
  <parameter name="className" value="POService"/>
  <parameter name="allowedMethods" value=" processPOMethod "/>
 </service>
</deployment>

Additional Code...for This Article