Visual Studio (VS)에서 Netsuite 샘플 코드 또는 다른 게시물의 메서드를 인식하지 못합니다. 내 VS 화면의 스크린 샷 (http://www.rpmex.com/img/Untitled-1.jpg)을 첨부하고 있습니다. 코드는 주로 Netsuite documentation의 24 페이지에 있습니다.Netsuite Suitetalk 서비스 참조가 ASP.NET 및 Visual Studio에서 작동하지 않습니다.
VS에서 서비스 참조로 WSDL을 가져 왔습니다. 이 잘못한거야? 나는 서비스 레퍼런스와 웹 레퍼런스 사이에 구별이있는 게시물 (What is the difference between NetSuitePortType and NetSuiteService?)을 보았다. Netsuite 설명서는 웹 참조를 가져 오라고 말했지만 VS는 해당 용어가없는 것 같습니다.
VS는 RecordRef와 같은 일부 메소드를 인식하지만 NetsuiteService 또는 Passport에 대한 호출을 인식하지 못합니다. 스크린 샷에서 볼 수 있듯이 해당 용어에 밑줄이 표시되어 있습니다. Netsuite Service Reference의 작동하는 네임 스페이스가 있기 때문에 "netsuiteServiceReference.com.netsuite.webservices;"줄을 사용할 필요가 없다고 가정하지만 설명서에 그렇게 나와 있기 때문에 수행했습니다.
제 생각에는 VS가 유효한 모든 함수 호출을 인식해야한다는 것입니다. 내가 어디로 잘못 가고 있니? 내가 굵은 글씨로 다음과 같은 코드에서
은 VS 구문 오류로 밑줄 것을 (그것이 **에서 괄호두고있다)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using **netsuiteServiceReference.com**.netsuite.webservices;
namespace WebApplication5
{
namespace netsuiteServiceReference
{
**NetSuiteService** service = new **NetSuiteService**();
service.CookieContainer = new **CookieContainer**();
//invoke the login operation
Passport passport = new **Passport**();
passport.account = "TSTDRV96";
passport.email = "[email protected]";
RecordRef record = new **RecordRef**();
role.id = "3";
passport.record = record;
passport.password = "mypassword";
Status status = service.login(passport).status;
}
public partial class ThursdayTest : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
스택 오버플로에 오신 것을 환영합니다! 스크린 샷 대신 실제 서비스 코드를 텍스트로 포함하도록 프로젝트의 서비스 참조와 함께 질문을 편집하십시오. 또한 Netsuite 설명서 링크가 끊어졌습니다. 미래의 검색 사용자를위한 질문을 개선해 주셔서 감사합니다. –