New Reply

Good news! We have migrated all the Q&A on this site to https://forums.inedo.com, and are currently monitoring questions there!

Here are some important links:

All posts here are permanently locked (and will be redirected soon), and if you have any issues with the new site, please submit a support ticket, use the contact form, or visit our Slack Workspace.

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(IReadOnlyDictionary2 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, Nullable1 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.