// ************************************************************************ //
// The types declared in this file were generated from data read from the
// WSDL File described below:
// WSDL     : http://192.168.1.189:8080/HYWL/services/WebsCtl?wsdl
// Encoding : UTF-8
// Version  : 1.0
// (2011-8-1 11:12:15 - 1.33.2.5)
// ************************************************************************ //unit WebsCtl;interfaceuses 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"
  // !:boolean         - "http://www.w3.org/2001/XMLSchema"
  ArrayOfString = array of WideString;          { "http://webs.hd.JavaSource" }
  ArrayOfArrayOfString = array of ArrayOfString;   { "http://webs.hd.JavaSource" }  // ************************************************************************ //
  // Namespace : http://webs.hd.JavaSource
  // transport : http://schemas.xmlsoap.org/soap/http
  // style     : document
  // binding   : WebsCtlHttpBinding
  // service   : WebsCtl
  // port      : WebsCtlHttpPort
  // URL       : http://192.168.1.189:8080/HYWL/services/WebsCtl
  // ************************************************************************ //
  WebsCtlPortType = interface(IInvokable)
  ['{26A92935-F133-727A-F709-1BCFAF9F124F}']
    function  delTuoyun(const tyid: ArrayOfString): Boolean; stdcall;
    function  getTdInfo: ArrayOfArrayOfString; stdcall;
    function  delJzxFromPT(const jzxid: ArrayOfString): Boolean; stdcall;
    function  insertJzx(const info: ArrayOfArrayOfString): Boolean; stdcall;
    function  insertJcFy(const info: ArrayOfArrayOfString): Boolean; stdcall;
    function  getJcInfo(const ckid: WideString): ArrayOfArrayOfString; stdcall;
    function  getJzxInfo(const tyid: WideString): ArrayOfArrayOfString; stdcall;
    function  updateJzxFromCD(const info: ArrayOfArrayOfString): Boolean; stdcall;
    function  getTuoyunInfo(const cdid: WideString): ArrayOfArrayOfString; stdcall;
    function  delDc(const dcid: ArrayOfString): Boolean; stdcall;
    function  getDcInfo: ArrayOfArrayOfString; stdcall;
    function  updateJc(const info: ArrayOfArrayOfString): Boolean; stdcall;
    function  delJc(const jcid: ArrayOfString): Boolean; stdcall;
    function  updateTd(const tdid: WideString; const inSql: WideString; const upSql: WideString): Boolean; stdcall;
    function  updateJzxFromPT(const info: ArrayOfArrayOfString): Boolean; stdcall;
    function  delTd(const tdid: ArrayOfString): Boolean; stdcall;
    function  updateTuoyun(const info: ArrayOfArrayOfString): Boolean; stdcall;
    function  delJzxFromCD(const cdsysid: ArrayOfString): Boolean; stdcall;
    function  updateInfo(const sql: WideString): Boolean; stdcall;
  end;function GetWebsCtlPortType(UseWSDL: Boolean=System.False; Addr: string=''; HTTPRIO: THTTPRIO = nil): WebsCtlPortType;
implementationfunction GetWebsCtlPortType(UseWSDL: Boolean; Addr: string; HTTPRIO: THTTPRIO): WebsCtlPortType;
const
  defWSDL = 'http://192.168.1.189:8080/HYWL/services/WebsCtl?wsdl';
  defURL  = 'http://192.168.1.189:8080/HYWL/services/WebsCtl';
  defSvc  = 'WebsCtl';
  defPrt  = 'WebsCtlHttpPort';
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 WebsCtlPortType);
    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(WebsCtlPortType), 'http://webs.hd.JavaSource', 'UTF-8');
  InvRegistry.RegisterDefaultSOAPAction(TypeInfo(WebsCtlPortType), '');
  InvRegistry.RegisterInvokeOptions(TypeInfo(WebsCtlPortType), ioDocument);
  RemClassRegistry.RegisterXSInfo(TypeInfo(ArrayOfString), 'http://webs.hd.JavaSource', 'ArrayOfString');
  RemClassRegistry.RegisterXSInfo(TypeInfo(ArrayOfArrayOfString), 'http://webs.hd.JavaSource', 'ArrayOfArrayOfString');end.
procedure TForm1.Button1Click(Sender: TObject);
var
  mysoap: WebsCtlPortType;
  rs:ArrayOfArrayOfString;
begin
  try
    mysoap:= (HTTPRIO1 as WebsCtlPortType);
    mysoap:=GetWebsCtlPortType(false,'');
    rs:=mysoap.getJcInfo('11');
  except
  end;
end;