none
integrate usm with Profile Manager? RRS feed

  • Question


  • i am working on USM on profilr manager.
    i have successfully crested user profile and i have a unique userid
    now i want integrate usm to profile manager but i am not able to integate it
    i am using userid and service id and sending to PM for creating Usm but its not working(no error is coming)\
    actually i am bit confuesd in usm code whatever there in help file in this there is no rdf coding for storing usm like create profile code(seprate cod for rdf)

     Note- i am creting usm after creating profile
    1) how it will store usm automatically in rdf(using usedid automatically or any configration change is required)
    2) Can you send me printScreen of rdf database where usm is there(service mapping with profile)

     public void CreateUsm(string UserId, string serviceID)
            {
                CsfProfile.CreateUserServiceMappingRequest request =
                    new CsfProfile.CreateUserServiceMappingRequest();

                request.UserId = UserId;
                request.ServiceId = serviceID;
                request.ServiceContext = "Hello, world - service.";
                request.ApplicationContext = "Hello, world - application.";
              
               // CsfClient.MessageSender sender = new CsfClient.MessageSender();
                // sender.SendSync<CsfProfile.CreateUserServiceMappingResponse>(msg);
                SendMessage(CsfProfile.ProfileManagerActions.CreateUserServiceMappingRequest, request);  
              
            }
     private void SendMessage(string action, object content)
            {
                CsfSdk.Message msg = CsfSdk.Message.CreateMessage(action, serviceUri, content);

                // Add any credential and policy information required
                // by the Profile Manager.
                msg.Header.Security.Add(new CsfSecurity.UsernameToken(
             "ProfileUser", Password, CsfSecurity.PasswordOption.SendPlainText));
                msg.Header.Addressing.ReplyTo = new CsfSdk.Addressing.EndpointReference(clientUri);
                CsfClient.MessageSender sender = new CsfClient.MessageSender();

               sender.SendAsync(msg);

            }

            public void CreateServiceMappingResponseHandler(CsfProfile.CreateUserServiceMappingResponse response)
            {
               cusmResponse = handle;
                throw new Exception("The method or operation is not implemented.");

                // Add application specific handler implementation here.
            }

    And the Trace file is
     <?xml version="1.0" encoding="utf-8" ?>
    - <log>
    - <inputMessage utc="10/18/2007 10:16:19 AM" messageId="urn:uuidBig Smile9fa16d6-83fa-4069-9ca4-39c33f9f074f">
    - <processingStep description="Unprocessed message">
    - <env:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:env="http://www.w3.org/2003/05/soap-envelope">
    - <env:Header>
      <wsa:Action>http://Microsoft/ConnectedServices/2006/06/ProfileManager/Fault</wsa:Action>
    - <wsa:From>
      <wsa:Address>http://localhost/ProfileManager30/ProfileManager.ashx</wsa:Address>
      </wsa:From>
      <wsa:MessageID>urn:uuidBig Smile9fa16d6-83fa-4069-9ca4-39c33f9f074f</wsa:MessageID>
      <wsa:RelatesTo>urn:uuid:783f6254-a96b-4082-b942-f0ab9f5f19cf</wsa:RelatesTo>
      <wsa:To>http://localhost:9108/PM1/PMClient.ashx</wsa:To>
    - <wsseTongue Tiedecurity>
    - <wsu:Timestamp wsu:Id="Timestamp-095d5e6d-22f6-4385-95e0-2508a2c708d1">
      <wsu:Created>2007-10-18T10:15:36Z</wsu:Created>
      <wsu:Expires>2007-10-18T10:20:36Z</wsu:Expires>
      </wsu:Timestamp>
      </wsseTongue Tiedecurity>
      </env:Header>
    - <env:Body>
    - <env:Fault>
    - <env:Code>
      <env:Value>envTongue Tiedender</env:Value>
    - <envTongue Tiedubcode>
      <env:Value xmlnsStick out tonguerefix0="http://Microsoft/ConnectedServices/2006/06/ProfileManager/">prefix0:22120</env:Value>
      </envTongue Tiedubcode>
      </env:Code>
    - <env:Reason>
      <env:Text xml:lang="en">User profile for the given user id usmnew not found.</env:Text>
      </env:Reason>
      <env:Node>http://localhost/ProfileManager30/ProfileManager.ashx</env:Node>
      </env:Fault>
      </env:Body>
      </env:Envelope>
      </processingStep>
      <processingStep description="Entering SOAP filter Microsoft.Web.Services3.Security.Wse2PipelinePolicy+LegacyFilterWrapper" />
      <processingStep description="Exited SOAP filter Microsoft.Web.Services3.Security.Wse2PipelinePolicy+LegacyFilterWrapper" />
      <processingStep description="Entering SOAP filter Microsoft.Web.Services3.Security.Wse2PipelinePolicy+LegacyFilterWrapper" />
      <processingStep description="Exited SOAP filter Microsoft.Web.Services3.Security.Wse2PipelinePolicy+LegacyFilterWrapper" />
    - <processingStep description="Processed message">
    - <env:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:env="http://www.w3.org/2003/05/soap-envelope">
      <env:Header />
    - <env:Body>
    - <env:Fault>
    - <env:Code>
      <env:Value>envTongue Tiedender</env:Value>
    - <envTongue Tiedubcode>
      <env:Value xmlnsStick out tonguerefix0="http://Microsoft/ConnectedServices/2006/06/ProfileManager/">prefix0:22120</env:Value>
      </envTongue Tiedubcode>
      </env:Code>
    - <env:Reason>
      <env:Text xml:lang="en">User profile for the given user id usmnew not found.</env:Text>
      </env:Reason>
      <env:Node>http://localhost/ProfileManager30/ProfileManager.ashx</env:Node>
      </env:Fault>
      </env:Body>
      </env:Envelope>
      </processingStep>
      </inputMessage>
      </log>

    "usmnew" is there in rdf database as a user of profile(in create profile)
    Thursday, October 18, 2007 6:19 AM

All replies

  • This error indicates that you do not have a user profile with the unique user id 'usmnew'. Please check that.

    Tuesday, October 23, 2007 7:33 AM
  • As stated above in the first reply, This error means that the unique user id 'usmnew' does not exist.

     

    Also there is no RDF to create USM.

     

    Friday, November 16, 2007 5:23 AM