2012-01-21 31 views

回答

1

首先,您需要使用「DelivConfirmCertifyV3.0Request」,而不是「DeliveryConfirmationV3.0Request」在XML提交測試請求,然後使用「DelivConfirmCertifyV3」的API名稱,而不是「DeliveryConfirmationV3」的

1

你的URL字符串應爲格式

string url = "?API=DeliveryConfirmationV3&XML=<DeliveryConfirmationV3.0Request USERID=\"{0}\" PASSWORD=\"{1}\"> 
<Option>{2}</Option> 
<ImageParameters>4X6LABEL</ImageParameters> 
<FromName>{3}</FromName> 
<FromFirm>{4}</FromFirm> 
<FromAddress1>{5}</FromAddress1> 
<FromAddress2>{6}</FromAddress2> 
<FromCity>{7}</FromCity> 
<FromState>{8}</FromState> 
<FromZip5>{9}</FromZip5> 
<FromZip4>{10}</FromZip4> 
<ToName>{11}</ToName> 
<ToFirm>{12}</ToFirm> 
<ToAddress1>{13}</ToAddress1> 
<ToAddress2>{14}</ToAddress2> 
<ToCity>{15}</ToCity> 
<ToState>{16}</ToState> 
<ToZip5>{17}</ToZip5> 
<ToZip4>{18}</ToZip4> 
<WeightInOunces>{19}</WeightInOunces> 
<ServiceType>{20}</ServiceType> 
<POZipCode>{21}</POZipCode> 
<ImageType>{22}</ImageType> 
<LabelDate>{23}</LabelDate> 
<CustomerRefNo>{24}</CustomerRefNo> 
<AddressServiceRequested>{25}</AddressServiceRequested> 
<SenderName>{26}</SenderName> 
<SenderEMail>{27}</SenderEMail> 
<RecipientName>{28}</RecipientName> 
<RecipientEMail>{29}</RecipientEMail> 
</DeliveryConfirmationV3.0Request>";