0
안녕하세요, 저는이 코드를 사용하여 webservice에서 가져 오기 위해 노력하고 있습니다. 이러한 오류를 기억하고 있으며 이유를 모르겠습니다. 내가 ...이름 서비스가 현재 컨텍스트 및 WebReferrence 오류에 존재하지 않습니다.
오류 모든 노력을했다 :
The name 'service' does not exist in the current context
및
WebReference.CheckPartStatus.Parts' cannot be used like a method.
내 코드 : 음
string CustomerID = "5943197";
// 1off
WebReference.WebServiceTyped ws = new WebReference.WebServiceTyped();
WebReference.CheckPartStatus PQ = new WebReference.CheckPartStatus();
string Parts = "";
string PartNumber = Parts;
string PriceSum = null;
long QtySum = 0;
PartNumber = "RS5117";
if (PartNumber == "RS5117")
{
PQ = ws.CheckPartNumberStatus(PartNumber, CustomerID, "1,6,8,9,112", "", "", "");
PriceSum = String.Format(PQ.Parts(0).Cost, "####.00");
Label1.Text = PriceSum;
}