Skip to content

Commit

Permalink
fixed: TIdSoapWebBroker: WSDL is not generated
Browse files Browse the repository at this point in the history
WSDL is generated for the service. Service anname is taken from URL
cutting `/wsdl*/` part, but not all ther servers set URL.
Let's rely on PATH_INFO.
  • Loading branch information
ashumkin committed Jan 22, 2015
1 parent bd28a20 commit 0ae9ae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/IdSoapWebBroker.pas
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ function TIdSoapWebBrokerWSDL.DispatchRequest(ASender: TObject; ARequest: TWebRe
LResponseStream := TStringStream.Create('');
try
FServer.GenerateWSDLPage(Copy(FWebDispatch.PathInfo, 1, Length(FWebDispatch.PathInfo) - 1),
copy(ARequest.URL, length(FWebDispatch.PathInfo), $FF),
copy(ARequest.PathInfo, length(FWebDispatch.PathInfo), $FF),
ARequest.Host + '/' + copy(FServer.WebDispatch.PathInfo, 1, length(FServer.WebDispatch.PathInfo)-1),
LResponseStream, LContentType);
AResponse.ContentType := LContentType;
Expand Down

0 comments on commit 0ae9ae5

Please sign in to comment.