You've already forked lazarus-ccr
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:
@ -1723,6 +1723,7 @@ var
|
|||||||
ptyp : PTypeInfo;
|
ptyp : PTypeInfo;
|
||||||
h : THeaderBlock;
|
h : THeaderBlock;
|
||||||
i, c : Integer;
|
i, c : Integer;
|
||||||
|
regItem : TTypeRegistryItem;
|
||||||
begin
|
begin
|
||||||
Result := ACallContext.GetHeaderCount([hdOut]);
|
Result := ACallContext.GetHeaderCount([hdOut]);
|
||||||
if ( Result > 0 ) then begin
|
if ( Result > 0 ) then begin
|
||||||
@ -1733,8 +1734,12 @@ begin
|
|||||||
h := ACallContext.GetHeader(i);
|
h := ACallContext.GetHeader(i);
|
||||||
if ( h.Direction = hdOut ) then begin
|
if ( h.Direction = hdOut ) then begin
|
||||||
ptyp := PTypeInfo(h.ClassInfo);
|
ptyp := PTypeInfo(h.ClassInfo);
|
||||||
|
regItem := GetTypeRegistry().Find(ptyp,True);
|
||||||
//Put(GetTypeRegistry().ItemByTypeInfo[ptyp].DeclaredName,ptyp,h);
|
//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;
|
||||||
end;
|
end;
|
||||||
finally
|
finally
|
||||||
|
Reference in New Issue
Block a user