【delphi开源代码栏目提醒】:本文主要为网学会员提供Iwsgetmp32.pas,希望对需要Iwsgetmp32.pas网友有所帮助,学习一下!
// ************************************************************************ //
// The types declared in this file were generated from data read from the
// WSDL File described below:
// WSDL : http://localhost:8081/pwsavibyarray.wsbytednyarray/wsdl/Iwsgetmp3
// Encoding : utf-8
// Version : 1.0
// (2004-8-9 13:20:17 - 1.33.2.5)
// ************************************************************************ //
unit Iwsgetmp32;
interface
uses InvokeRegistry, SOAPHTTPClient, Types, XSBuiltIns;
type
// ************************************************************************ //
// The following types, referred to in the WSDL document are not being represented
// in this file. They are either aliases[@] of other types represented or were referred
// to but never[!] declared in the document. The types from the latter category
// typically map to predefined/known XML or Borland types; however, they could also
// indicate incorrect WSDL documents that failed to declare or import a schema type.
// ************************************************************************ //
// !:string - "http://www.w3.org/2001/XMLSchema"
// !:TStringDynArray - "http://www.borland.com/namespaces/Types"
// !:int - "http://www.w3.org/2001/XMLSchema"
// !:base64Binary - "http://www.w3.org/2001/XMLSchema"
// ************************************************************************ //
// Namespace : urn:wsbytedynarrayIntf-Iwsgetmp3
// soapAction: urn:wsbytedynarrayIntf-Iwsgetmp3#%operationName%
// transport : http://schemas.
xmlsoap.org/soap/http
// style : rpc
// binding : Iwsgetmp3binding
// service : Iwsgetmp3service
// port : Iwsgetmp3Port
// URL : http://localhost:8081/pwsavibyarray.wsbytednyarray/soap/Iwsgetmp3
// ************************************************************************ //
Iwsgetmp3 = interface(IInvokable)
['{16369E3A-6D7B-F51C-B90E-5B91222F403E}']
function getfilename(out icount: Integer): TStringDynArray; stdcall;
function getfilebydynarray(const afilename: WideString; out isize: Integer): TByteDynArray; stdcall;
end;
function GetIwsgetmp3(UseWSDL: Boolean=System.False; Addr: string=''; HTTPRIO: THTTPRIO = nil): Iwsgetmp3;
implementation
function GetIwsgetmp3(UseWSDL: Boolean; Addr: string; HTTPRIO: THTTPRIO): Iwsgetmp3;
const
defWSDL = 'http://localhost:8081/pwsavibyarray.wsbytednyarray/wsdl/Iwsgetmp3';
defURL = 'http://localhost:8081/pwsavibyarray.wsbytednyarray/soap/Iwsgetmp3';
defSvc = 'Iwsgetmp3service';
defPrt = 'Iwsgetmp3Port';
var
RIO: THTTPRIO;
begin
Result := nil;
if (Addr = '') then
begin
if UseWSDL then
Addr := defWSDL
else
Addr := defURL;
end;
if HTTPRIO = nil then
RIO := THTTPRIO.Create(nil)
else
RIO := HTTPRIO;
try
Result := (RIO as Iwsgetmp3);
if UseWSDL then
begin
RIO.WSDLLocation := Addr;
RIO.Service := defSvc;
RIO.Port := defPrt;
end else
RIO.URL := Addr;
finally
if (Result = nil) and (HTTPRIO = nil) then
RIO.Free;
end;
end;
initialization
InvRegistry.RegisterInterface(TypeInfo(Iwsgetmp3), 'urn:wsbytedynarrayIntf-Iwsgetmp3', 'utf-8');
InvRegistry.RegisterDefaultSOAPAction(TypeInfo(Iwsgetmp3), 'urn:wsbytedynarrayIntf-Iwsgetmp3#%operationName%');
end.