Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
SOAP Credentials
-
Hello,
I am trying to create/update a resource credential using SOAP. I am able to add the credential, however i seem to be struggling with the
"ined:AllowFunctionAccess_IndicatorY</ined:AllowFunctionAccess_Indicator>"
I am getting the following error:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
soap:Body
soap:Fault
<faultcode>soap:Server</faultcode>
<faultstring>System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.ArgumentException: Object of type 'System.String' cannot be converted to type 'System.Nullable1[Inedo.Data.YNIndicator]'. at System.RuntimeType.TryChangeType(Object value, Binder binder, CultureInfo culture, Boolean needsSpecialCast) at System.Reflection.MethodBase.CheckArguments(Object[] parameters, Binder binder, BindingFlags invokeAttr, CultureInfo culture, Signature sig) at System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Inedo.BuildMaster.Web.WebApplication.SimpleHandlers.Api.ApiMethodInfo.Invoke(IReadOnlyDictionary
2 args)
at Inedo.BuildMaster.Web.Soap.Generated.ApiService.Credentials_CreateOrUpdateCredential(String API_Key, String Credential_Name, Nullable1 Environment_Id, String CredentialType_Name, String Configuration_Xml, String AllowFunctionAccess_Indicator, Nullable
1 Credential_Id)
--- End of inner exception stack trace ---</faultstring>
<detail/>
</soap:Fault>
</soap:Body>
</soap:Envelope>Can someone please advise on what to use for the "AllowFunctionAccess_Indicator"
Many Thanks in advance!!
Full SOAP Script:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ined="http://inedo.com/">
soapenv:Header/
soapenv:Body
ined:Credentials_CreateOrUpdateCredential
<!--Optional:-->
ined:API_KeyAPI_KEY</ined:API_Key>
<!--Optional:-->
ined:Credential_NameTestUser</ined:Credential_Name>
ined:Environment_Id7</ined:Environment_Id>
<!--Optional:-->
ined:CredentialType_NameUsernamePassword</ined:CredentialType_Name>
<!--Optional:-->
ined:AllowFunctionAccess_IndicatorY</ined:AllowFunctionAccess_Indicator>
ined:Credential_Id7</ined:Credential_Id>
</ined:Credentials_CreateOrUpdateCredential>
</soapenv:Body>
</soapenv:Envelope>Product: BuildMaster
Version: 6.1.7
-
AllowFunctionAccess_Indicator is an Y/N indicator to allow access to the credential values if they are encrypted.