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(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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login