Skip to content

Instantly share code, notes, and snippets.

@FishOfPrey
Created August 20, 2020 22:37
Show Gist options
  • Save FishOfPrey/6a32b7c12794b2905fadcbf9f7f96cd0 to your computer and use it in GitHub Desktop.
Save FishOfPrey/6a32b7c12794b2905fadcbf9f7f96cd0 to your computer and use it in GitHub Desktop.
//Generated by FuseIT WSDL2Apex (http://www.fuseit.com/Solutions/SFDC-Explorer/Help-WSDL-Parser.aspx)
//Methods Included: getActivateResult, testCallback, initAndActivate, init, initAndDuplicate, getSaveResult, initAndSave, getInitResult, getDuplicateResult, activate, save
// Primary Port Class Name: embeddedAsync
public class webserviceEmbeddedServerQaBackendCo {
private static final String s_ns0 = 'http://webservice.embedded.server.qa.backend.com/';
public class ActivateContext_element {
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{};
}
public class ActivateResult_element {
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{};
}
public class ActivateResultRequest_element {
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{};
}
//Extends http://webservice.embedded.server.qa.backend.com/:SaveResultType
public class activateResultType {
public Boolean successful;
public String error;
public String formattedStackTrace;
public String salesDocument;
public webserviceEmbeddedServerQaBackendCo.CustomSaveData customData;
private transient String[] successful_type_info = new String[]{'successful',s_ns0,'boolean','1','1','false'};
private transient String[] error_type_info = new String[]{'error',s_ns0,'string','0','1','false'};
private transient String[] formattedStackTrace_type_info = new String[]{'formattedStackTrace',s_ns0,'string','0','1','false'};
private transient String[] salesDocument_type_info = new String[]{'salesDocument',s_ns0,'base64Binary','0','1','false'};
private transient String[] customData_type_info = new String[]{'customData',s_ns0,'CustomSaveData','0','1','false'};
public webserviceEmbeddedServerQaBackendCo.ActivationAttachment printedDocument;
public webserviceEmbeddedServerQaBackendCo.ActivationAttachment exportFormat;
private transient String[] printedDocument_type_info = new String[]{'printedDocument',s_ns0,'ActivationAttachment','0','1','false'};
private transient String[] exportFormat_type_info = new String[]{'exportFormat',s_ns0,'ActivationAttachment','0','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'successful','error','formattedStackTrace','salesDocument','customData','printedDocument','exportFormat'};
}
public class ActivationAttachment {
public String filename;
public String mimetype;
public String desc_x;
public String data;
private transient String[] filename_type_info = new String[]{'filename',s_ns0,'string','1','1','false'};
private transient String[] mimetype_type_info = new String[]{'mimetype',s_ns0,'string','1','1','false'};
private transient String[] desc_x_type_info = new String[]{'desc',s_ns0,'string','1','1','false'};
private transient String[] data_type_info = new String[]{'data',s_ns0,'base64Binary','1','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'filename','mimetype','desc_x','data'};
}
public class AsyncActivateResult_element {
public Integer phase;
public webserviceEmbeddedServerQaBackendCo.activateResultType activateResult;
private transient String[] phase_type_info = new String[]{'phase',s_ns0,'int','1','1','false'};
private transient String[] activateResult_type_info = new String[]{'activateResult',s_ns0,'activateResultType','0','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'phase','activateResult'};
}
public class AsyncResult_element {
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{};
}
public class Attachment {
public String subject;
public String filename;
public String mimetype;
public String data;
private transient String[] subject_type_info = new String[]{'subject',s_ns0,'string','1','1','false'};
private transient String[] filename_type_info = new String[]{'filename',s_ns0,'string','1','1','false'};
private transient String[] mimetype_type_info = new String[]{'mimetype',s_ns0,'string','1','1','false'};
private transient String[] data_type_info = new String[]{'data',s_ns0,'base64Binary','1','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'subject','filename','mimetype','data'};
}
public class Attribute {
public String name;
public webserviceEmbeddedServerQaBackendCo.CustomDataProperty value;
private transient String[] name_type_info = new String[]{'name',s_ns0,'string','1','1','false'};
private transient String[] value_type_info = new String[]{'value',s_ns0,'CustomDataProperty','1','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'name','value'};
}
public class authenticationPropertiesType {
public webserviceEmbeddedServerQaBackendCo.authenticationPropertiesType_entry_element[] entry;
private transient String[] entry_type_info = new String[]{'entry',s_ns0,'','0','-1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'entry'};
}
public class authenticationPropertiesType_entry_element {
public String key;
public String value;
private transient String[] key_type_info = new String[]{'key',s_ns0,'string','0','1','false'};
private transient String[] value_type_info = new String[]{'value',s_ns0,'string','0','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'key','value'};
}
public class CallbackContext_element {
public String url;
public String method;
public webserviceEmbeddedServerQaBackendCo.headerType header;
public String body;
public Integer expectedHttpStatusCode;
public String authenticationFunctionId;
public webserviceEmbeddedServerQaBackendCo.authenticationPropertiesType authenticationProperties;
public Integer retryHttpStatusCode;
private transient String[] url_type_info = new String[]{'url',s_ns0,'anyURI','1','1','false'};
private transient String[] method_type_info = new String[]{'method',s_ns0,'string','1','1','false'};
private transient String[] header_type_info = new String[]{'header',s_ns0,'headerType','1','1','false'};
private transient String[] body_type_info = new String[]{'body',s_ns0,'base64Binary','1','1','false'};
private transient String[] expectedHttpStatusCode_type_info = new String[]{'expectedHttpStatusCode',s_ns0,'int','1','1','false'};
private transient String[] authenticationFunctionId_type_info = new String[]{'authenticationFunctionId',s_ns0,'string','1','1','false'};
private transient String[] authenticationProperties_type_info = new String[]{'authenticationProperties',s_ns0,'authenticationPropertiesType','1','1','false'};
private transient String[] retryHttpStatusCode_type_info = new String[]{'retryHttpStatusCode',s_ns0,'int','1','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'url','method','header','body','expectedHttpStatusCode','authenticationFunctionId','authenticationProperties','retryHttpStatusCode'};
}
public class CloseSessionContext_element {
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{};
}
public class CloseSessionResult_element {
public Boolean successful;
public String error;
public String formattedStackTrace;
private transient String[] successful_type_info = new String[]{'successful',s_ns0,'boolean','1','1','false'};
private transient String[] error_type_info = new String[]{'error',s_ns0,'string','0','1','false'};
private transient String[] formattedStackTrace_type_info = new String[]{'formattedStackTrace',s_ns0,'string','0','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'successful','error','formattedStackTrace'};
}
public class CustomData {
public webserviceEmbeddedServerQaBackendCo.CustomData_entries_element[] entries;
private transient String[] entries_type_info = new String[]{'entries',s_ns0,'','0','-1','true'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'entries'};
}
public class CustomData_entries_element {
public String key;
public webserviceEmbeddedServerQaBackendCo.CustomDataResult[] value;
private transient String[] key_type_info = new String[]{'key',s_ns0,'string','1','1','false'};
private transient String[] value_type_info = new String[]{'value',s_ns0,'CustomDataResult','0','-1','true'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'key','value'};
}
//Extends http://webservice.embedded.server.qa.backend.com/:CustomDataProperty
public class CustomDataBooleanProperty {
public String name;
private transient String[] name_type_info = new String[]{'name',s_ns0,'string','1','1','false'};
public Boolean value;
private transient String[] value_type_info = new String[]{'value',s_ns0,'boolean','1','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'name','value'};
}
//Extends http://webservice.embedded.server.qa.backend.com/:CustomDataProperty
public class CustomDataDateTimeProperty {
public String name;
private transient String[] name_type_info = new String[]{'name',s_ns0,'string','1','1','false'};
public DateTime value;
private transient String[] value_type_info = new String[]{'value',s_ns0,'dateTime','1','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'name','value'};
}
//Extends http://webservice.embedded.server.qa.backend.com/:CustomDataProperty
public class CustomDataDecimalProperty {
public String name;
private transient String[] name_type_info = new String[]{'name',s_ns0,'string','1','1','false'};
public Decimal value;
private transient String[] value_type_info = new String[]{'value',s_ns0,'decimal','1','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'name','value'};
}
//Extends http://webservice.embedded.server.qa.backend.com/:CustomDataProperty
public class CustomDataImageProperty {
public String name;
private transient String[] name_type_info = new String[]{'name',s_ns0,'string','1','1','false'};
public String value;
private transient String[] value_type_info = new String[]{'value',s_ns0,'base64Binary','1','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'name','value'};
}
public class CustomDataProperty {
public String name;
private transient String[] name_type_info = new String[]{'name',s_ns0,'string','1','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'name'};
}
public class CustomDataResult {
public String id;
public webserviceEmbeddedServerQaBackendCo.CustomDataProperty[] properties;
private transient String[] id_type_info = new String[]{'id',s_ns0,'string','1','1','false'};
private transient String[] properties_type_info = new String[]{'properties',s_ns0,'CustomDataProperty','0','-1','true'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'id','properties'};
}
//Extends http://webservice.embedded.server.qa.backend.com/:CustomDataProperty
public class CustomDataStringProperty {
public String name;
private transient String[] name_type_info = new String[]{'name',s_ns0,'string','1','1','false'};
public String value;
private transient String[] value_type_info = new String[]{'value',s_ns0,'string','1','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'name','value'};
}
//Extends http://webservice.embedded.server.qa.backend.com/:CustomDataProperty
public class CustomNullProperty {
public String name;
private transient String[] name_type_info = new String[]{'name',s_ns0,'string','1','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'name'};
}
public class CustomSaveData {
public webserviceEmbeddedServerQaBackendCo.Entity targetEntity;
public webserviceEmbeddedServerQaBackendCo.RelatedEntity[] relatedEntities;
private transient String[] targetEntity_type_info = new String[]{'targetEntity',s_ns0,'Entity','1','1','false'};
private transient String[] relatedEntities_type_info = new String[]{'relatedEntities',s_ns0,'RelatedEntity','0','-1','true'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'targetEntity','relatedEntities'};
}
public class DuplicateContext_element {
public String command;
public String oldQuoteId;
public String newQuoteId;
private transient String[] command_type_info = new String[]{'command',s_ns0,'string','1','1','false'};
private transient String[] oldQuoteId_type_info = new String[]{'oldQuoteId',s_ns0,'string','1','1','false'};
private transient String[] newQuoteId_type_info = new String[]{'newQuoteId',s_ns0,'string','1','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'command','oldQuoteId','newQuoteId'};
}
public class DuplicateResult_element {
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{};
}
public class DuplicateResultRequest_element {
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{};
}
public class embeddedAsync {
public String endpoint_x = 'https://backend.de/backend-proxy-dev1/cxf/EmbeddedWebService';
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 transient String[] ns_map_type_info = new String[]{'http://webservice.embedded.server.qa.backend.com/','webserviceEmbeddedServerQaBackendCo'};
public void activate_x(String id) {
webserviceEmbeddedServerQaBackendCo.WebserviceSessionId request_x = new webserviceEmbeddedServerQaBackendCo.WebserviceSessionId();
webserviceEmbeddedServerQaBackendCo.AsyncResult_element response_x;
request_x.id = id;
// A map of key-value pairs that represent the response that the external service sends after receiving the request. In each pair, the key is a response identifier. The value is the response object, which is an instance of a type that is created as part of the auto-generated stub class.
Map<String, webserviceEmbeddedServerQaBackendCo.AsyncResult_element> response_map_x = new Map<String, webserviceEmbeddedServerQaBackendCo.AsyncResult_element>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this, // stub - An instance of the Apex class that is auto-generated from a WSDL (the stub class).
request_x, // request - The request to the external service. The request is an instance of a type that is created as part of the auto-generated stub class.
response_map_x, // response
new String[]{endpoint_x, // the URL of the external web service
'', // The SOAP action.
s_ns0, // The request namespace.
'WebserviceSessionId', // The request name.
s_ns0, // The response namespace.
'AsyncResult', // The response name.
'webserviceEmbeddedServerQaBackendCo.AsyncResult_element'} // The response type.
);
response_x = response_map_x.get('response_x');
}
public webserviceEmbeddedServerQaBackendCo.AsyncActivateResult_element getActivateResult() {
webserviceEmbeddedServerQaBackendCo.ActivateResultRequest_element request_x = new webserviceEmbeddedServerQaBackendCo.ActivateResultRequest_element();
webserviceEmbeddedServerQaBackendCo.AsyncActivateResult_element response_x;
// A map of key-value pairs that represent the response that the external service sends after receiving the request. In each pair, the key is a response identifier. The value is the response object, which is an instance of a type that is created as part of the auto-generated stub class.
Map<String, webserviceEmbeddedServerQaBackendCo.AsyncActivateResult_element> response_map_x = new Map<String, webserviceEmbeddedServerQaBackendCo.AsyncActivateResult_element>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this, // stub - An instance of the Apex class that is auto-generated from a WSDL (the stub class).
request_x, // request - The request to the external service. The request is an instance of a type that is created as part of the auto-generated stub class.
response_map_x, // response
new String[]{endpoint_x, // the URL of the external web service
'', // The SOAP action.
s_ns0, // The request namespace.
'ActivateResultRequest', // The request name.
s_ns0, // The response namespace.
'AsyncActivateResult', // The response name.
'webserviceEmbeddedServerQaBackendCo.AsyncActivateResult_element'} // The response type.
);
response_x = response_map_x.get('response_x');
return response_x;
}
public void getDuplicateResult() {
webserviceEmbeddedServerQaBackendCo.DuplicateResultRequest_element request_x = new webserviceEmbeddedServerQaBackendCo.DuplicateResultRequest_element();
webserviceEmbeddedServerQaBackendCo.DuplicateResult_element response_x;
// A map of key-value pairs that represent the response that the external service sends after receiving the request. In each pair, the key is a response identifier. The value is the response object, which is an instance of a type that is created as part of the auto-generated stub class.
Map<String, webserviceEmbeddedServerQaBackendCo.DuplicateResult_element> response_map_x = new Map<String, webserviceEmbeddedServerQaBackendCo.DuplicateResult_element>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this, // stub - An instance of the Apex class that is auto-generated from a WSDL (the stub class).
request_x, // request - The request to the external service. The request is an instance of a type that is created as part of the auto-generated stub class.
response_map_x, // response
new String[]{endpoint_x, // the URL of the external web service
'', // The SOAP action.
s_ns0, // The request namespace.
'DuplicateResultRequest', // The request name.
s_ns0, // The response namespace.
'DuplicateResult', // The response name.
'webserviceEmbeddedServerQaBackendCo.DuplicateResult_element'} // The response type.
);
response_x = response_map_x.get('response_x');
}
public webserviceEmbeddedServerQaBackendCo.InitResult_element getInitResult() {
webserviceEmbeddedServerQaBackendCo.InitResultRequest_element request_x = new webserviceEmbeddedServerQaBackendCo.InitResultRequest_element();
webserviceEmbeddedServerQaBackendCo.InitResult_element response_x;
// A map of key-value pairs that represent the response that the external service sends after receiving the request. In each pair, the key is a response identifier. The value is the response object, which is an instance of a type that is created as part of the auto-generated stub class.
Map<String, webserviceEmbeddedServerQaBackendCo.InitResult_element> response_map_x = new Map<String, webserviceEmbeddedServerQaBackendCo.InitResult_element>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this, // stub - An instance of the Apex class that is auto-generated from a WSDL (the stub class).
request_x, // request - The request to the external service. The request is an instance of a type that is created as part of the auto-generated stub class.
response_map_x, // response
new String[]{endpoint_x, // the URL of the external web service
'', // The SOAP action.
s_ns0, // The request namespace.
'InitResultRequest', // The request name.
s_ns0, // The response namespace.
'InitResult', // The response name.
'webserviceEmbeddedServerQaBackendCo.InitResult_element'} // The response type.
);
response_x = response_map_x.get('response_x');
return response_x;
}
public void getSaveResult() {
webserviceEmbeddedServerQaBackendCo.SaveResultRequest_element request_x = new webserviceEmbeddedServerQaBackendCo.SaveResultRequest_element();
webserviceEmbeddedServerQaBackendCo.SaveResult_element response_x;
// A map of key-value pairs that represent the response that the external service sends after receiving the request. In each pair, the key is a response identifier. The value is the response object, which is an instance of a type that is created as part of the auto-generated stub class.
Map<String, webserviceEmbeddedServerQaBackendCo.SaveResult_element> response_map_x = new Map<String, webserviceEmbeddedServerQaBackendCo.SaveResult_element>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this, // stub - An instance of the Apex class that is auto-generated from a WSDL (the stub class).
request_x, // request - The request to the external service. The request is an instance of a type that is created as part of the auto-generated stub class.
response_map_x, // response
new String[]{endpoint_x, // the URL of the external web service
'', // The SOAP action.
s_ns0, // The request namespace.
'SaveResultRequest', // The request name.
s_ns0, // The response namespace.
'SaveResult', // The response name.
'webserviceEmbeddedServerQaBackendCo.SaveResult_element'} // The response type.
);
response_x = response_map_x.get('response_x');
}
public void init(String id) {
webserviceEmbeddedServerQaBackendCo.WebserviceSessionId request_x = new webserviceEmbeddedServerQaBackendCo.WebserviceSessionId();
webserviceEmbeddedServerQaBackendCo.AsyncResult_element response_x;
request_x.id = id;
// A map of key-value pairs that represent the response that the external service sends after receiving the request. In each pair, the key is a response identifier. The value is the response object, which is an instance of a type that is created as part of the auto-generated stub class.
Map<String, webserviceEmbeddedServerQaBackendCo.AsyncResult_element> response_map_x = new Map<String, webserviceEmbeddedServerQaBackendCo.AsyncResult_element>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this, // stub - An instance of the Apex class that is auto-generated from a WSDL (the stub class).
request_x, // request - The request to the external service. The request is an instance of a type that is created as part of the auto-generated stub class.
response_map_x, // response
new String[]{endpoint_x, // the URL of the external web service
'', // The SOAP action.
s_ns0, // The request namespace.
'WebserviceSessionId', // The request name.
s_ns0, // The response namespace.
'AsyncResult', // The response name.
'webserviceEmbeddedServerQaBackendCo.AsyncResult_element'} // The response type.
);
response_x = response_map_x.get('response_x');
}
public void initAndActivate(String id) {
webserviceEmbeddedServerQaBackendCo.WebserviceSessionId request_x = new webserviceEmbeddedServerQaBackendCo.WebserviceSessionId();
webserviceEmbeddedServerQaBackendCo.AsyncResult_element response_x;
request_x.id = id;
// A map of key-value pairs that represent the response that the external service sends after receiving the request. In each pair, the key is a response identifier. The value is the response object, which is an instance of a type that is created as part of the auto-generated stub class.
Map<String, webserviceEmbeddedServerQaBackendCo.AsyncResult_element> response_map_x = new Map<String, webserviceEmbeddedServerQaBackendCo.AsyncResult_element>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this, // stub - An instance of the Apex class that is auto-generated from a WSDL (the stub class).
request_x, // request - The request to the external service. The request is an instance of a type that is created as part of the auto-generated stub class.
response_map_x, // response
new String[]{endpoint_x, // the URL of the external web service
'', // The SOAP action.
s_ns0, // The request namespace.
'WebserviceSessionId', // The request name.
s_ns0, // The response namespace.
'AsyncResult', // The response name.
'webserviceEmbeddedServerQaBackendCo.AsyncResult_element'} // The response type.
);
response_x = response_map_x.get('response_x');
}
public void initAndDuplicate(String id) {
webserviceEmbeddedServerQaBackendCo.WebserviceSessionId request_x = new webserviceEmbeddedServerQaBackendCo.WebserviceSessionId();
webserviceEmbeddedServerQaBackendCo.AsyncResult_element response_x;
request_x.id = id;
// A map of key-value pairs that represent the response that the external service sends after receiving the request. In each pair, the key is a response identifier. The value is the response object, which is an instance of a type that is created as part of the auto-generated stub class.
Map<String, webserviceEmbeddedServerQaBackendCo.AsyncResult_element> response_map_x = new Map<String, webserviceEmbeddedServerQaBackendCo.AsyncResult_element>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this, // stub - An instance of the Apex class that is auto-generated from a WSDL (the stub class).
request_x, // request - The request to the external service. The request is an instance of a type that is created as part of the auto-generated stub class.
response_map_x, // response
new String[]{endpoint_x, // the URL of the external web service
'', // The SOAP action.
s_ns0, // The request namespace.
'WebserviceSessionId', // The request name.
s_ns0, // The response namespace.
'AsyncResult', // The response name.
'webserviceEmbeddedServerQaBackendCo.AsyncResult_element'} // The response type.
);
response_x = response_map_x.get('response_x');
}
public void initAndSave(String id) {
webserviceEmbeddedServerQaBackendCo.WebserviceSessionId request_x = new webserviceEmbeddedServerQaBackendCo.WebserviceSessionId();
webserviceEmbeddedServerQaBackendCo.AsyncResult_element response_x;
request_x.id = id;
// A map of key-value pairs that represent the response that the external service sends after receiving the request. In each pair, the key is a response identifier. The value is the response object, which is an instance of a type that is created as part of the auto-generated stub class.
Map<String, webserviceEmbeddedServerQaBackendCo.AsyncResult_element> response_map_x = new Map<String, webserviceEmbeddedServerQaBackendCo.AsyncResult_element>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this, // stub - An instance of the Apex class that is auto-generated from a WSDL (the stub class).
request_x, // request - The request to the external service. The request is an instance of a type that is created as part of the auto-generated stub class.
response_map_x, // response
new String[]{endpoint_x, // the URL of the external web service
'', // The SOAP action.
s_ns0, // The request namespace.
'WebserviceSessionId', // The request name.
s_ns0, // The response namespace.
'AsyncResult', // The response name.
'webserviceEmbeddedServerQaBackendCo.AsyncResult_element'} // The response type.
);
response_x = response_map_x.get('response_x');
}
public void save(String id) {
webserviceEmbeddedServerQaBackendCo.WebserviceSessionId request_x = new webserviceEmbeddedServerQaBackendCo.WebserviceSessionId();
webserviceEmbeddedServerQaBackendCo.AsyncResult_element response_x;
request_x.id = id;
// A map of key-value pairs that represent the response that the external service sends after receiving the request. In each pair, the key is a response identifier. The value is the response object, which is an instance of a type that is created as part of the auto-generated stub class.
Map<String, webserviceEmbeddedServerQaBackendCo.AsyncResult_element> response_map_x = new Map<String, webserviceEmbeddedServerQaBackendCo.AsyncResult_element>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this, // stub - An instance of the Apex class that is auto-generated from a WSDL (the stub class).
request_x, // request - The request to the external service. The request is an instance of a type that is created as part of the auto-generated stub class.
response_map_x, // response
new String[]{endpoint_x, // the URL of the external web service
'', // The SOAP action.
s_ns0, // The request namespace.
'WebserviceSessionId', // The request name.
s_ns0, // The response namespace.
'AsyncResult', // The response name.
'webserviceEmbeddedServerQaBackendCo.AsyncResult_element'} // The response type.
);
response_x = response_map_x.get('response_x');
}
public webserviceEmbeddedServerQaBackendCo.TestCallbackResult_element testCallback(String url,String method,webserviceEmbeddedServerQaBackendCo.headerType header,String body,Integer expectedHttpStatusCode,String authenticationFunctionId,webserviceEmbeddedServerQaBackendCo.authenticationPropertiesType authenticationProperties,Integer retryHttpStatusCode) {
webserviceEmbeddedServerQaBackendCo.CallbackContext_element request_x = new webserviceEmbeddedServerQaBackendCo.CallbackContext_element();
webserviceEmbeddedServerQaBackendCo.TestCallbackResult_element response_x;
request_x.url = url;
request_x.method = method;
request_x.header = header;
request_x.body = body;
request_x.expectedHttpStatusCode = expectedHttpStatusCode;
request_x.authenticationFunctionId = authenticationFunctionId;
request_x.authenticationProperties = authenticationProperties;
request_x.retryHttpStatusCode = retryHttpStatusCode;
// A map of key-value pairs that represent the response that the external service sends after receiving the request. In each pair, the key is a response identifier. The value is the response object, which is an instance of a type that is created as part of the auto-generated stub class.
Map<String, webserviceEmbeddedServerQaBackendCo.TestCallbackResult_element> response_map_x = new Map<String, webserviceEmbeddedServerQaBackendCo.TestCallbackResult_element>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this, // stub - An instance of the Apex class that is auto-generated from a WSDL (the stub class).
request_x, // request - The request to the external service. The request is an instance of a type that is created as part of the auto-generated stub class.
response_map_x, // response
new String[]{endpoint_x, // the URL of the external web service
'', // The SOAP action.
s_ns0, // The request namespace.
'CallbackContext', // The request name.
s_ns0, // The response namespace.
'TestCallbackResult', // The response name.
'webserviceEmbeddedServerQaBackendCo.TestCallbackResult_element'} // The response type.
);
response_x = response_map_x.get('response_x');
return response_x;
}
}
public class Empty_element {
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{};
}
public class Entity {
public webserviceEmbeddedServerQaBackendCo.Attribute[] attributes;
public webserviceEmbeddedServerQaBackendCo.Attachment[] attachments;
private transient String[] attributes_type_info = new String[]{'attributes',s_ns0,'Attribute','0','-1','true'};
private transient String[] attachments_type_info = new String[]{'attachments',s_ns0,'Attachment','0','-1','true'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'attributes','attachments'};
}
public class headerType {
public webserviceEmbeddedServerQaBackendCo.headerType_entry_element[] entry;
private transient String[] entry_type_info = new String[]{'entry',s_ns0,'','0','-1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'entry'};
}
public class headerType_entry_element {
public String key;
public String value;
private transient String[] key_type_info = new String[]{'key',s_ns0,'string','0','1','false'};
private transient String[] value_type_info = new String[]{'value',s_ns0,'string','0','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'key','value'};
}
public class InitAndActivateContext_element {
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{};
}
public class InitAndDuplicateContext_element {
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{};
}
public class InitAndSaveContext_element {
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{};
}
public class InitContext_element {
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{};
}
public class InitContextData {
public String locale;
public String userId;
public Boolean offline;
public Boolean activated;
public String salesDocument;
public webserviceEmbeddedServerQaBackendCo.ActivationAttachment printedDocument;
public webserviceEmbeddedServerQaBackendCo.CustomData customData;
private transient String[] locale_type_info = new String[]{'locale',s_ns0,'string','1','1','false'};
private transient String[] userId_type_info = new String[]{'userId',s_ns0,'string','1','1','false'};
private transient String[] offline_type_info = new String[]{'offline',s_ns0,'boolean','1','1','false'};
private transient String[] activated_type_info = new String[]{'activated',s_ns0,'boolean','1','1','false'};
private transient String[] salesDocument_type_info = new String[]{'salesDocument',s_ns0,'base64Binary','0','1','false'};
private transient String[] printedDocument_type_info = new String[]{'printedDocument',s_ns0,'ActivationAttachment','0','1','false'};
private transient String[] customData_type_info = new String[]{'customData',s_ns0,'CustomData','1','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'locale','userId','offline','activated','salesDocument','printedDocument','customData'};
}
public class InitResult_element {
public Boolean successful;
public String urlOpen;
public String urlPrint;
public String urlHeartbeat;
public String urlWebService;
public String urlAdditional;
public String error;
public String formattedStackTrace;
public Boolean reloadPossible;
private transient String[] successful_type_info = new String[]{'successful',s_ns0,'boolean','1','1','false'};
private transient String[] urlOpen_type_info = new String[]{'urlOpen',s_ns0,'string','0','1','false'};
private transient String[] urlPrint_type_info = new String[]{'urlPrint',s_ns0,'string','0','1','false'};
private transient String[] urlHeartbeat_type_info = new String[]{'urlHeartbeat',s_ns0,'string','0','1','false'};
private transient String[] urlWebService_type_info = new String[]{'urlWebService',s_ns0,'string','0','1','false'};
private transient String[] urlAdditional_type_info = new String[]{'urlAdditional',s_ns0,'string','0','1','false'};
private transient String[] error_type_info = new String[]{'error',s_ns0,'string','0','1','false'};
private transient String[] formattedStackTrace_type_info = new String[]{'formattedStackTrace',s_ns0,'string','0','1','false'};
private transient String[] reloadPossible_type_info = new String[]{'reloadPossible',s_ns0,'boolean','1','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'successful','urlOpen','urlPrint','urlHeartbeat','urlWebService','urlAdditional','error','formattedStackTrace','reloadPossible'};
}
public class InitResultRequest_element {
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{};
}
public class InitSyncContext_element {
public String locale;
public String userId;
public webserviceEmbeddedServerQaBackendCo.CustomData customData;
private transient String[] locale_type_info = new String[]{'locale',s_ns0,'string','1','1','false'};
private transient String[] userId_type_info = new String[]{'userId',s_ns0,'string','1','1','false'};
private transient String[] customData_type_info = new String[]{'customData',s_ns0,'CustomData','1','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'locale','userId','customData'};
}
public class InitSyncResult_element {
public Boolean successful;
public String urlOfflineSync;
public String urlOnlineSync;
public String error;
public String formattedStackTrace;
public String syncUserName;
public String syncPassword;
private transient String[] successful_type_info = new String[]{'successful',s_ns0,'boolean','1','1','false'};
private transient String[] urlOfflineSync_type_info = new String[]{'urlOfflineSync',s_ns0,'string','0','1','false'};
private transient String[] urlOnlineSync_type_info = new String[]{'urlOnlineSync',s_ns0,'string','0','1','false'};
private transient String[] error_type_info = new String[]{'error',s_ns0,'string','0','1','false'};
private transient String[] formattedStackTrace_type_info = new String[]{'formattedStackTrace',s_ns0,'string','0','1','false'};
private transient String[] syncUserName_type_info = new String[]{'syncUserName',s_ns0,'string','0','1','false'};
private transient String[] syncPassword_type_info = new String[]{'syncPassword',s_ns0,'string','0','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'successful','urlOfflineSync','urlOnlineSync','error','formattedStackTrace','syncUserName','syncPassword'};
}
//Extends http://webservice.embedded.server.qa.backend.com/:Entity
public class RelatedEntity {
public webserviceEmbeddedServerQaBackendCo.Attribute[] attributes;
public webserviceEmbeddedServerQaBackendCo.Attachment[] attachments;
private transient String[] attributes_type_info = new String[]{'attributes',s_ns0,'Attribute','0','-1','true'};
private transient String[] attachments_type_info = new String[]{'attachments',s_ns0,'Attachment','0','-1','true'};
public String name;
public String id;
public Boolean delete_x;
private transient String[] name_type_info = new String[]{'name',s_ns0,'string','1','1','false'};
private transient String[] id_type_info = new String[]{'id',s_ns0,'string','0','1','false'};
private transient String[] delete_x_type_info = new String[]{'delete',s_ns0,'boolean','1','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'attributes','attachments','name','id','delete_x'};
}
public class ResultRequest {
public webserviceEmbeddedServerQaBackendCo.WebserviceSessionId sessionId;
public webserviceEmbeddedServerQaBackendCo.WebserviceTaskId taskId;
private transient String[] sessionId_type_info = new String[]{'sessionId',s_ns0,'WebserviceSessionId','1','1','false'};
private transient String[] taskId_type_info = new String[]{'taskId',s_ns0,'WebserviceTaskId','1','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'sessionId','taskId'};
}
public class SaveContext_element {
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{};
}
public class SaveResult_element {
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{};
}
public class SaveResultRequest_element {
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{};
}
public class SaveResultType {
public Boolean successful;
public String error;
public String formattedStackTrace;
public String salesDocument;
public webserviceEmbeddedServerQaBackendCo.CustomSaveData customData;
private transient String[] successful_type_info = new String[]{'successful',s_ns0,'boolean','1','1','false'};
private transient String[] error_type_info = new String[]{'error',s_ns0,'string','0','1','false'};
private transient String[] formattedStackTrace_type_info = new String[]{'formattedStackTrace',s_ns0,'string','0','1','false'};
private transient String[] salesDocument_type_info = new String[]{'salesDocument',s_ns0,'base64Binary','0','1','false'};
private transient String[] customData_type_info = new String[]{'customData',s_ns0,'CustomSaveData','0','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'successful','error','formattedStackTrace','salesDocument','customData'};
}
public class TestCallbackResult_element {
public String error;
public String formattedStackTrace;
public Integer responseCode;
public String response;
private transient String[] error_type_info = new String[]{'error',s_ns0,'string','0','1','false'};
private transient String[] formattedStackTrace_type_info = new String[]{'formattedStackTrace',s_ns0,'string','0','1','false'};
private transient String[] responseCode_type_info = new String[]{'responseCode',s_ns0,'int','1','1','false'};
private transient String[] response_type_info = new String[]{'response',s_ns0,'string','0','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'error','formattedStackTrace','responseCode','response'};
}
public class TestResult_element {
public String error;
public String formattedStackTrace;
public Integer responseCode;
public String response;
private transient String[] error_type_info = new String[]{'error',s_ns0,'string','0','1','false'};
private transient String[] formattedStackTrace_type_info = new String[]{'formattedStackTrace',s_ns0,'string','0','1','false'};
private transient String[] responseCode_type_info = new String[]{'responseCode',s_ns0,'int','1','1','false'};
private transient String[] response_type_info = new String[]{'response',s_ns0,'string','0','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'error','formattedStackTrace','responseCode','response'};
}
public class UpdateContext {
public String locale;
public webserviceEmbeddedServerQaBackendCo.CustomData customData;
private transient String[] locale_type_info = new String[]{'locale',s_ns0,'string','0','1','false'};
private transient String[] customData_type_info = new String[]{'customData',s_ns0,'CustomData','0','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'locale','customData'};
}
public class WebserviceSessionId {
public String id;
private transient String[] id_type_info = new String[]{'id',s_ns0,'string','1','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'id'};
}
public class WebserviceTaskId {
public String id;
private transient String[] id_type_info = new String[]{'id',s_ns0,'string','1','1','false'};
private transient String[] apex_schema_type_info = new String[]{s_ns0,'true','false'};
private transient String[] field_order_type_info = new String[]{'id'};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment