我是用delphi 调用以下地址,由于没做过,遇到些问题,谁能帮我写个例子?
http://www.nnzbzh.cn:6000/ZBXZXService?wsdl
这是地址,
// ************************************************************************ //
// The types declared in this file were generated from data read from the
// WSDL File described below:
// WSDL : http://www.nnzbzh.cn:6000/ZBXZXService?wsdl
// Encoding : utf-8
// Version : 1.0
// (2013-8-1 10:24:52 - 1.33.2.5)
// ************************************************************************ //
unit uZBXZXService;
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.
// ************************************************************************ //
// !:GetMes - "http://tempuri.org/"
// !:GetMesResponse - "http://tempuri.org/"
// !:GetMesLeng - "http://tempuri.org/"
// !:GetMesLengResponse - "http://tempuri.org/"
// !:inqTranFlow - "http://tempuri.org/"
// !:inqTranFlowResponse - "http://tempuri.org/"
// !:GetHBMD - "http://tempuri.org/"
// !:GetHBMDResponse - "http://tempuri.org/"
// !:GetAllMes - "http://tempuri.org/"
// !:GetAllMesResponse - "http://tempuri.org/"
// !:GetXZXMES - "http://tempuri.org/"
// !:GetXZXMESResponse - "http://tempuri.org/"
// !:GetHBMDSNUM - "http://tempuri.org/"
// !:GetHBMDSNUMResponse - "http://tempuri.org/"
//以下是我自己加的+++
GetHBMD = Class;
GetHBMDResponse = Class;
GetHBMDSNUM = Class;
GetHBMDSNUMResponse = Class;
GetHBMD = class(TSOAPHeader)
private
Fid: WideString;
Fcount: WideString;
FYZM: WideString;
public
published
property id: WideString read Fid write Fid;
property count: WideString read Fcount write Fcount;
property YZM: WideString read FYZM write FYZM;
end;
GetHBMDResponse = class(TSOAPHeader)
private
Freturn: WideString;
public
published
property return: WideString read Freturn write Freturn;
end;
GetHBMDSNUM = class(TSOAPHeader)
private
public
published
end;
GetHBMDSNUMResponse = class(TSOAPHeader)
private
Freturn: WideString;
public
published
property return: WideString read Freturn write Freturn;
end;
//以上是我自己加的———
// ************************************************************************ //
// Namespace : http://tempuri.org/
// soapAction: http://tempuri.org/IService/%operationName%
// transport : http://schemas.xmlsoap.org/soap/http
// binding : BasicHttpBinding_IService
// service : Service
// port : BasicHttpBinding_IService
// URL : http://www.nnzbzh.cn:6000/ZBXZXService
// ************************************************************************ //
IService = interface(IInvokable)
['{98ED6C0B-93D7-7F02-40EA-9A0E061E5A66}']
//function GetMes(const parameters: GetMes): GetMesResponse; stdcall;