Hi Shiva,

You can't update the service provider partially. If you want to update an
existing value you should provide all of the other attributes if you want
to keep rest of the attributes as it is. According to [1] before adding the
new changes we are deleting the existing configurations. Therefore if you
didn't give the existing values for the claim configuration, then your
claim configuration will be empty.

[1] https://github.com/wso2/carbon-identity-framework/
blob/master/components/application-mgt/org.wso2.carbon.identity.application.
mgt/src/main/java/org/wso2/carbon/identity/application/mgt/dao/impl/
ApplicationDAOImpl.java#L389-L390

Thanks,
Nila.

On Tue, Aug 14, 2018 at 8:38 PM, Shiva Kumar <[email protected]>
wrote:

> Hi,
>
> I want to update only description of service provider but when i tried
> below request it is updating claim configuration as well how can I achieve
> this?
>
> *REQUEST*
>
> <soapenv:Envelope xmlns:soapenv="http://schemas.
> xmlsoap.org/soap/envelope/" <http://schemas.xmlsoap.org/soap/envelope/>
> xmlns:xsd="http://org.apache.axis2/xsd"; <http://org.apache.axis2/xsd>
> xmlns:xsd1="http://model.common.application.identity.carbon.wso2.org/xsd";
> <http://model.common.application.identity.carbon.wso2.org/xsd>>
>    <soapenv:Header/>
>    <soapenv:Body>
>       <xsd:updateApplication>
>          <xsd:serviceProvider>
>             <xsd1:applicationID>$SP_ID</xsd1:applicationID>
>             <xsd1:applicationName>$SP_NAME</xsd1:applicationName>
>             <xsd1:description>New Description</xsd1:description>
>             <xsd1:outboundProvisioningConfig/>
>             <xsd1:permissionAndRoleConfig/>
>             <xsd1:saasApp>false</xsd1:saasApp>
>          </xsd:serviceProvider>
>       </xsd:updateApplication>
>    </soapenv:Body>
> </soapenv:Envelope>
>
>
> Thanks,
>
> Shiva
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Nilasini Thirunavukkarasu
Software Engineer - WSO2

Email : [email protected]
Mobile : +94775241823
Web : http://wso2.com/


<http://wso2.com/signature>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to