You need to sign in to do that
Don't have an account?
enossir
Theres my wsdl ---> apex. Now im my other controller i need to send two strings for
RSSInterface.TestContract_element test = new RSSInterface.TestContract_element();
And i need to define (hardcoding in)
test.CustomerNumber;
test.Userinfo:
I need one to be hello and the other to be world. I'm initating the class from a lightning quick action. But i'm bashing face to keyboard because i cannot figure out how to define those two strings...i know i'm having a 1D10T error and it could be lack of caffiene or too much.
How to define string values for SOAP Callout
//Generated by wsdl2apex public class RSSInterface { public class TestContractResponse_element { public String TestContractResult; private String[] TestContractResult_type_info = new String[]{'TestContractResult','https://test/.RSS.InterfaceService.WCF.Salesforce',null,'0','1','true'}; private String[] apex_schema_type_info = new String[]{'https://test/.RSS.InterfaceService.WCF.Salesforce','true','false'}; private String[] field_order_type_info = new String[]{'TestContractResult'}; } public class TestContract_element { public String CustomerNumber; public String UserInfo; private String[] CustomerNumber_type_info = new String[]{'CustomerNumber','https://test/.RSS.InterfaceService.WCF.Salesforce',null,'0','1','true'}; private String[] UserInfo_type_info = new String[]{'UserInfo','https://test/.RSS.InterfaceService.WCF.Salesforce',null,'0','1','true'}; private String[] apex_schema_type_info = new String[]{'https://test/.RSS.InterfaceService.WCF.Salesforce','true','false'}; private String[] field_order_type_info = new String[]{'CustomerNumber','UserInfo'}; } public class CustomBinding_IWCFSalesforce { public String endpoint_x = 'https://test/.RSS.InterfaceService.WCF.Salesforce'; 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://schemas.microsoft.com/2003/10/Serialization/', 'SchemasM', 'https://test/.RSS.InterfaceService.WCF.Salesforce', 'RSSInterface'}; public String TestContract(String CustomerNumber,String UserInfo) { RSSInterface.TestContract_element request_x = new RSSInterface.TestContract_element(); request_x.CustomerNumber = CustomerNumber; request_x.UserInfo = UserInfo; RSSInterface.TestContractResponse_element response_x; Map<String, RSSInterface.TestContractResponse_element> response_map_x = new Map<String, RSSInterface.TestContractResponse_element>(); response_map_x.put('response_x', response_x); WebServiceCallout.invoke( this, request_x, response_map_x, new String[]{endpoint_x, 'https://test/.RSS.InterfaceService.WCF.Salesforce/IWCFSalesforce/TestContract', 'https://test/.RSS.InterfaceService.WCF.Salesforce', 'TestContract', 'https://test/.RSS.InterfaceService.WCF.Salesforce', 'TestContractResponse', 'RSSInterface.TestContractResponse_element'} ); response_x = response_map_x.get('response_x'); return response_x.TestContractResult; } } }
Theres my wsdl ---> apex. Now im my other controller i need to send two strings for
RSSInterface.TestContract_element test = new RSSInterface.TestContract_element();
And i need to define (hardcoding in)
test.CustomerNumber;
test.Userinfo:
I need one to be hello and the other to be world. I'm initating the class from a lightning quick action. But i'm bashing face to keyboard because i cannot figure out how to define those two strings...i know i'm having a 1D10T error and it could be lack of caffiene or too much.
I figured i could execute anonymous and this should work.