0 Replies Latest reply on Jan 6, 2009 7:37 AM by sachinshinde

    Amending SOAP Header

    sachinshinde
      My Axis SOAP server developers has recently added SOAP header authentication and so far I have managed to add Authentication tags in header. I am using SoapHeaderFix.as class provided on Adobe website to enable this functionality.
      So I am adding these two tags inside header using AddPersistentSOAPHeader method of SoapHeaderFix class and my header looks something like...

      <SOAP-ENV:Header><ns1:authenticateUser SOAP-ENV:encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/"><username xsi:type="xsd:string">{$uname}</username><password xsi:type="xsd:string">{$pass}</password></ns1:authenticateUser></SOAP-ENV:Header>


      However the problem I am facing is Axis server needs valid namespace defined inside top header tag. So the header should look like


      <SOAP-ENV:Header xmlns:ns1="promoregistration" ><ns1:authenticateUser SOAP-ENV:encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/"><username xsi:type="xsd:string">{$uname}</username><password xsi:type="xsd:string">{$pass}</password></ns1:authenticateUser></SOAP-ENV:Header>


      Can any one please help with how to achieve this?
      Even If this is possible in AS3 please let me know so I could propose porting my app to AS3.