3

コンソールアプリケーションで次のコードを使用します。

NetSuiteService service = new NetSuiteService();

Passport passport = new Passport();
passport.account = "TSTDRV976513";
passport.email = "hamzeh.soboh@para-solutions.com";
passport.password = "*******";

RecordRef role = new RecordRef();
role.internalId = "3";
passport.role = role;

Status status = service.login(passport).status;

次のエラーが発生します。

    The request failed with the error message:

    <html><head><title>302 Moved Temporarily</title></head>
    --
    --
    </html>

私は何かが足りないのですか?

4

2 に答える 2

5

クイック フィックスは、URL を webservices.na1.netsuite.com に変更します。

恒久的な修正 http://dreamxtream.wordpress.com/2012/11/23/new-data-centers-for-netsuite-accounts/

于 2013-03-05T09:20:42.173 に答える
0

上記のように URL を変更しても実際に機能します。または、サービス プロキシがリダイレクトに従うようにするだけで、NetSuite が正しい URL に自動的に移動します。

NetSuiteService service = new NetSuiteService();
service.AllowAutoRedirects = true;

私のために働くように見えました。

于 2015-04-17T16:41:16.180 に答える