Hi everyone.

Hi everyone.

In the new #10Seatlle  I'm trying to create a Webservice with Delphi, but I can not get the soap Header on the server side.

Using SOAP UI, I send this XML:

http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:Inter.Controller.WebService.WsInterIntf-IWsInter">
   
     
         uy
         888
         jhbhbhhbh
     

   

   
      http://schemas.xmlsoap.org/soap/encoding/">
         etNum
     

   



But, in the code, it's impossible to read the TAuthHeader with this sintax:

function TWsInter.echoEnum(const Value: TEnumTest): TEnumTest; stdcall;
var
  H: TAuthHeader;
begin
  (Self as ISOAPHeaders).Get(TAuthHeader, TSoapHeader(H));
  if H <> nil then
  begin

  end
  else
    raise Exception.Create('Oh no :-(');
end;

The variable H is always nil after the "Get" sentence.

Any leads?

Thanks.

Comments