Correct SOAP Header namespace generation

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1253 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
inoussa
2010-07-15 17:04:25 +00:00
parent c75480148f
commit 4c78816d50

View File

@ -1723,6 +1723,7 @@ var
ptyp : PTypeInfo;
h : THeaderBlock;
i, c : Integer;
regItem : TTypeRegistryItem;
begin
Result := ACallContext.GetHeaderCount([hdOut]);
if ( Result > 0 ) then begin
@ -1733,8 +1734,12 @@ begin
h := ACallContext.GetHeader(i);
if ( h.Direction = hdOut ) then begin
ptyp := PTypeInfo(h.ClassInfo);
regItem := GetTypeRegistry().Find(ptyp,True);
//Put(GetTypeRegistry().ItemByTypeInfo[ptyp].DeclaredName,ptyp,h);
Put(h.Name,ptyp,h);
if ( regItem <> nil) then
Put(regItem.NameSpace,h.Name,ptyp,h)
else
Put(h.Name,ptyp,h);
end;
end;
finally