Open pulkit111 opened 3 months ago
can you share a screenshot of your external credentials?
On Fri, Aug 16, 2024 at 4:23 PM pulkit111 @.***> wrote:
I have provided all the inputs to named credentials as mentioned, but still getting this error -
"We can't find the username and password setup in the BillingServiceCredential external credential to make a successful callout to the endpoint.”
Can you please help?
— Reply to this email directly, view it on GitHub https://github.com/LogicLuminaryy/Solution-Apex-Callouts-Superbadge-Unit-/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHBACMCSIXGRHURM7Z4DXTDZRXK3VAVCNFSM6AAAAABMT27W2GVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ3TAMBSGI3DQMA . You are receiving this because you are subscribed to this thread.Message ID: <LogicLuminaryy/Solution-Apex-Callouts-Superbadge-Unit-/issues/1@ github.com>
Sharing one more of “Principals”
Kindly let me know if anything can be done, as I am stuck on this from a long time.
I am working on it.
On Sat, 17 Aug 2024 at 12:02 PM, pulkit111 @.***> wrote:
Kindly let me know if anything can be done, as I am stuck on this from a long time.
— Reply to this email directly, view it on GitHub https://github.com/LogicLuminaryy/Solution-Apex-Callouts-Superbadge-Unit-/issues/1#issuecomment-2294691011, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHBACMFIH4E55WDDD3DTA7TZR3VBPAVCNFSM6AAAAABMT27W2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJUGY4TCMBRGE . You are receiving this because you commented.Message ID: <LogicLuminaryy/Solution-Apex-Callouts-Superbadge-Unit-/issues/1/2294691011 @github.com>
Did not get time i will check tomorrow
On Sat, 17 Aug 2024 at 3:01 PM, Ankit kumar @.***> wrote:
I am working on it.
On Sat, 17 Aug 2024 at 12:02 PM, pulkit111 @.***> wrote:
Kindly let me know if anything can be done, as I am stuck on this from a long time.
— Reply to this email directly, view it on GitHub https://github.com/LogicLuminaryy/Solution-Apex-Callouts-Superbadge-Unit-/issues/1#issuecomment-2294691011, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHBACMFIH4E55WDDD3DTA7TZR3VBPAVCNFSM6AAAAABMT27W2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJUGY4TCMBRGE . You are receiving this because you commented.Message ID: <LogicLuminaryy/Solution-Apex-Callouts-Superbadge-Unit-/issues/1/2294691011 @github.com>
Sure, no problem
Regards, Pulkit
On Sun, 18 Aug 2024 at 2:12 AM, Ankit Kumar @.***> wrote:
Did not get time i will check tomorrow
On Sat, 17 Aug 2024 at 3:01 PM, Ankit kumar @.***> wrote:
I am working on it.
On Sat, 17 Aug 2024 at 12:02 PM, pulkit111 @.***> wrote:
Kindly let me know if anything can be done, as I am stuck on this from a long time.
— Reply to this email directly, view it on GitHub < https://github.com/LogicLuminaryy/Solution-Apex-Callouts-Superbadge-Unit-/issues/1#issuecomment-2294691011>,
or unsubscribe < https://github.com/notifications/unsubscribe-auth/AHBACMFIH4E55WDDD3DTA7TZR3VBPAVCNFSM6AAAAABMT27W2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJUGY4TCMBRGE>
. You are receiving this because you commented.Message ID:
<LogicLuminaryy/Solution-Apex-Callouts-Superbadge-Unit-/issues/1/2294691011 @github.com>
— Reply to this email directly, view it on GitHub https://github.com/LogicLuminaryy/Solution-Apex-Callouts-Superbadge-Unit-/issues/1#issuecomment-2294980448, or unsubscribe https://github.com/notifications/unsubscribe-auth/AELPCDNYJDCGE2EHHTXXZFTZR6YTLAVCNFSM6AAAAABMT27W2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJUHE4DANBUHA . You are receiving this because you authored the thread.Message ID: <LogicLuminaryy/Solution-Apex-Callouts-Superbadge-Unit-/issues/1/2294980448 @github.com>
I don't see difference: here my org screenshot of name cred.
Expression - {!'Basic ' & BASE64ENCODE(BLOB($Credential.BalancedLivingCredential.username & ':' & $Credential.BalancedLivingCredential.password))}
did you assign external creds to permission set?
I have tried with 2 different developer orgs, still getting the same issue. I’ll try once again tomorrow.
Regards, Pulkit
On Sun, 18 Aug 2024 at 9:40 PM, Ankit Kumar @.***> wrote:
I don't see difference: here my org screenshot of name cred. Screenshot.2024-08-18.at.9.39.04.PM.png (view on web) https://github.com/user-attachments/assets/046ae183-f8e3-4a3e-ae1a-a4ea25b78b10
— Reply to this email directly, view it on GitHub https://github.com/LogicLuminaryy/Solution-Apex-Callouts-Superbadge-Unit-/issues/1#issuecomment-2295313192, or unsubscribe https://github.com/notifications/unsubscribe-auth/AELPCDPIBWFQJG6EMFWG7TTZSDBNRAVCNFSM6AAAAABMT27W2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJVGMYTGMJZGI . You are receiving this because you authored the thread.Message ID: <LogicLuminaryy/Solution-Apex-Callouts-Superbadge-Unit-/issues/1/2295313192 @github.com>
Hi @LogicLuminaryy i am facing issue with Apex Callouts Superbadge Unit challenge 3 getting below error, please help me Challenge Not yet complete... here's what's wrong: The SOAP call to the BillingService did not return the correct response. Make sure the BillingServiceProxy class can successfully call the billProject method.
Apex class:
public class BillingServiceProxy { public class billProjectRequest_element { public BillingServiceProxy.project project; private String[] project_type_info = new String[]{'project','http://salesforce.com/th/invoice-web-service',null,'1','1','false'}; private String[] apex_schema_type_info = new String[]{'http://salesforce.com/th/invoice-web-service','true','false'}; private String[] field_order_type_info = new String[]{'project'}; } public class project { public String username; public String password; public String projectid; public Double billAmount; private String[] username_type_info = new String[]{'username','http://salesforce.com/th/invoice-web-service',null,'1','1','false'}; private String[] password_type_info = new String[]{'password','http://salesforce.com/th/invoice-web-service',null,'1','1','false'}; private String[] projectid_type_info = new String[]{'projectid','http://salesforce.com/th/invoice-web-service',null,'1','1','false'}; private String[] billAmount_type_info = new String[]{'billAmount','http://salesforce.com/th/invoice-web-service',null,'1','1','false'}; private String[] apex_schema_type_info = new String[]{'http://salesforce.com/th/invoice-web-service','true','false'}; private String[] field_order_type_info = new String[]{'username','password','projectid','billAmount'}; } public class billProjectResponse_element { public String status; private String[] status_type_info = new String[]{'status','http://salesforce.com/th/invoice-web-service',null,'1','1','false'}; private String[] apex_schema_type_info = new String[]{'http://salesforce.com/th/invoice-web-service','true','false'}; private String[] field_order_type_info = new String[]{'status'}; } public class InvoicesPortSoap11 { public String endpoint_x = 'http://sb-integration-bs.herokuapp.com:80/ws'; public Map<String,String> inputHttpHeaders_x; public Map<String,String> outputHttpHeaders_x; public String clientCertName_x; public String clientCert_x; public String clientCertPasswd_x; public Integer timeout_x; private String[] ns_map_type_info = new String[]{'http://salesforce.com/th/invoice-web-service', 'BillingServiceProxy'}; public String billProject(BillingServiceProxy.project project) { BillingServiceProxy.billProjectRequest_element request_x = new BillingServiceProxy.billProjectRequest_element(); request_x.project = project; BillingServiceProxy.billProjectResponse_element response_x; Map<String, BillingServiceProxy.billProjectResponse_element> response_map_x = new Map<String, BillingServiceProxy.billProjectResponse_element>(); response_map_x.put('response_x', response_x); WebServiceCallout.invoke( this, request_x, response_map_x, new String[]{endpoint_x, '', 'http://salesforce.com/th/invoice-web-service', 'billProjectRequest', 'http://salesforce.com/th/invoice-web-service', 'billProjectResponse', 'BillingServiceProxy.billProjectResponse_element'} ); response_x = response_map_x.get('response_x'); return response_x.status; } } }
I have provided all the inputs to named credentials as mentioned, but still getting this error -
"We can't find the username and password setup in the BillingServiceCredential external credential to make a successful callout to the endpoint.”
Can you please help?