-2
我與使用WSDL導入嚮導,以c漂亮跛腳進口++ Builder中(XE6專業版) 但finnally管理,以正確導入EBAY WSDL:WSDL與C++ Builder的嚮導(C++ Builder的XE6臨)
http://developer.ebay.com/webservices/latest/ebaySvc.wsdl
我可以成功運行簡單的調用,但在嘗試設置(或獲取)Enum值時會出現問題。 在這一點上,我編譯後得到美化訪問衝突。 相關的代碼:
void __fastcall TEbay::IndexBClick(TObject *Sender)
{
CallName="GetMyeBaySelling";
UnicodeString PUrl = MakeLink();
_di_eBayAPIInterface EbayCall = GeteBayAPIInterface(false,PUrl,HTP1);
CustomSecurityHeaderType *HDR = new RequesterCredentials;
HDR->eBayAuthToken=AuthToken;
HDR->Credentials = new UserIdPasswordType();
HDR->Credentials->AppId=AppId;
HDR->Credentials->DevId=DevId;
HDR->Credentials->AuthCert=CertId;
_di_ISOAPHeaders headers = EbayCall;
HTP1->SOAPHeaders->Send(HDR);
HTP1->SOAPHeaders->SetOwnsSentHeaders(True);
//GeteBayOfficialTimeRequest TR = new GeteBayOfficialTimeRequestType();
GetMyeBaySellingRequest *TR = new GetMyeBaySellingRequest();
GetMyeBaySellingResponse *ER =new GetMyeBaySellingResponse();
//ShowMessage(PUrl);
TR->Version=Version;
TR->ErrorLanguage="en_GB";
// This one raises error
TR->SoldList->OrderStatusFilter=OrderStatusFilterCodeType::All;
ShowMessage("2");
ER = EbayCall->GetMyeBaySelling(TR);
TDateTime ACK = ER->Timestamp->AsDateTime;
ShowMessage(UnicodeString("ODP:")+ACK);
// EbayCall->GeteBayOfficialTime(ER);
delete TR;
delete ER;
delete HDR;
}
衝突是當我試圖建立OrderStatusFilter或任何枚舉值。
聲明:(ebasvc.h):
enum class OrderStatusFilterCodeType /* "urn:ebay:apis:eBLBaseComponents"[GblSmpl] */
{
All,
AwaitingPayment,
AwaitingShipment,
PaidAndShipped,
CustomCode
};
class OrderStatusFilterCodeType_TypeInfoHolder : public TObject {
OrderStatusFilterCodeType __instanceType;
public:
__published:
__property OrderStatusFilterCodeType __propType = { read=__instanceType };
};
我惹毛了媒體鏈接這一點,可能有人幫我跑這$#^ &#$^&?
問候
YESSS!你很棒:)我錯過了SoldList是ItemListCustomizationType Object。我試圖初始化ItemListCustomizationType「獨立」,但它不會做這項工作。現在它的作用就像是一種傷害。謝謝! – Vancalar 2014-08-28 18:06:19
Eemm我的意思是魅力:) – Vancalar 2014-08-28 18:12:25