Calling WCF Service with ProtoBehavior and Multiple Parameters

This puzzles me, and I was hoping it was a stupid mistake on my part. When I call the next web service, if a null parameter is encountered, then all of the following parameters are zero (or zero for numbers).

[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);

      

For example, if person

and yearsInIndustry

, but not industry

, all parameters, including yearsInIndustry

the default, are zero / zero. Is there an additional attribute I need to apply?

{edit} Sorry. Mark, this is WCF with a custom binding.

<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>

      

                                              

Thanks in advance. Mike

+2
wcf protobuf-net


source to share


No one has answered this question yet

Check out similar questions:

731
Best Practices for Securing REST API / Web Service
394
REST / SOAP Endpoints for WCF Service
392
WCF vs ASP.NET Web API
382
WCF - How to Increase Post Size
344
What are the differences between WCF and ASMX Web Services?
44
Correct way to communicate WSSE Usernametoken for SOAP webservice
3
SOAP header is not clear to .NET client when calling Webservice
2
How do I configure a WCF service to terminate the "wcf header security was not understood by the recipient" error generated by the wse3 client?
0
C # Webservice error: checking message security
0
How to create a service for a WSSE client in WCF



All Articles
Loading...
X
Show
Funny
Dev
Pics