これは私を困惑させ、それが私の側のばかげた見落としであることを望んでいます. 次の Web サービスを呼び出すときに、null パラメーターが検出されると、後続のすべてのパラメーターが null (または数値の場合はゼロ) になります。
[OperationContract, ProtoBehavior]
[ServiceKnownType(typeof(ServiceFault))]
[FaultContract(typeof(ServiceFault))]
PersonProfileMessagePart Create(ObjectId person, ObjectId industry, int yearsInIndustry, ObjectId occupation, string occupationFreeText,
int yearsInOccupation, string maritalStatus, string educationLevel,
List<ChildMessagePart> children, FinancialProfileMessagePart financialProfile,
List<ObjectId> traits);
たとえば、person
とyearsInIndustry
が存在するが が存在しない場合industry
、 を含むすべてのパラメータがyearsInIndustry
デフォルトで null/ゼロになります。適用する必要がある追加の属性はありますか?
{編集} 悪い。マーク、それはカスタム バインディングを備えた WCF です。
<customBinding>
<binding name="ServiceFedBinding">
<security authenticationMode="SecureConversation">
<secureConversationBootstrap authenticationMode="IssuedToken">
<issuedTokenParameters tokenType="http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1">
<issuer address="http://links-dev:91/security/authentication/securetokenservice.svc/" binding="wsHttpBinding">
<identity>
<dns value="LINKS"/>
</identity>
</issuer>
<issuerMetadata address="http://links-dev:91/security/authentication/securetokenservice.svc/mex"/>
</issuedTokenParameters>
</secureConversationBootstrap>
</security>
前もって感謝します。マイク