XML 로깅을 활성화하는 방법은 무엇입니까? .Net DevKit V2에서 요청 및 응답 로깅을 활성화하는 방법
나는 나는 그래서 우리 InvoiceAdd 절차 에서 일반 설정 아래에 넣어추가 트랜잭션에 대한 HelloIntuitAnywhere에서 파생 된 테스트 프로그램에 코드를 넣어 http://docs.developer.intuit.com/0025_Intuit_Anywhere/0200_DevKits/0100_IPP_.NET_DevKit/0600_Logging
에서 지시 사항을 따르려고 노력
012에realmId = HttpContext.Current.Session["realm"].ToString();
accessToken = HttpContext.Current.Session["accessToken"].ToString();
accessTokenSecret = HttpContext.Current.Session["accessTokenSecret"].ToString();
consumerKey = ConfigurationManager.AppSettings["consumerKey"].ToString(CultureInfo.InvariantCulture);
consumerSecret = ConfigurationManager.AppSettings["consumerSecret"].ToString(CultureInfo.InvariantCulture);
intuitServiceType = (IntuitServicesType)HttpContext.Current.Session["intuitServiceType"];
oauthValidator = new OAuthRequestValidator(accessToken, accessTokenSecret, consumerKey, consumerSecret);
context = new ServiceContext(oauthValidator, realmId, intuitServiceType);
commonService = new DataServices(context);
////////////////////////////////////////////
//OAuthRequestValidator
oauthValidator = new OAuthRequestValidator("<<accessToken>>",
"<<accessTokenSecret>>",
"<<consumerKey>>",
"<<consumerSecret>>");
//ServiceContext
context = new ServiceContext(oauthValidator, realmId, IntuitServicesType.QBO);
context.EnableServiceRequestsLogging = true;
context.ServiceRequestLoggingLocation = @"c:\IPPlogs";
//////////////////////////////////////////
그러나 얻을 InvalidTokenException 3,516,
context = new ServiceContext(oauthValidator, realmId, IntuitServicesType.QBO);
있습니다 ServiceContext가 QBO에 대해 인스턴스화되면 DevKit은 영역의 기본 URL을 가져 오기 위해 호출합니다. http : //docs.develo per.intuit.com/0025_Intuit_Anywhere/0050_Data_Services/v2/0400_QuickBooks_Online/0100_Calling_Data_Services/0010_Getting_the_Base_URL 여기가 실패한 곳입니다. OAuth 토큰이 만료되었거나 호출하려는 영역에 유효하지 않습니다. API 탐색기에서 토큰을 테스트 할 수 있습니다. http://apiexplorer.developer.intuit.com/ –