You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by James Gough <wh...@gmail.com> on 2006/06/14 00:54:54 UTC

[ Axis 1.4 ] How to set "To" Header value?

I am sending attempting to send a message as a client to a .NET web 
service, and I need to manually set the value of my "To" soap header, 
which is added to my message by using the .wsdd file below:

<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}To;{Element}{http://schemas.xmlsoap.org/ws/2004/08/addressing}Action;{Element}{http://schemas.xmlsoap.org/ws/2004/08/addressing}ReplyTo"/>     
  
            <parameter name="To" value="urn:SureCloseExport"/>
          </handler>
   </requestFlow >
  </globalConfiguration >
</deployment>

The value I get is not the value I need, is there a way to manually set 
this value?  Please, any help is appreciated,  I really am hitting a 
wall with this thing.

Jim




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