locked
Service Correlation - Cannot find a path to the member when generating the XPath query RRS feed

  • Question

  • Hi all,

    I have a xamlx which receives a parameter of type BaseRequest, which is written as follows:

    [DataContract]
    
    public class BaseRequest: BaseClass
    
    {
    
    }
    
    [DataContract]
    
    public class BaseClass
    
    {
    
       [DataMember]
    
       public Guid CustomIdentifier {get;set;}
    
    }


    On the first receive activity of the xamlx I try to correlate with the CustomIdentifier property and it tells me "Service Correlation - Cannot find a path to the member when generating the XPath query". If I rewrite BaseRequest as follows it works:

    [DataContract]
    
    public class BaseRequest: BaseClass
    
    {
    
      [DataMember]
    
       public Guid CustomIdentifier {get;set;}
    
    }

    Is there any workaround for this?

    I know changing the BaseRequest works but my purpose is to have a base class that defines some properties to share among several request classes.


    Has as much of exciting as of frustrating - this is programming!

    Wednesday, February 29, 2012 4:25 PM

Answers

  • Solved by using IsWrapped=false on MessageContract and setting manually the XPath on the correlation.
    • Marked as answer by pacojones Thursday, March 22, 2012 12:22 PM
    Thursday, March 22, 2012 12:22 PM