title: Create Service Provider with Oauth2 with SOAP
body: <p>I am trying to create a SP via SOAP. The call for creating a SP is correct after which I try to configure Oauth2 via SOAP specifying oauthConsumerKey and oauthConsumerSecret like so</p>
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:xsd=&quot;http://org.apache.axis2/xsd&quot; xmlns:xsd1=&quot;http://dto.oauth.identity.carbon.wso2.org/xsd&quot;&gt;
     &lt;soapenv:Header/&gt;
     &lt;soapenv:Body&gt;
        &lt;xsd:registerOAuthApplicationData&gt;
           &lt;xsd:application&gt;
              &lt;xsd1:OAuthVersion&gt;OAuth-2.0&lt;/xsd1:OAuthVersion&gt;
              &lt;xsd1:applicationAccessTokenExpiryTime&gt;3600&lt;/xsd1:applicationAccessTokenExpiryTime&gt;
              &lt;xsd1:applicationName&gt;test&lt;/xsd1:applicationName&gt;
              &lt;xsd1:callbackUrl&gt;regexp=(.*)/login/oauth2/code/wso2&lt;/xsd1:callbackUrl&gt;
              &lt;xsd1:grantTypes&gt;refresh_token urn:ietf:params:oauth:grant-type:saml2-bearer implicit password client_credentials iwa:ntlm authorization_code urn:ietf:params:oauth:grant-type:uma-ticket urn:ietf:params:oauth:grant-type:jwt-bearer&lt;/xsd1:grantTypes&gt;
              &lt;xsd1:oauthConsumerKey&gt;gVWBVK0pdX4pg2Yk3fFbBjKe1aUa&lt;/xsd1:oauthConsumerKey&gt;
              &lt;xsd1:oauthConsumerSecret&gt;CbfGJXhTYvb3i1BAfu5ijgUSXXYa&lt;/xsd1:oauthConsumerSecret&gt;
              &lt;xsd1:pkceMandatory&gt;false&lt;/xsd1:pkceMandatory&gt;
              &lt;xsd1:pkceSupportPlain&gt;true&lt;/xsd1:pkceSupportPlain&gt;
              &lt;xsd1:refreshTokenExpiryTime&gt;86400&lt;/xsd1:refreshTokenExpiryTime&gt;
              &lt;xsd1:userAccessTokenExpiryTime&gt;3600&lt;/xsd1:userAccessTokenExpiryTime&gt;
           &lt;/xsd:application&gt;
        &lt;/xsd:registerOAuthApplicationData&gt;
     &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  <p>but in db I found different keys, oauth version, callbackUrl and grant_types as in screen attached
  <a href="https://i.stack.imgur.com/KrLnf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KrLnf.png" alt="DB screen" /></a>
  Am I doing something wrong?</p>
  <p>when i run the SOAP the response is</p>
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;&lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&gt;&lt;soapenv:Body&gt;&lt;ns:registerOAuthConsumerResponse xmlns:ns=&quot;http://org.apache.axis2/xsd&quot; xmlns:ax2408=&quot;http://dto.oauth.identity.carbon.wso2.org/xsd&quot; xmlns:ax2404=&quot;http://oauth.identity.carbon.wso2.org/xsd&quot; xmlns:ax2405=&quot;http://base.identity.carbon.wso2.org/xsd&quot;&gt;&lt;ns:return&gt;BE2JqA9lOZQKSkMvo4diNy2QHb0a&lt;/ns:return&gt;&lt;ns:return&gt;7xjxUrbWOztADfODEcvEbn8NeuEa&lt;/ns:return&gt;&lt;/ns:registerOAuthConsumerResponse&gt;&lt;/soapenv:Body&gt;&lt;/soapenv:Envelope&gt;
  </code></pre>