Example #1
0
 private static AddRequest BuildFactoryRequest(IdmResource resource)
 {
     var values = from attribute in resource.Attributes
                  from val in attribute.Values
                  select new AttributeTypeAndValue(attribute.Name, val);
     var factoryRequest = new AddRequest { AttributeTypeAndValue = values.ToArray() };
     return factoryRequest;
 }
Example #2
0
 private static Message CreateSoapMessage(AddRequest factoryRequest)
 {
     var createRequestMessage = Message.CreateMessage(MessageVersion.Default,
         SoapConstants.CreateAction,
         factoryRequest,
         new SoapXmlSerializer(typeof(AddRequest))
         );
     return createRequestMessage;
 }