処理ページがあり、関数プロセスをすべて Web サービス経由で実行したい (C# ウィンドウ フォーム アプリに Web 参照を追加する)。以下の私のコード:
var context = new ModuleABCService.Screen() // limk web services: http://localhost:8686/soap/DMSBL009.asmx
{
CookieContainer = new CookieContainer(),
AllowAutoRedirect = true,
EnableDecompression = true,
Timeout = 60000
};
var loginResult = context.Login(string.Format("{0}@{1}", val.UserName, company), val.Password);
if (loginResult.Code != ErrorCode.OK)
{
throw new Exception(string.Format("Can not login {0}", company));
}
Content content = context.GetSchema();
context.Clear();
context.Submit(
new Command[]
{
content.Actions.ProcessAll
}
);
そして、例外メッセージが表示されました: System.Web.Services.Protocols.SoapExceptio:n サーバーは要求を処理できませんでした。---> PX.Data.PXUndefinedCompanyException: 要求に対して適切な会社 ID を特定できません。c:\Builders\4_10-2014_4_28-21_21_17-Full\Scripts\BuildTemp\NetTools\PX.Data\Database\Common\DbProviderBaseCompanies.cs:line 471 の PX.Data.PXDatabaseProviderBase.getCompanyID (String tableName, companySetting& setting) で。 ..
以前にこのエラーが発生したことがありますか? 何か提案をお願いできますか?どうもありがとう!