使用ProtoBehavior和多个参数调用WCF服务
这件事让我感到困惑,我希望这是我一个愚蠢的疏忽。当我调用下面的web服务时,如果遇到null参数,那么下面的所有参数都是null(或者数字为零) 提前谢谢。使用ProtoBehavior和多个参数调用WCF服务,wcf,protobuf-net,Wcf,Protobuf Net,这件事让我感到困惑,我希望这是我一个愚蠢的疏忽。当我调用下面的web服务时,如果遇到null参数,那么下面的所有参数都是null(或者数字为零) 提前谢谢。 Mike我可以确认一下吗?这是否使用WCF?有什么特别的约束力吗?简单地说,我可以尝试复制它…我可以确认-这是使用WCF吗?有什么特别的约束力吗?只是为了让我能复制它。。。 [OperationContract, ProtoBehavior] [ServiceKnownType(typeof(ServiceFault))] [Fault
Mike我可以确认一下吗?这是否使用WCF?有什么特别的约束力吗?简单地说,我可以尝试复制它…我可以确认-这是使用WCF吗?有什么特别的约束力吗?只是为了让我能复制它。。。
[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);
<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>