title: linkedin connect API gives error 401 - iphone
body: <p>hi i am sending connect invitation by email using linkedin iphone api</p>
  
  <p>Request xml:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;
      &lt;mailbox-item&gt;
          &lt;recipients&gt;
              &lt;recipient&gt;
                  &lt;person path="/people/email=%@"&gt;
                      &lt;first-name&gt;%@&lt;/first-name&gt;
                      &lt;last-name&gt;%@&lt;/last-name&gt;
                  &lt;/person&gt;
              &lt;/recipient&gt;
          &lt;/recipients&gt;
          &lt;subject&gt;Invitation to Connect&lt;/subject&gt;
          &lt;body&gt;Please join my professional network on LinkedIn.&lt;/body&gt;
          &lt;item-content&gt;
              &lt;invitation-request&gt;
                  &lt;connect-type&gt;friend&lt;/connect-type&gt;
              &lt;/invitation-request&gt;
          &lt;/item-content&gt;
      &lt;/mailbox-item&gt;
  </code></pre>
  
  <p>where %@ indicates dynamic value.
  Content Type: text/xml
  Request Method: POST</p>
  
  <p>Response xml :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
      &lt;error&gt;
          &lt;status&gt;401&lt;/status&gt;
          &lt;timestamp&gt;1342092385484&lt;/timestamp&gt;
          &lt;request-id&gt;FX9SK3ZVG9&lt;/request-id&gt;
          &lt;error-code&gt;0&lt;/error-code&gt;
          &lt;message&gt;[unauthorized]. OAU:076lb67kcfe2|dc01dc46-4d78-44d2-9f9b-49053b8094db|*01|*01:1342092534:iZ/mDlOL7eo4fGv2O/rQZKe8oCA=&lt;/message&gt;
      &lt;/error&gt;
  </code></pre>
  
  <p>Also verified that authorization header is proper.
  I have also debugged with oAuth debug console, i have enter same values in debug console, but signature key are different.</p>
  
  <p>So is it a problem with signature key ??
  I have also gone through forums.
  But still i am not able to find an exact problem.</p>
  
  <p>Any help will be appreciated.</p>
  
  <p>Thanks</p>