Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Generated by wsdl2apex
- public class stageMyWebServiceMyProductComAuServiceW {
- public class selectAddress {
- public stageMyWebServiceMyProductComAuServiceW.addressSuggestion suggestion;
- private String[] suggestion_type_info = new String[]{'suggestion',MyWebService_Constants.ENV_REQUEST_NS,'addressSuggestion','0','1','false'};
- private String[] apex_schema_type_info = new String[]{MyWebService_Constants.ENV_REQUEST_NS,'false','false'};
- private String[] field_order_type_info = new String[]{'suggestion'};
- }
- public class ClientSystemException extends Exception{
- private String[] apex_schema_type_info = new String[]{MyWebService_Constants.ENV_REQUEST_NS,'false','false'};
- private String[] field_order_type_info = new String[]{};
- }
- public class suggestAddressesResult {
- public String debug;
- public stageMyWebServiceMyProductComAuServiceW.addressSuggestion[] resultList;
- public Integer resultStatus;
- private String[] debug_type_info = new String[]{'debug',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] resultList_type_info = new String[]{'resultList',MyWebService_Constants.ENV_REQUEST_NS,'addressSuggestion','0','-1','true'};
- private String[] resultStatus_type_info = new String[]{'resultStatus',MyWebService_Constants.XML_SCHEMA_NS,'int','1','1','false'};
- private String[] apex_schema_type_info = new String[]{MyWebService_Constants.ENV_REQUEST_NS,'false','false'};
- private String[] field_order_type_info = new String[]{'debug','resultList','resultStatus'};
- }
- public class UsernameToken {
- public UsernameToken(String username, String password) {
- this.Username = username;
- this.Password = password;
- }
- public String Username;
- public String Password;
- private String[] Username_type_info = new String[]{'Username',MyWebService_Constants.SECURITY_HEADER_SCHEMA_NS,'string','1','1','false'};
- private String[] Password_type_info = new String[]{'Password',MyWebService_Constants.SECURITY_HEADER_SCHEMA_NS,'string','1','1','false'};
- private String[] apex_schema_type_info = new String[]{MyWebService_Constants.SECURITY_HEADER_SCHEMA_NS,'true','true'};
- private String[] field_order_type_info = new String[]{'Username','Password'};
- }
- public class suggestNames {
- public String searchType;
- public String name;
- private String[] searchType_type_info = new String[]{'searchType',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] name_type_info = new String[]{'name',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] apex_schema_type_info = new String[]{MyWebService_Constants.ENV_REQUEST_NS,'false','false'};
- private String[] field_order_type_info = new String[]{'searchType','name'};
- }
- public class selectAddressResult {
- public String[] alternativePhoneNumbers;
- public String barcode;
- public String bsp;
- public String buildingName;
- public String debug;
- public stageMyWebServiceMyProductComAuServiceW.addressDetail[] detailList;
- public String dpid;
- public String formattedAddress;
- public Boolean inPrintedWpBook;
- public String phoneNumber;
- public Boolean postal;
- public String postcode;
- public String primaryName;
- public Integer resultStatus;
- public String secondaryName;
- public String state;
- public String streetName;
- public String streetNumber;
- public String streetSuffix;
- public String streetType;
- public String subPremise;
- public String suburb;
- public Boolean whitePages;
- public String wpListingType;
- private String[] alternativePhoneNumbers_type_info = new String[]{'alternativePhoneNumbers',MyWebService_Constants.XML_SCHEMA_NS,'string','0','-1','true'};
- private String[] barcode_type_info = new String[]{'barcode',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] bsp_type_info = new String[]{'bsp',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] buildingName_type_info = new String[]{'buildingName',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] debug_type_info = new String[]{'debug',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] detailList_type_info = new String[]{'detailList',MyWebService_Constants.ENV_REQUEST_NS,'addressDetail','0','-1','true'};
- private String[] dpid_type_info = new String[]{'dpid',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] formattedAddress_type_info = new String[]{'formattedAddress',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] inPrintedWpBook_type_info = new String[]{'inPrintedWpBook',MyWebService_Constants.XML_SCHEMA_NS,'boolean','1','1','false'};
- private String[] phoneNumber_type_info = new String[]{'phoneNumber',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] postal_type_info = new String[]{'postal',MyWebService_Constants.XML_SCHEMA_NS,'boolean','1','1','false'};
- private String[] postcode_type_info = new String[]{'postcode',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] primaryName_type_info = new String[]{'primaryName',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] resultStatus_type_info = new String[]{'resultStatus',MyWebService_Constants.XML_SCHEMA_NS,'int','1','1','false'};
- private String[] secondaryName_type_info = new String[]{'secondaryName',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] state_type_info = new String[]{'state',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] streetName_type_info = new String[]{'streetName',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] streetNumber_type_info = new String[]{'streetNumber',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] streetSuffix_type_info = new String[]{'streetSuffix',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] streetType_type_info = new String[]{'streetType',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] subPremise_type_info = new String[]{'subPremise',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] suburb_type_info = new String[]{'suburb',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] whitePages_type_info = new String[]{'whitePages',MyWebService_Constants.XML_SCHEMA_NS,'boolean','1','1','false'};
- private String[] wpListingType_type_info = new String[]{'wpListingType',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] apex_schema_type_info = new String[]{MyWebService_Constants.ENV_REQUEST_NS,'false','false'};
- private String[] field_order_type_info = new String[]{'alternativePhoneNumbers','barcode','bsp','buildingName','debug','detailList','dpid','formattedAddress','inPrintedWpBook','phoneNumber','postal','postcode','primaryName','resultStatus','secondaryName','state','streetName','streetNumber','streetSuffix','streetType','subPremise','suburb','whitePages','wpListingType'};
- }
- public class addressDetail {
- public String barcode;
- public String bsp;
- public String buildingName;
- public String dpid;
- public String formattedAddress;
- public String postcode;
- public String state;
- public String streetName;
- public String streetNumber;
- public String streetSuffix;
- public String streetType;
- public String subPremise;
- public String suburb;
- private String[] barcode_type_info = new String[]{'barcode',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] bsp_type_info = new String[]{'bsp',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] buildingName_type_info = new String[]{'buildingName',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] dpid_type_info = new String[]{'dpid',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] formattedAddress_type_info = new String[]{'formattedAddress',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] postcode_type_info = new String[]{'postcode',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] state_type_info = new String[]{'state',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] streetName_type_info = new String[]{'streetName',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] streetNumber_type_info = new String[]{'streetNumber',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] streetSuffix_type_info = new String[]{'streetSuffix',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] streetType_type_info = new String[]{'streetType',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] subPremise_type_info = new String[]{'subPremise',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] suburb_type_info = new String[]{'suburb',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] apex_schema_type_info = new String[]{MyWebService_Constants.ENV_REQUEST_NS,'false','false'};
- private String[] field_order_type_info = new String[]{'barcode','bsp','buildingName','dpid','formattedAddress','postcode','state','streetName','streetNumber','streetSuffix','streetType','subPremise','suburb'};
- }
- public class suggestAddressesResponse {
- public stageMyWebServiceMyProductComAuServiceW.suggestAddressesResult return_x;
- private String[] return_x_type_info = new String[]{'return',MyWebService_Constants.ENV_REQUEST_NS,'suggestAddressesResult','0','1','false'};
- private String[] apex_schema_type_info = new String[]{MyWebService_Constants.ENV_REQUEST_NS,'false','false'};
- private String[] field_order_type_info = new String[]{'return_x'};
- }
- public class Security {
- String username;
- String password;
- public stageMyWebServiceMyProductComAuServiceW.UsernameToken UsernameToken;
- public Security(String username, String password){
- this.username = username;
- this.password = password;
- this.UsernameToken = new stageMyWebServiceMyProductComAuServiceW.UsernameToken(username, password);
- }
- private String[] UsernameToken_type_info = new String[]{'UsernameToken',MyWebService_Constants.SECURITY_HEADER_SCHEMA_NS,'UsernameToken','1','1','false'};
- private String[] apex_schema_type_info = new String[]{MyWebService_Constants.SECURITY_HEADER_SCHEMA_NS,'true','true'};
- private String[] field_order_type_info = new String[]{'UsernameToken'};
- }
- public class addressSuggestion {
- public String formattedAddress;
- public Integer index;
- public Boolean postal;
- public stageMyWebServiceMyProductComAuServiceW.addressSearch search;
- public String secondaryName;
- public Boolean whitePages;
- private String[] formattedAddress_type_info = new String[]{'formattedAddress',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] index_type_info = new String[]{'index',MyWebService_Constants.XML_SCHEMA_NS,'int','1','1','false'};
- private String[] postal_type_info = new String[]{'postal',MyWebService_Constants.XML_SCHEMA_NS,'boolean','1','1','false'};
- private String[] search_type_info = new String[]{'search',MyWebService_Constants.ENV_REQUEST_NS,'addressSearch','0','1','false'};
- private String[] secondaryName_type_info = new String[]{'secondaryName',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] whitePages_type_info = new String[]{'whitePages',MyWebService_Constants.XML_SCHEMA_NS,'boolean','1','1','false'};
- private String[] apex_schema_type_info = new String[]{MyWebService_Constants.ENV_REQUEST_NS,'false','false'};
- private String[] field_order_type_info = new String[]{'formattedAddress','index','postal','search','secondaryName','whitePages'};
- }
- public class MyWebServiceServiceImplPort {
- public String endpoint_x = MyWebService_Constants.ENV_REQUEST_NS;
- 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;
- public stageMyWebServiceMyProductComAuServiceW.Security Security;
- private String Security_hns = 'Security=' + MyWebService_Constants.SECURITY_HEADER_SCHEMA_NS;
- private String[] ns_map_type_info = new String[]{MyWebService_Constants.ENV_REQUEST_NS, 'stageMyWebServiceMyProductComAuServiceW'};
- public MyWebServiceServiceImplPort(String APIUsername, String APIPassword){
- Security = new stageMyWebServiceMyProductComAuServiceW.Security(APIUsername, APIPassword);
- }
- public stageMyWebServiceMyProductComAuServiceW.selectAddressResult selectAddress(stageMyWebServiceMyProductComAuServiceW.addressSuggestion suggestion) {
- stageMyWebServiceMyProductComAuServiceW.selectAddress request_x = new stageMyWebServiceMyProductComAuServiceW.selectAddress();
- stageMyWebServiceMyProductComAuServiceW.selectAddressResponse response_x;
- request_x.suggestion = suggestion;
- Map<String, stageMyWebServiceMyProductComAuServiceW.selectAddressResponse> response_map_x = new Map<String, stageMyWebServiceMyProductComAuServiceW.selectAddressResponse>();
- response_map_x.put('response_x', response_x);
- if(!Test.isRunningTest()){
- WebServiceCallout.invoke(
- this,
- request_x,
- response_map_x,
- new String[]{endpoint_x,
- '',
- MyWebService_Constants.ENV_REQUEST_NS,
- 'selectAddress',
- MyWebService_Constants.STAGE_RESPONSE_NS,
- 'selectAddressResponse',
- 'stageMyWebServiceMyProductComAuServiceW.selectAddressResponse'}
- );
- response_x = response_map_x.get('response_x');
- }
- else{
- selectAddressResult selAddrRes = new selectAddressResult();
- selAddrRes.formattedAddress = '34 ZigZag Street, SuburbS, MLB';
- selAddrRes.postal = true;
- selAddrRes.whitepages = true;
- selAddrRes.primaryName = 'abc';
- selAddrRes.secondaryName = 'try';
- selAddrRes.phoneNumber = '1239087';
- selAddrRes.suburb = 'SuburbS';
- selectAddressResponse selAddrResponse = new selectAddressResponse();
- selAddrResponse.return_x = selAddrRes;
- response_x = selAddrResponse;
- }
- system.debug(response_x);
- return response_x.return_x;
- }
- public String[] suggestNames(String searchType,String name) {
- stageMyWebServiceMyProductComAuServiceW.suggestNames request_x = new stageMyWebServiceMyProductComAuServiceW.suggestNames();
- stageMyWebServiceMyProductComAuServiceW.suggestNamesResponse response_x;
- request_x.searchType = searchType;
- request_x.name = name;
- Map<String, stageMyWebServiceMyProductComAuServiceW.suggestNamesResponse> response_map_x = new Map<String, stageMyWebServiceMyProductComAuServiceW.suggestNamesResponse>();
- response_map_x.put('response_x', response_x);
- if(!Test.isRunningTest()){
- WebServiceCallout.invoke(
- this,
- request_x,
- response_map_x,
- new String[]{endpoint_x,
- '',
- MyWebService_Constants.ENV_REQUEST_NS,
- 'suggestNames',
- MyWebService_Constants.STAGE_RESPONSE_NS,
- 'suggestNamesResponse',
- 'stageMyWebServiceMyProductComAuServiceW.suggestNamesResponse'}
- );
- response_x = response_map_x.get('response_x');
- }
- else{
- suggestNamesResponse suggN = new suggestNamesResponse();
- suggN.return_x=new String[]{'abc','bcd','cde'};
- response_x = suggN;
- }
- system.debug(response_x);
- return response_x.return_x;
- }
- public stageMyWebServiceMyProductComAuServiceW.suggestAddressesResult suggestAddresses(stageMyWebServiceMyProductComAuServiceW.addressSearch search) {
- stageMyWebServiceMyProductComAuServiceW.suggestAddresses request_x = new stageMyWebServiceMyProductComAuServiceW.suggestAddresses();
- stageMyWebServiceMyProductComAuServiceW.suggestAddressesResponse response_x;
- request_x.search = search;
- Map<String, stageMyWebServiceMyProductComAuServiceW.suggestAddressesResponse> response_map_x = new Map<String, stageMyWebServiceMyProductComAuServiceW.suggestAddressesResponse>();
- response_map_x.put('response_x', response_x);
- if(!Test.isRunningTest()){
- WebServiceCallout.invoke(
- this,
- request_x,
- response_map_x,
- new String[]{endpoint_x,
- '',
- MyWebService_Constants.ENV_REQUEST_NS,
- 'suggestAddresses',
- MyWebService_Constants.STAGE_RESPONSE_NS,
- 'suggestAddressesResponse',
- 'stageMyWebServiceMyProductComAuServiceW.suggestAddressesResponse'}
- );
- response_x = response_map_x.get('response_x');
- }
- else{
- AddressSearch search1 = new AddressSearch();
- search1.formattedAddressIncludesPostcode = true;
- search1.formattedAddressIncludesState = true;
- search1.formattedAddressIncludesSuburb = true;
- search1.streetNumber = '34';
- search1.streetName = 'ZigZag Street';
- search1.suburb = 'SuburbS';
- search1.state = 'MLB';
- addressSuggestion sugg = new addressSuggestion();
- sugg.search = search1;
- sugg.postal = false;
- sugg.whitePages = false;
- sugg.formattedAddress = '34 ZigZag Street, SuburbS, MLB';
- suggestAddressesResult suggAddrRes = new suggestAddressesResult();
- suggAddrRes.resultList = new List<addressSuggestion>();
- suggAddrRes.resultList.add(sugg);
- suggAddrRes.resultStatus = 1;
- suggestAddressesResponse suggAddrResponse = new suggestAddressesResponse();
- suggAddrResponse.return_x = suggAddrRes;
- response_x = suggAddrResponse;
- }
- system.debug(response_x);
- return response_x.return_x;
- }
- }
- public class selectAddressResponse {
- public stageMyWebServiceMyProductComAuServiceW.selectAddressResult return_x;
- private String[] return_x_type_info = new String[]{'return',MyWebService_Constants.ENV_REQUEST_NS,'selectAddressResult','0','1','false'};
- private String[] apex_schema_type_info = new String[]{MyWebService_Constants.ENV_REQUEST_NS,'false','false'};
- private String[] field_order_type_info = new String[]{'return_x'};
- }
- public class suggestNamesResponse {
- public String[] return_x;
- private String[] return_x_type_info = new String[]{'return',MyWebService_Constants.XML_SCHEMA_NS,'string','0','-1','false'};
- private String[] apex_schema_type_info = new String[]{MyWebService_Constants.ENV_REQUEST_NS,'false','false'};
- private String[] field_order_type_info = new String[]{'return_x'};
- }
- public class addressSearch {
- public String formattedAddress;
- public Boolean formattedAddressIncludesPostcode;
- public Boolean formattedAddressIncludesState;
- public Boolean formattedAddressIncludesSuburb;
- public String name;
- public String options;
- public String phoneNumber;
- public String postcode;
- public String searchType;
- public String state;
- public String streetName;
- public String streetNumber;
- public String streetType;
- public String suburb;
- private String[] formattedAddress_type_info = new String[]{'formattedAddress',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] formattedAddressIncludesPostcode_type_info = new String[]{'formattedAddressIncludesPostcode',MyWebService_Constants.XML_SCHEMA_NS,'boolean','1','1','false'};
- private String[] formattedAddressIncludesState_type_info = new String[]{'formattedAddressIncludesState',MyWebService_Constants.XML_SCHEMA_NS,'boolean','1','1','false'};
- private String[] formattedAddressIncludesSuburb_type_info = new String[]{'formattedAddressIncludesSuburb',MyWebService_Constants.XML_SCHEMA_NS,'boolean','1','1','false'};
- private String[] name_type_info = new String[]{'name',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] options_type_info = new String[]{'options',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] phoneNumber_type_info = new String[]{'phoneNumber',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] postcode_type_info = new String[]{'postcode',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] searchType_type_info = new String[]{'searchType',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] state_type_info = new String[]{'state',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] streetName_type_info = new String[]{'streetName',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] streetNumber_type_info = new String[]{'streetNumber',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] streetType_type_info = new String[]{'streetType',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] suburb_type_info = new String[]{'suburb',MyWebService_Constants.XML_SCHEMA_NS,'string','0','1','false'};
- private String[] apex_schema_type_info = new String[]{MyWebService_Constants.ENV_REQUEST_NS,'false','false'};
- private String[] field_order_type_info = new String[]{'formattedAddress','formattedAddressIncludesPostcode','formattedAddressIncludesState','formattedAddressIncludesSuburb','name','options','phoneNumber','postcode','searchType','state','streetName','streetNumber','streetType','suburb'};
- }
- public class suggestAddresses {
- public stageMyWebServiceMyProductComAuServiceW.addressSearch search;
- private String[] search_type_info = new String[]{'search',MyWebService_Constants.ENV_REQUEST_NS,'addressSearch','0','1','false'};
- private String[] apex_schema_type_info = new String[]{MyWebService_Constants.ENV_REQUEST_NS,'false','false'};
- private String[] field_order_type_info = new String[]{'search'};
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement