diff --git a/wst/trunk/server_service_soap.pas b/wst/trunk/server_service_soap.pas index bea0a26eb..1670f0f1c 100644 --- a/wst/trunk/server_service_soap.pas +++ b/wst/trunk/server_service_soap.pas @@ -76,13 +76,18 @@ end; { TSOAPFormatter } procedure TSOAPFormatter.BeginCallResponse(Const AProcName,ATarget:string); +var + locOldStyle : TSOAPDocumentStyle; begin if ( FCallContext = nil ) then FCallContext := TSimpleCallContext.Create(); Clear(); Prepare(); WriteHeaders(FCallContext); - BeginScope('Body',sSOAP_ENV,'',stObject,asNone); + locOldStyle := Style; + Style := Document; + BeginScope('Body',sSOAP_ENV,'',stObject,asNone); + Style := locOldStyle; BeginScope(AProcName + 'Response',ATarget,'',stObject,asNone); end;