// ************************************************************************ // // The types declared in this file were generated from data read from the // WSDL File described below: // WSDL : http://192.168.1.5:8086/webservice/DsWebService.asmx?WSDL // Encoding : utf-8 // Version : 1.0 // (2014-07-23 13:57:05 - 1.33.2.5) // ************************************************************************ // unit DsWebService; 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" // ************************************************************************ // // Namespace : DsWebService // soapAction: DsWebService/%operationName% // transport : http://schemas.xmlsoap.org/soap/http // binding : DsWebServiceSoap // service : DsWebService // port : DsWebServiceSoap // URL : http://192.168.1.5:8086/webservice/DsWebService.asmx // ************************************************************************ // DsWebServiceSoap = interface(IInvokable) ['{48489AE1-E4DD-CDDC-2A95-DDE49A9C85D0}'] function HelloWorld: WideString; stdcall; function UpdateCustomMainfast(const Xdoc: WideString; const XdocAfter: WideString; const Corpid: WideString; const SenderOp: WideString; const SenderHandphone: WideString; const SenderEmail: WideString; const SenderFax: WideString; const Mblno: WideString): WideString; stdcall; function LoadCustomMainfastStatus(const Mblno: WideString): WideString; stdcall; end; function GetDsWebServiceSoap(UseWSDL: Boolean=System.False; Addr: string=''; HTTPRIO: THTTPRIO = nil): DsWebServiceSoap; implementation function GetDsWebServiceSoap(UseWSDL: Boolean; Addr: string; HTTPRIO: THTTPRIO): DsWebServiceSoap; const defWSDL = 'http://221.3.83.5:8090/webservice/DsWebService.asmx?WSDL'; defURL = 'http://221.3.83.5:8090/webservice/DsWebService.asmx'; defSvc = 'DsWebService'; defPrt = 'DsWebServiceSoap'; 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 DsWebServiceSoap); 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(DsWebServiceSoap), 'DsWebService', 'utf-8'); InvRegistry.RegisterDefaultSOAPAction(TypeInfo(DsWebServiceSoap), 'DsWebService/%operationName%'); InvRegistry.RegisterInvokeOptions(TypeInfo(DsWebServiceSoap), ioDocument); end.