You need to sign in to do that
Don't have an account?
Tamil
StrikeIron WSDL
Hi All,
Hope everyone is doing well. I have a issue with StrikeIron WSDL for North America address Verification.
WSDL Code:
public wwwStrikeironCom.NorthAmericanAddressVerificationResponse_element NorthAmericanAddressVerification(String UserID,String Password,String AddressLine1,String AddressLine2,String CityStateOrProvinceZIPOrPostalCode,String Country,String Firm,String Urbanization,String Casing) {
wwwStrikeironCom.NorthAmericanAddressVerification_element request_x = new wwwStrikeironCom.NorthAmericanAddressVerification_element();
request_x.UserID = UserID;
request_x.Password = Password;
request_x.AddressLine1 = AddressLine1;
request_x.AddressLine2 = AddressLine2;
request_x.CityStateOrProvinceZIPOrPostalCode = CityStateOrProvinceZIPOrPostalCode;
request_x.Country = Country;
request_x.Firm = Firm;
request_x.Urbanization = Urbanization;
request_x.Casing = Casing;
wwwStrikeironCom.NorthAmericanAddressVerificationResponse_element response_x;
Map<String, wwwStrikeironCom.NorthAmericanAddressVerificationResponse_element> response_map_x = new Map<String, wwwStrikeironCom.NorthAmericanAddressVerificationResponse_element>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this,
request_x,
response_map_x,
new String[]{endpoint_x,
'http://www.strikeiron.com/NorthAmericanAddressVerification',
'http://www.strikeiron.com',
'NorthAmericanAddressVerification',
'http://www.strikeiron.com',
'NorthAmericanAddressVerificationResponse',
'wwwStrikeironCom.NorthAmericanAddressVerificationResponse_element'}
);
response_x = response_map_x.get('response_x');
return response_x;
}
My Code:
try
{
wwwStrikeironCom.NorthAmericanAddressVerificationServiceSoap na = new wwwStrikeironCom.NorthAmericanAddressVerificationServiceSoap();
String UserID = '**************7E';
String Password = '';
String AddressLine1 = '15501 Weston Pkwy';
String AddressLine2 = 'Suite 150';
String CityStateOrProvinceZIPOrPostalCode = 'Cary NC 27513';
String Country ='US';
String Firm = 'StrikeIron';
String Urbanization ='';
String Casing = 'PROPER';
wwwStrikeironCom.NorthAmericanAddressVerificationResponse_element outp = na.NorthAmericanAddressVerification(UserID,Password,AddressLine1,AddressLine2,CityStateOrProvinceZIPOrPostalCode,
Country,Firm,Urbanization,Casing);
System.debug( 'The output is ' + outp);
}
Catch(Exception e)
{
System.debug(e);
}
Error:
System.CalloutException: Web service callout failed: Unable to parse callout response. Apex type not found for element AddressLine1
I dont know the solution for this issue. Can some one help me out to fix this issue.
Hope everyone is doing well. I have a issue with StrikeIron WSDL for North America address Verification.
WSDL Code:
public wwwStrikeironCom.NorthAmericanAddressVerificationResponse_element NorthAmericanAddressVerification(String UserID,String Password,String AddressLine1,String AddressLine2,String CityStateOrProvinceZIPOrPostalCode,String Country,String Firm,String Urbanization,String Casing) {
wwwStrikeironCom.NorthAmericanAddressVerification_element request_x = new wwwStrikeironCom.NorthAmericanAddressVerification_element();
request_x.UserID = UserID;
request_x.Password = Password;
request_x.AddressLine1 = AddressLine1;
request_x.AddressLine2 = AddressLine2;
request_x.CityStateOrProvinceZIPOrPostalCode = CityStateOrProvinceZIPOrPostalCode;
request_x.Country = Country;
request_x.Firm = Firm;
request_x.Urbanization = Urbanization;
request_x.Casing = Casing;
wwwStrikeironCom.NorthAmericanAddressVerificationResponse_element response_x;
Map<String, wwwStrikeironCom.NorthAmericanAddressVerificationResponse_element> response_map_x = new Map<String, wwwStrikeironCom.NorthAmericanAddressVerificationResponse_element>();
response_map_x.put('response_x', response_x);
WebServiceCallout.invoke(
this,
request_x,
response_map_x,
new String[]{endpoint_x,
'http://www.strikeiron.com/NorthAmericanAddressVerification',
'http://www.strikeiron.com',
'NorthAmericanAddressVerification',
'http://www.strikeiron.com',
'NorthAmericanAddressVerificationResponse',
'wwwStrikeironCom.NorthAmericanAddressVerificationResponse_element'}
);
response_x = response_map_x.get('response_x');
return response_x;
}
My Code:
try
{
wwwStrikeironCom.NorthAmericanAddressVerificationServiceSoap na = new wwwStrikeironCom.NorthAmericanAddressVerificationServiceSoap();
String UserID = '**************7E';
String Password = '';
String AddressLine1 = '15501 Weston Pkwy';
String AddressLine2 = 'Suite 150';
String CityStateOrProvinceZIPOrPostalCode = 'Cary NC 27513';
String Country ='US';
String Firm = 'StrikeIron';
String Urbanization ='';
String Casing = 'PROPER';
wwwStrikeironCom.NorthAmericanAddressVerificationResponse_element outp = na.NorthAmericanAddressVerification(UserID,Password,AddressLine1,AddressLine2,CityStateOrProvinceZIPOrPostalCode,
Country,Firm,Urbanization,Casing);
System.debug( 'The output is ' + outp);
}
Catch(Exception e)
{
System.debug(e);
}
Error:
System.CalloutException: Web service callout failed: Unable to parse callout response. Apex type not found for element AddressLine1
I dont know the solution for this issue. Can some one help me out to fix this issue.
I suspect you're using SF classes generated from an older version of the WSDL.
Thanks for the reply. Im using StrikeIron Version 6. I have pasted the log below. I have not pasted the full log file. if you want i can mail you.
Thanks
Raj
14:41:43.373 (373157657)|SYSTEM_METHOD_ENTRY|[705]|WebServiceCallout.invoke(APEX_OBJECT, APEX_OBJECT, MAP, LIST)
14:41:43.375 (375097696)|CALLOUT_REQUEST|[705]|<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Header /><env:Body><NorthAmericanAddressVerification xmlns="http://www.strikeiron.com"><UserID>***********</UserID><Password></Password><AddressLine1>15501 Weston Pkwy</AddressLine1><CityStateOrProvinceZIPOrPostalCode>Cary NC 27513</CityStateOrProvinceZIPOrPostalCode><Country>US</Country><Firm>StrikeIron</Firm><Urbanization></Urbanization><Casing>PROPER</Casing></NorthAmericanAddressVerification></env:Body></env:Envelope>
14:41:43.375 (375162103)|CALLOUT_REQUEST|[705]|NorthAmericanAddressVerification_element:[AddressLine1=15501 Weston Pkwy, AddressLine1_type_info=(AddressLine1, http://www.strikeiron.com, null, 0, 1, false), AddressLine2=null, AddressLine2_type_info=(AddressLine2, http://www.strikeiron.com, null, 0, 1, false), Casing=PROPER, Casing_type_info=(Casing, http://www.strikeiron.com, null, 0, 1, false), CityStateOrProvinceZIPOrPostalCode=Cary NC 27513, CityStateOrProvinceZIPOrPostalCode_type_info=(CityStateOrProvinceZIPOrPostalCode, http://www.strikeiron.com, null, 0, 1, false), Country=US, Country_type_info=(Country, http://www.strikeiron.com, null, 1, 1, false), Firm=StrikeIron, Firm_type_info=(Firm, http://www.strikeiron.com, null, 0, 1, false), Password=, Password_type_info=(Password, http://www.strikeiron.com, null, 0, 1, false), Urbanization=, Urbanization_type_info=(Urbanization, http://www.strikeiron.com, null, 0, 1, false), UserID=**********, UserID_type_info=(UserID, http://www.strikeiron.com, null, 0, 1, false), apex_schema_type_info=(http://www.strikeiron.com, true, false), field_order_type_info=(UserID, Password, AddressLine1, AddressLine2, CityStateOrProvinceZIPOrPostalCode, Country, Firm, Urbanization, Casing)]::SFDC_STACK_DEPTH=1 SOAPAction="http://www.strikeiron.com/NorthAmericanAddressVerification" User-Agent=SFDC-Callout/30.0 Accept=text/xml Content-Type=text/xml; charset=UTF-8
14:41:43.681 (681517932)|CALLOUT_RESPONSE|[705]|<?xml version="1.0" encoding="utf-8"?>
<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>
<NorthAmericanAddressVerificationResponse xmlns="http://www.strikeiron.com">
<NorthAmericanAddressVerificationResult>
<ServiceStatus>
<StatusNbr>200</StatusNbr>
<StatusDescription>Found</StatusDescription>
</ServiceStatus>
<ServiceResult>
<USAddress>
<AddressLine1>15501 Weston Pkwy</AddressLine1>
<AddressLine2 />
<StreetNumber>15501</StreetNumber>
<Firm>Strikeiron</Firm>
<PreDirection />
<StreetName>Weston</StreetName>
<StreetType>Pkwy</StreetType>
<PostDirection />
<Extension />
<ExtensionNumber />
<Village />
<City>Cary</City>
<AddressStatus>Valid</AddressStatus>
<State>NC</State>
<Urbanization />
<ZIPPlus4>27513-8636</ZIPPlus4>
<ZIPCode>27513</ZIPCode>
<ZIPAddOn>8636</ZIPAddOn>
<CarrierRoute>R034</CarrierRoute>
<PMB />
<PMBDesignator />
<DeliveryPoint>99</DeliveryPoint>
<DPCheckDigit>1</DPCheckDigit>
<LACS />
<CMRA>N</CMRA>
<DPV>D</DPV>
<DPVFootnote>AA N1</DPVFootnote>
<RDI />
<RecordType>H</RecordType>
<CongressDistrict>2</CongressDistrict>
<County>Wake</County>
<CountyNumber>183</CountyNumber>
<StateNumber>37</StateNumber>
<GeoCode>
<Latitude>35.813912</Latitude>
<Longitude>-78.818257</Longitude>
<CensusTract>053522</CensusTract>
<StateNumber>37</StateNumber>
<CountyNumber>183</CountyNumber>
<BlockNumber>2023</BlockNumber>
<BlockGroup>371830535222</BlockGroup>
</GeoCode>
</USAddress>
</ServiceResult>
</NorthAmericanAddressVerificationResult>
<SISubscriptionInfo>
<LicenseStatusCode>0</LicenseStatusCode>
<LicenseStatus>Valid license key</LicenseStatus>
<LicenseActionCode>0</LicenseActionCode>
<LicenseAction>Decremented hit count</LicenseAction>
<RemainingHits>6</RemainingHits>
<Amount>0</Amount>
</SISubscriptionInfo>
</NorthAmericanAddressVerificationResponse>
</soap:Body>
</soap:Envelope>
14:41:43.697 (697700373)|VARIABLE_ASSIGNMENT|[338]|this.field_order_type_info|{"serId":1,"value":"List of size 21 too large to display"}|0x5017bc5a
14:41:43.697 (697912273)|EXCEPTION_THROWN|[705]|System.CalloutException: Web service callout failed: Unable to parse callout response. Apex type not found for element AddressLine1
14:41:43.698 (698004267)|HEAP_ALLOCATE|[705]|Bytes:110
14:41:43.698 (698016010)|SYSTEM_METHOD_EXIT|[705]|WebServiceCallout.invoke(APEX_OBJECT, APEX_OBJECT, MAP, LIST)
14:41:43.698 (698028147)|METHOD_EXIT|[58]|01po0000000Ssfp|wwwStrikeironCom.NorthAmericanAddressVerificationServiceSoap.NorthAmericanAddressVerification(String, String, String, String, String, String, String, String, String)
14:41:43.698 (698057217)|VARIABLE_SCOPE_BEGIN|[66]|e|Exception|true|false
14:41:43.698 (698138801)|VARIABLE_ASSIGNMENT|[66]|e|"common.apex.runtime.impl.ExecutionException: Web service callout failed: Unable to parse callout response. Apex type not found for element AddressLine1"|0x3b098f3e
14:41:43.698 (698145197)|STATEMENT_EXECUTE|[66]
14:41:43.698 (698147249)|STATEMENT_EXECUTE|[67]
14:41:43.698 (698152324)|HEAP_ALLOCATE|[67]|Bytes:15
14:41:43.698 (698169456)|SYSTEM_METHOD_ENTRY|[67]|String.valueOf(Object)
14:41:43.698 (698190358)|HEAP_ALLOCATE|[67]|Bytes:131
14:41:43.698 (698199123)|SYSTEM_METHOD_EXIT|[67]|String.valueOf(Object)
14:41:43.698 (698208613)|HEAP_ALLOCATE|[67]|Bytes:146
14:41:43.698 (698217189)|SYSTEM_METHOD_ENTRY|[67]|System.debug(ANY)
14:41:43.698 (698226290)|USER_DEBUG|[67]|DEBUG|Catch StatementSystem.CalloutException: Web service callout failed: Unable to parse callout response. Apex type not found for element AddressLine1
14:41:43.698 (698231746)|SYSTEM_METHOD_EXIT|[67]|System.debug(ANY)
14:41:43.698 (698237490)|METHOD_EXIT|[1]|01po0000000SkyZ|AddrVerification.checkaddr()
14:41:43.698 (698245780)|SYSTEM_MODE_EXIT|false
14:41:44.135 (698284166)|CUMULATIVE_LIMIT_USAGE
14:41:44.135|LIMIT_USAGE_FOR_NS|(default)|
Number of SOQL queries: 0 out of 100
Number of query rows: 0 out of 50000
Number of SOSL queries: 0 out of 20
Number of DML statements: 0 out of 150
Number of DML rows: 0 out of 10000
Maximum CPU time: 5 out of 10000
Maximum heap size: 0 out of 6000000
Number of callouts: 1 out of 10
Number of Email Invocations: 0 out of 10
Number of fields describes: 0 out of 100
Number of record type describes: 0 out of 100
Number of child relationships describes: 0 out of 100
Number of picklist describes: 0 out of 100
Number of future calls: 0 out of 10
Were you able to solve this issue?
We also having the same problem so, if you know a workaround please share it with us.