2016-04-13 9 views
0

5.30.001用の新しいOzLINK_WSE Webサービスエンドポイントを作成し、電子メールアドレスに基づいて検索を可能にするためにOzCustomerの定義を作成しました。我々は、2件の異なる検索を試してみましたが、それらのどちらも働いているお客様の電子メールによる検索

WSE Definition

: -

最初(GetListの)

var cust = c.GetList(new OzCustomer { Email = new StringValue { Value = "[email protected]" } }, false).Cast<OzCustomer>(); 

このエラーを返します

An unhandled exception of type 'System.ServiceModel.FaultException' occurred in mscorlib.dll 
Additional information: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> 
PX.Api.ContractBased.OperationDoesNotSupportValuesException: Operation does not support values. 
    at PX.Api.ContractBased.EntityService.GetList(EntityGateBase gate, String version, String name, 
    EntityImpl entity, Boolean returnFullEntities, Boolean ignoreValueFields, PXGraph graph) 
    at PX.Api.ContractBased.Soap.EntityGate.GetList(Entity entity, Boolean returnFullEntities) 
    --- End of inner exception stack trace --- 

秒(Get)

var cust = c.Get(new OzCustomer { Email = new StringValue { Value = "[email protected]" } }); 

誰かが、我々は電子メールアドレスを経由して連絡先を検索し、これらの問題を回避することができますどのようにアドバイスしてもらえ

An unhandled exception of type 'System.ServiceModel.FaultException' occurred in mscorlib.dll 
Additional information: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> PX.Api.ContractBased.MoreThanOneEntitySatisfiesTheConditionException: More than one entity satisfies the condition. 
    at PX.Api.ContractBased.EntityService.Get(EntityGateBase gate, String version, String name, EntityImpl entity, Boolean returnFullEntity, PXGraph graph) 
    at PX.Api.ContractBased.Soap.EntityGate.Get(Entity entity) 
    --- End of inner exception stack trace --- 

異なるエラーを返します。 GetList

答えて

0

利用StringSearch代わりのStringValue

var cust = c 
    .GetList(
    new OzCustomer { 
     Email = new StringSearch { Value = "[email protected]" } 
    }, false) 
    .Cast<OzCustomer>(); 
+0

が働いたありがとう –

関連する問題