axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Gough <wheres...@gmail.com>
Subject [Axis 1.4] Addressing: how to change the value of an addressing header of a SOAP request?
Date Thu, 01 Jun 2006 23:53:04 GMT
I want to change the value of the "To:" header in my message, I am 
adding the headers through the use of a .wsdd file as seen below, but I 
can make the changes in code if necessary:

<deployment xmlns="http://xml.apache.org/axis/wsdd/" 
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
 <transport name="http" 
pivot="java:org.apache.axis.transport.http.HTTPSender"/>
  <globalConfiguration >
  <parameter name="addressing.sendReplyTo" value="true"/>
  <parameter name="enableNamespacePrefixOptimization" value="false"/>
   <requestFlow >
      <!-- ADDRESSING -->
          <handler 
type="java:org.apache.axis.message.addressing.handler.AddressingHandler"> 
              <parameter name="referencePropertyNames" 
value="{Element}{http://schemas.xmlsoap.org/ws/2004/08/addressing}MessageID;{Element}{http://schemas.xmlsoap.org/ws/2004/08/addressing}Action;{Element}{http://schemas.xmlsoap.org/ws/2004/08/addressing}To;{Element}{http://schemas.xmlsoap.org/ws/2004/08/addressing}ReplyTo"/>
 

          </handler>
    <!-- SECURITY -->
        <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
            <parameter name="action" value="Timestamp 
UsernameTokenSignature"/>
            <parameter name="passwordType" value="PasswordDigest"/>
            <parameter name="passwordCallbackClass" 
value="com.somepackage.security.PWCallback"/>
            <parameter name="precisionInMilliseconds" value="false" />
            <parameter name="signatureParts" 
value="{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body;{Element}{http://schemas.xmlsoap.org/ws/2004/08/addressing}MessageID;{Element}{http://schemas.xmlsoap.org/ws/2004/08/addressing}Action;{Element}{http://schemas.xmlsoap.org/ws/2004/08/addressing}To;{Element}{http://schemas.xmlsoap.org/ws/2004/08/addressing}ReplyTo"/>
        </handler>
   </requestFlow >
  </globalConfiguration >
</deployment>


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message