请问,delphi调用Java写的Webservers接口,传入参数为什么没有生成类数据 在java接口里面参数定义的是数据,结果在Delphi里就生成的是类

时间:2022-07-20 17:34:04
请问,delphi调用Java写的Webservers接口,传入参数为什么没有生成类数据
在java接口里面参数定义的是数据,结果在Delphi里就生成的是类,不是数组的。



7 个解决方案

#1


顶啊!!!!!

#2


有没有人会啊

#3


也许是框架不兼容,不能直接调用

#4


有点难度,至少支持java传递数据格式。

#5


没有人出现这种情况吗?

一个webservser地址包含多个接口,有返回值的,有类数组,但是传值的没有生成类数组

#6


// ************************************************************************ //
// The types declared in this file were generated from data read from the
// WSDL File described below:
// WSDL     : http://10.5.85.11:8180/noil/webServices/convenientService?wsdl
// Encoding : UTF-8
// Codegen  : [wfDebug,wfMapArraysToClasses,wfUseSerializerClassForAttrs]
// Version  : 1.0
// (2012-11-20 9:20:27 - 1.33.2.5)
// ************************************************************************ //

unit convenientService2;

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"
  // !:int             - "http://www.w3.org/2001/XMLSchema"
  // !:long            - "http://www.w3.org/2001/XMLSchema"
  // !:dateTime        - "http://www.w3.org/2001/XMLSchema"
  // !:double          - "http://www.w3.org/2001/XMLSchema"

  addFindProductInfo   = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  addFindInnerOrgInfo  = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  addFindCategoryInfo  = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  addFindBrandInfo     = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  addFindBarCode       = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  jhDetail             = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  jhHead               = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  addAcceptanceOrder   = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  returnMessage        = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntCat               = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntOrg               = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntSkuTcRate         = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntBdDetail          = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntLxTcRate          = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntLxTc              = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntKxRate            = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntOutlayClause      = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntContract          = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  spglProductBarcode   = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  spglProductCoefficient = class;               { "http://convenient.service.interfaces.ptpec.com/" }
  spglProductPicInfo   = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  spglProductSpecInfo  = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  spglProductInfo      = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntPlu               = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  contract             = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  addContract          = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntOutLayBodyXg      = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntOutlayBodyKx      = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntOutLayHead        = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  addContractCredit    = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntCxBody            = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntCxHead            = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  addContractOffer     = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntTcRateBody        = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntTcRateHead        = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  addContractRate      = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  ppBrandInfo          = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  spplCategoryInfo     = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  innerOrgInfo         = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  productSpecInfoForm  = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  productInfoForm      = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  adjustDetail         = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  adjustHead           = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  addPriceAdjustOrder  = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cgDetail             = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  ordBodyShop          = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cgHead               = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  addPurchasingOrder   = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  thDetail             = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  thHead               = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  addReturnOrder       = class;                 { "http://convenient.service.interfaces.ptpec.com/" }

#7



  // ************************************************************************ //
  // Namespace : http://convenient.service.interfaces.ptpec.com/
  // Serializtn: [xoLiteralParam]
  // ************************************************************************ //
  addFindProductInfo = class(TRemotable)
  private
    FentityNo: WideString;
    FnSeq: Integer;
    Fnum: Int64;
    FuserName: WideString;
    Fpassword: WideString;
  public
    constructor Create; override;
  published
    property entityNo: WideString read FentityNo write FentityNo;
    property nSeq: Integer read FnSeq write FnSeq;
    property num: Int64 read Fnum write Fnum;
    property userName: WideString read FuserName write FuserName;
    property password: WideString read Fpassword write Fpassword;
  end;



  // ************************************************************************ //
  // Namespace : http://convenient.service.interfaces.ptpec.com/
  // Serializtn: [xoLiteralParam]
  // ************************************************************************ //
  addFindInnerOrgInfo = class(TRemotable)
  private
    FentityNo: WideString;
    FnSeq: Integer;
    Fnum: Int64;
    FuserName: WideString;
    Fpassword: WideString;
  public
    constructor Create; override;
  published
    property entityNo: WideString read FentityNo write FentityNo;
    property nSeq: Integer read FnSeq write FnSeq;
    property num: Int64 read Fnum write Fnum;
    property userName: WideString read FuserName write FuserName;
    property password: WideString read Fpassword write Fpassword;
  end;



  // ************************************************************************ //
  // Namespace : http://convenient.service.interfaces.ptpec.com/
  // Serializtn: [xoLiteralParam]
  // ************************************************************************ //
  addFindCategoryInfo = class(TRemotable)
  private
    FentityNo: WideString;
    FnSeq: Integer;
    Fnum: Int64;
    FuserName: WideString;
    Fpassword: WideString;
  public
    constructor Create; override;
  published
    property entityNo: WideString read FentityNo write FentityNo;
    property nSeq: Integer read FnSeq write FnSeq;
    property num: Int64 read Fnum write Fnum;
    property userName: WideString read FuserName write FuserName;
    property password: WideString read Fpassword write Fpassword;
  end;



  // ************************************************************************ //
  // Namespace : http://convenient.service.interfaces.ptpec.com/
  // Serializtn: [xoLiteralParam]
  // ************************************************************************ //
  addFindBrandInfo = class(TRemotable)
  private
    FentityNo: WideString;
    FnSeq: Integer;
    Fnum: Int64;
    FuserName: WideString;
    Fpassword: WideString;
  public
    constructor Create; override;
  published
    property entityNo: WideString read FentityNo write FentityNo;
    property nSeq: Integer read FnSeq write FnSeq;
    property num: Int64 read Fnum write Fnum;
    property userName: WideString read FuserName write FuserName;
    property password: WideString read Fpassword write Fpassword;
  end;



  // ************************************************************************ //
  // Namespace : http://convenient.service.interfaces.ptpec.com/
  // Serializtn: [xoLiteralParam]
  // ************************************************************************ //
  addFindBarCode = class(TRemotable)
  private
    FentityNo: WideString;
    FnSeq: Integer;
    Fnum: Int64;
    FuserName: WideString;
    Fpassword: WideString;
  public
    constructor Create; override;
  published
    property entityNo: WideString read FentityNo write FentityNo;
    property nSeq: Integer read FnSeq write FnSeq;
    property num: Int64 read Fnum write Fnum;
    property userName: WideString read FuserName write FuserName;
    property password: WideString read Fpassword write Fpassword;
  end;

#1


顶啊!!!!!

#2


有没有人会啊

#3


也许是框架不兼容,不能直接调用

#4


有点难度,至少支持java传递数据格式。

#5


没有人出现这种情况吗?

一个webservser地址包含多个接口,有返回值的,有类数组,但是传值的没有生成类数组

#6


// ************************************************************************ //
// The types declared in this file were generated from data read from the
// WSDL File described below:
// WSDL     : http://10.5.85.11:8180/noil/webServices/convenientService?wsdl
// Encoding : UTF-8
// Codegen  : [wfDebug,wfMapArraysToClasses,wfUseSerializerClassForAttrs]
// Version  : 1.0
// (2012-11-20 9:20:27 - 1.33.2.5)
// ************************************************************************ //

unit convenientService2;

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"
  // !:int             - "http://www.w3.org/2001/XMLSchema"
  // !:long            - "http://www.w3.org/2001/XMLSchema"
  // !:dateTime        - "http://www.w3.org/2001/XMLSchema"
  // !:double          - "http://www.w3.org/2001/XMLSchema"

  addFindProductInfo   = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  addFindInnerOrgInfo  = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  addFindCategoryInfo  = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  addFindBrandInfo     = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  addFindBarCode       = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  jhDetail             = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  jhHead               = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  addAcceptanceOrder   = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  returnMessage        = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntCat               = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntOrg               = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntSkuTcRate         = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntBdDetail          = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntLxTcRate          = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntLxTc              = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntKxRate            = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntOutlayClause      = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntContract          = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  spglProductBarcode   = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  spglProductCoefficient = class;               { "http://convenient.service.interfaces.ptpec.com/" }
  spglProductPicInfo   = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  spglProductSpecInfo  = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  spglProductInfo      = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntPlu               = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  contract             = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  addContract          = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntOutLayBodyXg      = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntOutlayBodyKx      = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntOutLayHead        = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  addContractCredit    = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntCxBody            = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntCxHead            = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  addContractOffer     = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntTcRateBody        = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cntTcRateHead        = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  addContractRate      = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  ppBrandInfo          = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  spplCategoryInfo     = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  innerOrgInfo         = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  productSpecInfoForm  = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  productInfoForm      = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  adjustDetail         = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  adjustHead           = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  addPriceAdjustOrder  = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cgDetail             = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  ordBodyShop          = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  cgHead               = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  addPurchasingOrder   = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  thDetail             = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  thHead               = class;                 { "http://convenient.service.interfaces.ptpec.com/" }
  addReturnOrder       = class;                 { "http://convenient.service.interfaces.ptpec.com/" }

#7



  // ************************************************************************ //
  // Namespace : http://convenient.service.interfaces.ptpec.com/
  // Serializtn: [xoLiteralParam]
  // ************************************************************************ //
  addFindProductInfo = class(TRemotable)
  private
    FentityNo: WideString;
    FnSeq: Integer;
    Fnum: Int64;
    FuserName: WideString;
    Fpassword: WideString;
  public
    constructor Create; override;
  published
    property entityNo: WideString read FentityNo write FentityNo;
    property nSeq: Integer read FnSeq write FnSeq;
    property num: Int64 read Fnum write Fnum;
    property userName: WideString read FuserName write FuserName;
    property password: WideString read Fpassword write Fpassword;
  end;



  // ************************************************************************ //
  // Namespace : http://convenient.service.interfaces.ptpec.com/
  // Serializtn: [xoLiteralParam]
  // ************************************************************************ //
  addFindInnerOrgInfo = class(TRemotable)
  private
    FentityNo: WideString;
    FnSeq: Integer;
    Fnum: Int64;
    FuserName: WideString;
    Fpassword: WideString;
  public
    constructor Create; override;
  published
    property entityNo: WideString read FentityNo write FentityNo;
    property nSeq: Integer read FnSeq write FnSeq;
    property num: Int64 read Fnum write Fnum;
    property userName: WideString read FuserName write FuserName;
    property password: WideString read Fpassword write Fpassword;
  end;



  // ************************************************************************ //
  // Namespace : http://convenient.service.interfaces.ptpec.com/
  // Serializtn: [xoLiteralParam]
  // ************************************************************************ //
  addFindCategoryInfo = class(TRemotable)
  private
    FentityNo: WideString;
    FnSeq: Integer;
    Fnum: Int64;
    FuserName: WideString;
    Fpassword: WideString;
  public
    constructor Create; override;
  published
    property entityNo: WideString read FentityNo write FentityNo;
    property nSeq: Integer read FnSeq write FnSeq;
    property num: Int64 read Fnum write Fnum;
    property userName: WideString read FuserName write FuserName;
    property password: WideString read Fpassword write Fpassword;
  end;



  // ************************************************************************ //
  // Namespace : http://convenient.service.interfaces.ptpec.com/
  // Serializtn: [xoLiteralParam]
  // ************************************************************************ //
  addFindBrandInfo = class(TRemotable)
  private
    FentityNo: WideString;
    FnSeq: Integer;
    Fnum: Int64;
    FuserName: WideString;
    Fpassword: WideString;
  public
    constructor Create; override;
  published
    property entityNo: WideString read FentityNo write FentityNo;
    property nSeq: Integer read FnSeq write FnSeq;
    property num: Int64 read Fnum write Fnum;
    property userName: WideString read FuserName write FuserName;
    property password: WideString read Fpassword write Fpassword;
  end;



  // ************************************************************************ //
  // Namespace : http://convenient.service.interfaces.ptpec.com/
  // Serializtn: [xoLiteralParam]
  // ************************************************************************ //
  addFindBarCode = class(TRemotable)
  private
    FentityNo: WideString;
    FnSeq: Integer;
    Fnum: Int64;
    FuserName: WideString;
    Fpassword: WideString;
  public
    constructor Create; override;
  published
    property entityNo: WideString read FentityNo write FentityNo;
    property nSeq: Integer read FnSeq write FnSeq;
    property num: Int64 read Fnum write Fnum;
    property userName: WideString read FuserName write FuserName;
    property password: WideString read Fpassword write Fpassword;
  end;