FIM web service connector - integer value is not passed to the web service RRS feed

  • Question

  • Hi,

    I'm using declarative provisioning rules and web service connector.

    The data flow is as follows:

    HR_webservice_MA (source) -> AnotherSystem_webservice_MA

    I have designed the Full Import workflow for HR MA and Full Import, Export: Add, Modify for AnotherSystem MA.

    I have an interesting issue with Modify workflow web service.

    In web service I have defined a user:

    public class SAP_AD_User



            public Int32 UserId { get; set; }     [anchor]


            public string EmployeeNumber { get; set; }


            public string FirstName { get; set; }


            public string LastName { get; set; }


            public string FullName { get; set; }


            public string UserName { get; set; }


            public string JobTitle { get; set; }


            public string Company { get; set; }


    In Modify workflow I call a web service method ModifyDVSUser(SAP_AD_User user):

    In Foreach AnchorAttribute -> Switch<AnchorAttributeNameWrapper> -> I assign user.UserId = Convert.ToInt32(anchor.Value). And when I put out the value within the log element before calling the web service, I get the correct value. I also write out the type and it is System.Int32.

    But in web service the value is not assigned only for UserId attribute - it is always 0 (the other string attributes are correctly assigned with the values). First I thought it may be somehow related that it is an anchor value, but when I changed the UserId type to string (in web service and in workflow), then the value was passed. So it is somehow related to the integer type. Should only string values be passed to the web service or am I missing something?

    Thank you in advance!

    Wednesday, May 29, 2013 8:42 AM

All replies

  • Is your SAP_AD_User class decorated with [DataContract()] for proper serialization?

    Everything else looks fine to me.

    Wednesday, May 29, 2013 12:26 PM
  • Yes, my class SAP_AD_User has a [DataContract].

    When I test the web service method with wcftestclient everything works as it should.

    Any other thoughts?

    Wednesday, May 29, 2013 7:33 PM