Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Fedex Address Validation

Posted on 2011-09-05
12
Medium Priority
?
1,560 Views
Last Modified: 2012-05-12
- Please see attached file, we add this code in my application but it gives me error see bleow

Unable to generate a temporary class (result=1).
error CS0029: Cannot implicitly convert type 'AddressValidation.ParsedElement' to 'AddressValidation.ParsedElement[]'

- I am not able to find out what is this.
- I have also added webservices of address validation in my application
- Please check the code and reply me as soon as possible

- Below is my code

------------------------------------------------------------------------------------------------------------
 Private Sub SetFedexAddressValidation()
        ''# Build a AddressValidationRequest object
        Dim request As New RateRequest()
        request.WebAuthenticationDetail = New WebAuthenticationDetail()
        request.WebAuthenticationDetail.UserCredential = New WebAuthenticationCredential()
        request.WebAuthenticationDetail.UserCredential.Key = m_serviceKey
        ' Replace "XXX" with the Key
        request.WebAuthenticationDetail.UserCredential.Password = m_servicePassword
        ' Replace "XXX" with the Password
        '
        request.ClientDetail = New ClientDetail()
        request.ClientDetail.AccountNumber = m_accountNumber
        ' Replace "XXX" with client's account number
        request.ClientDetail.MeterNumber = m_meterNumber
        ' Replace "XXX" with client's meter number
        '
        request.TransactionDetail = New TransactionDetail()
        request.TransactionDetail.CustomerTransactionId = "123"
        ' This is just an echo back
        '
        request.Version = New VersionId()
        ' Creates the Version element with all child elements populated
        '
        Dim request1 As New AddressValidation.AddressValidationRequest()
        request1.RequestTimestamp = DateTime.Now
        '
        request1.Options = New AddressValidation.AddressValidationOptions()
        request1.Options.CheckResidentialStatus = True
        request1.Options.CheckResidentialStatusSpecified = True
        request1.Options.VerifyAddresses = True
        request1.Options.MaximumNumberOfMatches = "5"
        request1.Options.StreetAccuracy = AddressValidation.AddressValidationAccuracyType.MEDIUM
        request1.Options.DirectionalAccuracy = AddressValidation.AddressValidationAccuracyType.MEDIUM
        request1.Options.CompanyNameAccuracy = AddressValidation.AddressValidationAccuracyType.MEDIUM
        request1.Options.ConvertToUpperCase = True
        request1.Options.RecognizeAlternateCityNames = True
        request1.Options.ReturnParsedElements = False
        request1.Options.ConvertToUpperCase = True
        request1.Options.CheckResidentialStatus = True

        '
        request1.AddressesToValidate = New AddressValidation.AddressToValidate(1) {}
        request1.AddressesToValidate(0) = New AddressValidation.AddressToValidate()
        request1.AddressesToValidate(0).AddressId = "Kimmel"
        request1.AddressesToValidate(0).Address = New AddressValidation.Address()
        request1.AddressesToValidate(0).Address.StreetLines = New [String](0) {"425 Morningside Dr"}
        request1.AddressesToValidate(0).Address.City = "Deerfield"
        request1.AddressesToValidate(0).Address.PostalCode = "53531"
        request1.AddressesToValidate(0).Address.CountryCode = "US"
        '      

        Dim addressValidationService As AddressValidation.AddressValidationService = New AddressValidation.AddressValidationService()

        Dim reply As AddressValidation.AddressValidationReply = addressValidationService.addressValidation(request1)

        If (Not reply.HighestSeverity = NotificationSeverityType.ERROR) And (Not reply.HighestSeverity = NotificationSeverityType.FAILURE) Then
            Dim v = reply.AddressResults
        Else
            For Each notification As AddressValidation.Notification In reply.Notifications
                lblmessage.Text += "<br/>" & notification.Code & "-->" & notification.Message
            Next
        End If

    End Sub

--------------------------------------------------------------------------------------------------------------

Thank you.  
0
Comment
Question by:citadelind
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 6
12 Comments
 
LVL 18

Expert Comment

by:ivan_vagunin
ID: 36483337
0
 

Author Comment

by:citadelind
ID: 36483485
It gives still  that error.

Unable to generate a temporary class (result=1).
error CS0029: Cannot implicitly convert type 'AddressValidation.ParsedElement' to 'AddressValidation.ParsedElement[]'

- Please give me another solutions.
0
 
LVL 18

Expert Comment

by:ivan_vagunin
ID: 36483549
I'm really sorry, it is wrong link, I wanted to direct you to this article:
http://webservices20.blogspot.com/2010/02/net-wcf-bug-cannot-convert-type-to.html
What you can do is to change wsdl or change generated proxy. Try to follow the link.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:citadelind
ID: 36483598
I am using web services of Address Validation from Fedex provided.

Please give that solution so i can add in my application.

I copied above my code which is using in my application so it is best way

Please give me that solutions.
0
 
LVL 18

Expert Comment

by:ivan_vagunin
ID: 36483658
The code above is not what you need to change - you need to change code of proxy class. The problem is in AddressesToValidate definition. If you post code for this, I'll show you what is to be changed.
0
 

Author Comment

by:citadelind
ID: 36483700
-- Below is AddressToValidate Webservices code

------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.1
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Serialization;

//
// This source code was auto-generated by wsdl, Version=4.0.30319.1.
//


/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="AddressValidationServiceSoapBinding", Namespace="http://fedex.com/ws/addressvalidation/v2")]
public partial class AddressValidationService : System.Web.Services.Protocols.SoapHttpClientProtocol {
   
    private System.Threading.SendOrPostCallback addressValidationOperationCompleted;
   
    /// <remarks/>
    public AddressValidationService() {
        this.Url = "https://gateway.fedex.com:443/web-services";
    }
   
    /// <remarks/>
    public event addressValidationCompletedEventHandler addressValidationCompleted;
   
    /// <remarks/>
    [System.Web.Services.Protocols.SoapDocumentMethodAttribute("addressValidation", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Bare)]
    [return: System.Xml.Serialization.XmlElementAttribute("AddressValidationReply", Namespace="http://fedex.com/ws/addressvalidation/v2")]
    public AddressValidationReply addressValidation([System.Xml.Serialization.XmlElementAttribute(Namespace="http://fedex.com/ws/addressvalidation/v2")] AddressValidationRequest AddressValidationRequest) {
        object[] results = this.Invoke("addressValidation", new object[] {
                    AddressValidationRequest});
        return ((AddressValidationReply)(results[0]));
    }
   
    /// <remarks/>
    public System.IAsyncResult BeginaddressValidation(AddressValidationRequest AddressValidationRequest, System.AsyncCallback callback, object asyncState) {
        return this.BeginInvoke("addressValidation", new object[] {
                    AddressValidationRequest}, callback, asyncState);
    }
   
    /// <remarks/>
    public AddressValidationReply EndaddressValidation(System.IAsyncResult asyncResult) {
        object[] results = this.EndInvoke(asyncResult);
        return ((AddressValidationReply)(results[0]));
    }
   
    /// <remarks/>
    public void addressValidationAsync(AddressValidationRequest AddressValidationRequest) {
        this.addressValidationAsync(AddressValidationRequest, null);
    }
   
    /// <remarks/>
    public void addressValidationAsync(AddressValidationRequest AddressValidationRequest, object userState) {
        if ((this.addressValidationOperationCompleted == null)) {
            this.addressValidationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnaddressValidationOperationCompleted);
        }
        this.InvokeAsync("addressValidation", new object[] {
                    AddressValidationRequest}, this.addressValidationOperationCompleted, userState);
    }
   
    private void OnaddressValidationOperationCompleted(object arg) {
        if ((this.addressValidationCompleted != null)) {
            System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
            this.addressValidationCompleted(this, new addressValidationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
        }
    }
   
    /// <remarks/>
    public new void CancelAsync(object userState) {
        base.CancelAsync(userState);
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://fedex.com/ws/addressvalidation/v2")]
public partial class AddressValidationRequest {
   
    private WebAuthenticationDetail webAuthenticationDetailField;
   
    private ClientDetail clientDetailField;
   
    private TransactionDetail transactionDetailField;
   
    private VersionId versionField;
   
    private System.DateTime requestTimestampField;
   
    private AddressValidationOptions optionsField;
   
    private AddressToValidate[] addressesToValidateField;
   
    /// <remarks/>
    public WebAuthenticationDetail WebAuthenticationDetail {
        get {
            return this.webAuthenticationDetailField;
        }
        set {
            this.webAuthenticationDetailField = value;
        }
    }
   
    /// <remarks/>
    public ClientDetail ClientDetail {
        get {
            return this.clientDetailField;
        }
        set {
            this.clientDetailField = value;
        }
    }
   
    /// <remarks/>
    public TransactionDetail TransactionDetail {
        get {
            return this.transactionDetailField;
        }
        set {
            this.transactionDetailField = value;
        }
    }
   
    /// <remarks/>
    public VersionId Version {
        get {
            return this.versionField;
        }
        set {
            this.versionField = value;
        }
    }
   
    /// <remarks/>
    public System.DateTime RequestTimestamp {
        get {
            return this.requestTimestampField;
        }
        set {
            this.requestTimestampField = value;
        }
    }
   
    /// <remarks/>
    public AddressValidationOptions Options {
        get {
            return this.optionsField;
        }
        set {
            this.optionsField = value;
        }
    }
   
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("AddressesToValidate")]
    public AddressToValidate[] AddressesToValidate {
        get {
            return this.addressesToValidateField;
        }
        set {
            this.addressesToValidateField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://fedex.com/ws/addressvalidation/v2")]
public partial class WebAuthenticationDetail {
   
    private WebAuthenticationCredential userCredentialField;
   
    /// <remarks/>
    public WebAuthenticationCredential UserCredential {
        get {
            return this.userCredentialField;
        }
        set {
            this.userCredentialField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://fedex.com/ws/addressvalidation/v2")]
public partial class WebAuthenticationCredential {
   
    private string keyField;
   
    private string passwordField;
   
    /// <remarks/>
    public string Key {
        get {
            return this.keyField;
        }
        set {
            this.keyField = value;
        }
    }
   
    /// <remarks/>
    public string Password {
        get {
            return this.passwordField;
        }
        set {
            this.passwordField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://fedex.com/ws/addressvalidation/v2")]
public partial class ParsedAddress {
   
    private ParsedElement[] parsedUrbanizationCodeField;
   
    private ParsedElement[][] parsedStreetLineField;
   
    private ParsedElement[] parsedCityField;
   
    private ParsedElement[] parsedStateOrProvinceCodeField;
   
    private ParsedElement[] parsedPostalCodeField;
   
    private ParsedElement[] parsedCountryCodeField;
   
    /// <remarks/>
    [System.Xml.Serialization.XmlArrayItemAttribute("Elements", IsNullable=false)]
    public ParsedElement[] ParsedUrbanizationCode {
        get {
            return this.parsedUrbanizationCodeField;
        }
        set {
            this.parsedUrbanizationCodeField = value;
        }
    }
   
    /// <remarks/>
    [System.Xml.Serialization.XmlArrayItemAttribute("Elements", typeof(ParsedElement), IsNullable=false)]
    public ParsedElement[][] ParsedStreetLine {
        get {
            return this.parsedStreetLineField;
        }
        set {
            this.parsedStreetLineField = value;
        }
    }
   
    /// <remarks/>
    [System.Xml.Serialization.XmlArrayItemAttribute("Elements", IsNullable=false)]
    public ParsedElement[] ParsedCity {
        get {
            return this.parsedCityField;
        }
        set {
            this.parsedCityField = value;
        }
    }
   
    /// <remarks/>
    [System.Xml.Serialization.XmlArrayItemAttribute("Elements", IsNullable=false)]
    public ParsedElement[] ParsedStateOrProvinceCode {
        get {
            return this.parsedStateOrProvinceCodeField;
        }
        set {
            this.parsedStateOrProvinceCodeField = value;
        }
    }
   
    /// <remarks/>
    [System.Xml.Serialization.XmlArrayItemAttribute("Elements", IsNullable=false)]
    public ParsedElement[] ParsedPostalCode {
        get {
            return this.parsedPostalCodeField;
        }
        set {
            this.parsedPostalCodeField = value;
        }
    }
   
    /// <remarks/>
    [System.Xml.Serialization.XmlArrayItemAttribute("Elements", IsNullable=false)]
    public ParsedElement[] ParsedCountryCode {
        get {
            return this.parsedCountryCodeField;
        }
        set {
            this.parsedCountryCodeField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://fedex.com/ws/addressvalidation/v2")]
public partial class ParsedElement {
   
    private string nameField;
   
    private string valueField;
   
    private AddressValidationChangeType[] changesField;
   
    /// <remarks/>
    public string Name {
        get {
            return this.nameField;
        }
        set {
            this.nameField = value;
        }
    }
   
    /// <remarks/>
    public string Value {
        get {
            return this.valueField;
        }
        set {
            this.valueField = value;
        }
    }
   
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("Changes")]
    public AddressValidationChangeType[] Changes {
        get {
            return this.changesField;
        }
        set {
            this.changesField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://fedex.com/ws/addressvalidation/v2")]
public enum AddressValidationChangeType {
   
    /// <remarks/>
    APARTMENT_NUMBER_NOT_FOUND,
   
    /// <remarks/>
    APARTMENT_NUMBER_REQUIRED,
   
    /// <remarks/>
    NORMALIZED,
   
    /// <remarks/>
    REMOVED_DATA,
   
    /// <remarks/>
    BOX_NUMBER_REQUIRED,
   
    /// <remarks/>
    NO_CHANGES,
   
    /// <remarks/>
    MODIFIED_TO_ACHIEVE_MATCH,
   
    /// <remarks/>
    STREET_RANGE_MATCH,
   
    /// <remarks/>
    BOX_NUMBER_MATCH,
   
    /// <remarks/>
    RR_OR_HC_MATCH,
   
    /// <remarks/>
    CITY_MATCH,
   
    /// <remarks/>
    POSTAL_CODE_MATCH,
   
    /// <remarks/>
    RR_OR_HC_BOX_NUMBER_NEEDED,
   
    /// <remarks/>
    FORMATTED_FOR_COUNTRY,
   
    /// <remarks/>
    APO_OR_FPO_MATCH,
   
    /// <remarks/>
    GENERAL_DELIVERY_MATCH,
   
    /// <remarks/>
    FIELD_TRUNCATED,
   
    /// <remarks/>
    UNABLE_TO_APPEND_NON_ADDRESS_DATA,
   
    /// <remarks/>
    INSUFFICIENT_DATA,
   
    /// <remarks/>
    HOUSE_OR_BOX_NUMBER_NOT_FOUND,
   
    /// <remarks/>
    POSTAL_CODE_NOT_FOUND,
   
    /// <remarks/>
    INVALID_COUNTRY,
   
    /// <remarks/>
    SERVICE_UNAVAILABLE_FOR_ADDRESS,
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://fedex.com/ws/addressvalidation/v2")]
public partial class ProposedAddressDetail {
   
    private string scoreField;
   
    private AddressValidationChangeType[] changesField;
   
    private ResidentialStatusType residentialStatusField;
   
    private bool residentialStatusFieldSpecified;
   
    private DeliveryPointValidationType deliveryPointValidationField;
   
    private bool deliveryPointValidationFieldSpecified;
   
    private string companyNameField;
   
    private Address addressField;
   
    private ParsedElement[] parsedCompanyNameField;
   
    private ParsedAddress parsedAddressField;
   
    private string removedNonAddressDataField;
   
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(DataType="integer")]
    public string Score {
        get {
            return this.scoreField;
        }
        set {
            this.scoreField = value;
        }
    }
   
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("Changes")]
    public AddressValidationChangeType[] Changes {
        get {
            return this.changesField;
        }
        set {
            this.changesField = value;
        }
    }
   
    /// <remarks/>
    public ResidentialStatusType ResidentialStatus {
        get {
            return this.residentialStatusField;
        }
        set {
            this.residentialStatusField = value;
        }
    }
   
    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool ResidentialStatusSpecified {
        get {
            return this.residentialStatusFieldSpecified;
        }
        set {
            this.residentialStatusFieldSpecified = value;
        }
    }
   
    /// <remarks/>
    public DeliveryPointValidationType DeliveryPointValidation {
        get {
            return this.deliveryPointValidationField;
        }
        set {
            this.deliveryPointValidationField = value;
        }
    }
   
    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool DeliveryPointValidationSpecified {
        get {
            return this.deliveryPointValidationFieldSpecified;
        }
        set {
            this.deliveryPointValidationFieldSpecified = value;
        }
    }
   
    /// <remarks/>
    public string CompanyName {
        get {
            return this.companyNameField;
        }
        set {
            this.companyNameField = value;
        }
    }
   
    /// <remarks/>
    public Address Address {
        get {
            return this.addressField;
        }
        set {
            this.addressField = value;
        }
    }
   
    /// <remarks/>
    [System.Xml.Serialization.XmlArrayItemAttribute("Elements", IsNullable=false)]
    public ParsedElement[] ParsedCompanyName {
        get {
            return this.parsedCompanyNameField;
        }
        set {
            this.parsedCompanyNameField = value;
        }
    }
   
    /// <remarks/>
    public ParsedAddress ParsedAddress {
        get {
            return this.parsedAddressField;
        }
        set {
            this.parsedAddressField = value;
        }
    }
   
    /// <remarks/>
    public string RemovedNonAddressData {
        get {
            return this.removedNonAddressDataField;
        }
        set {
            this.removedNonAddressDataField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://fedex.com/ws/addressvalidation/v2")]
public enum ResidentialStatusType {
   
    /// <remarks/>
    UNDETERMINED,
   
    /// <remarks/>
    BUSINESS,
   
    /// <remarks/>
    RESIDENTIAL,
   
    /// <remarks/>
    INSUFFICIENT_DATA,
   
    /// <remarks/>
    UNAVAILABLE,
   
    /// <remarks/>
    NOT_APPLICABLE_TO_COUNTRY,
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://fedex.com/ws/addressvalidation/v2")]
public enum DeliveryPointValidationType {
   
    /// <remarks/>
    CONFIRMED,
   
    /// <remarks/>
    UNCONFIRMED,
   
    /// <remarks/>
    UNAVAILABLE,
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://fedex.com/ws/addressvalidation/v2")]
public partial class Address {
   
    private string[] streetLinesField;
   
    private string cityField;
   
    private string stateOrProvinceCodeField;
   
    private string postalCodeField;
   
    private string urbanizationCodeField;
   
    private string countryCodeField;
   
    private bool residentialField;
   
    private bool residentialFieldSpecified;
   
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("StreetLines")]
    public string[] StreetLines {
        get {
            return this.streetLinesField;
        }
        set {
            this.streetLinesField = value;
        }
    }
   
    /// <remarks/>
    public string City {
        get {
            return this.cityField;
        }
        set {
            this.cityField = value;
        }
    }
   
    /// <remarks/>
    public string StateOrProvinceCode {
        get {
            return this.stateOrProvinceCodeField;
        }
        set {
            this.stateOrProvinceCodeField = value;
        }
    }
   
    /// <remarks/>
    public string PostalCode {
        get {
            return this.postalCodeField;
        }
        set {
            this.postalCodeField = value;
        }
    }
   
    /// <remarks/>
    public string UrbanizationCode {
        get {
            return this.urbanizationCodeField;
        }
        set {
            this.urbanizationCodeField = value;
        }
    }
   
    /// <remarks/>
    public string CountryCode {
        get {
            return this.countryCodeField;
        }
        set {
            this.countryCodeField = value;
        }
    }
   
    /// <remarks/>
    public bool Residential {
        get {
            return this.residentialField;
        }
        set {
            this.residentialField = value;
        }
    }
   
    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool ResidentialSpecified {
        get {
            return this.residentialFieldSpecified;
        }
        set {
            this.residentialFieldSpecified = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://fedex.com/ws/addressvalidation/v2")]
public partial class AddressValidationResult {
   
    private string addressIdField;
   
    private ProposedAddressDetail[] proposedAddressDetailsField;
   
    /// <remarks/>
    public string AddressId {
        get {
            return this.addressIdField;
        }
        set {
            this.addressIdField = value;
        }
    }
   
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("ProposedAddressDetails")]
    public ProposedAddressDetail[] ProposedAddressDetails {
        get {
            return this.proposedAddressDetailsField;
        }
        set {
            this.proposedAddressDetailsField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://fedex.com/ws/addressvalidation/v2")]
public partial class NotificationParameter {
   
    private string idField;
   
    private string valueField;
   
    /// <remarks/>
    public string Id {
        get {
            return this.idField;
        }
        set {
            this.idField = value;
        }
    }
   
    /// <remarks/>
    public string Value {
        get {
            return this.valueField;
        }
        set {
            this.valueField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://fedex.com/ws/addressvalidation/v2")]
public partial class Notification {
   
    private NotificationSeverityType severityField;
   
    private string sourceField;
   
    private string codeField;
   
    private string messageField;
   
    private string localizedMessageField;
   
    private NotificationParameter[] messageParametersField;
   
    /// <remarks/>
    public NotificationSeverityType Severity {
        get {
            return this.severityField;
        }
        set {
            this.severityField = value;
        }
    }
   
    /// <remarks/>
    public string Source {
        get {
            return this.sourceField;
        }
        set {
            this.sourceField = value;
        }
    }
   
    /// <remarks/>
    public string Code {
        get {
            return this.codeField;
        }
        set {
            this.codeField = value;
        }
    }
   
    /// <remarks/>
    public string Message {
        get {
            return this.messageField;
        }
        set {
            this.messageField = value;
        }
    }
   
    /// <remarks/>
    public string LocalizedMessage {
        get {
            return this.localizedMessageField;
        }
        set {
            this.localizedMessageField = value;
        }
    }
   
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("MessageParameters")]
    public NotificationParameter[] MessageParameters {
        get {
            return this.messageParametersField;
        }
        set {
            this.messageParametersField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://fedex.com/ws/addressvalidation/v2")]
public enum NotificationSeverityType {
   
    /// <remarks/>
    ERROR,
   
    /// <remarks/>
    FAILURE,
   
    /// <remarks/>
    NOTE,
   
    /// <remarks/>
    SUCCESS,
   
    /// <remarks/>
    WARNING,
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://fedex.com/ws/addressvalidation/v2")]
public partial class AddressValidationReply {
   
    private NotificationSeverityType highestSeverityField;
   
    private Notification[] notificationsField;
   
    private TransactionDetail transactionDetailField;
   
    private VersionId versionField;
   
    private System.DateTime replyTimestampField;
   
    private AddressValidationResult[] addressResultsField;
   
    /// <remarks/>
    public NotificationSeverityType HighestSeverity {
        get {
            return this.highestSeverityField;
        }
        set {
            this.highestSeverityField = value;
        }
    }
   
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("Notifications")]
    public Notification[] Notifications {
        get {
            return this.notificationsField;
        }
        set {
            this.notificationsField = value;
        }
    }
   
    /// <remarks/>
    public TransactionDetail TransactionDetail {
        get {
            return this.transactionDetailField;
        }
        set {
            this.transactionDetailField = value;
        }
    }
   
    /// <remarks/>
    public VersionId Version {
        get {
            return this.versionField;
        }
        set {
            this.versionField = value;
        }
    }
   
    /// <remarks/>
    public System.DateTime ReplyTimestamp {
        get {
            return this.replyTimestampField;
        }
        set {
            this.replyTimestampField = value;
        }
    }
   
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute("AddressResults")]
    public AddressValidationResult[] AddressResults {
        get {
            return this.addressResultsField;
        }
        set {
            this.addressResultsField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://fedex.com/ws/addressvalidation/v2")]
public partial class TransactionDetail {
   
    private string customerTransactionIdField;
   
    private Localization localizationField;
   
    /// <remarks/>
    public string CustomerTransactionId {
        get {
            return this.customerTransactionIdField;
        }
        set {
            this.customerTransactionIdField = value;
        }
    }
   
    /// <remarks/>
    public Localization Localization {
        get {
            return this.localizationField;
        }
        set {
            this.localizationField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://fedex.com/ws/addressvalidation/v2")]
public partial class Localization {
   
    private string languageCodeField;
   
    private string localeCodeField;
   
    /// <remarks/>
    public string LanguageCode {
        get {
            return this.languageCodeField;
        }
        set {
            this.languageCodeField = value;
        }
    }
   
    /// <remarks/>
    public string LocaleCode {
        get {
            return this.localeCodeField;
        }
        set {
            this.localeCodeField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://fedex.com/ws/addressvalidation/v2")]
public partial class VersionId {
   
    private string serviceIdField;
   
    private int majorField;
   
    private int intermediateField;
   
    private int minorField;
   
    public VersionId() {
        this.serviceIdField = "aval";
        this.majorField = 2;
        this.intermediateField = 0;
        this.minorField = 0;
    }
   
    /// <remarks/>
    public string ServiceId {
        get {
            return this.serviceIdField;
        }
        set {
            this.serviceIdField = value;
        }
    }
   
    /// <remarks/>
    public int Major {
        get {
            return this.majorField;
        }
        set {
            this.majorField = value;
        }
    }
   
    /// <remarks/>
    public int Intermediate {
        get {
            return this.intermediateField;
        }
        set {
            this.intermediateField = value;
        }
    }
   
    /// <remarks/>
    public int Minor {
        get {
            return this.minorField;
        }
        set {
            this.minorField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://fedex.com/ws/addressvalidation/v2")]
public partial class AddressToValidate {
   
    private string addressIdField;
   
    private string companyNameField;
   
    private Address addressField;
   
    /// <remarks/>
    public string AddressId {
        get {
            return this.addressIdField;
        }
        set {
            this.addressIdField = value;
        }
    }
   
    /// <remarks/>
    public string CompanyName {
        get {
            return this.companyNameField;
        }
        set {
            this.companyNameField = value;
        }
    }
   
    /// <remarks/>
    public Address Address {
        get {
            return this.addressField;
        }
        set {
            this.addressField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://fedex.com/ws/addressvalidation/v2")]
public partial class AddressValidationOptions {
   
    private bool verifyAddressesField;
   
    private bool verifyAddressesFieldSpecified;
   
    private bool checkResidentialStatusField;
   
    private bool checkResidentialStatusFieldSpecified;
   
    private string maximumNumberOfMatchesField;
   
    private AddressValidationAccuracyType streetAccuracyField;
   
    private bool streetAccuracyFieldSpecified;
   
    private AddressValidationAccuracyType directionalAccuracyField;
   
    private bool directionalAccuracyFieldSpecified;
   
    private AddressValidationAccuracyType companyNameAccuracyField;
   
    private bool companyNameAccuracyFieldSpecified;
   
    private bool convertToUpperCaseField;
   
    private bool convertToUpperCaseFieldSpecified;
   
    private bool recognizeAlternateCityNamesField;
   
    private bool recognizeAlternateCityNamesFieldSpecified;
   
    private bool returnParsedElementsField;
   
    private bool returnParsedElementsFieldSpecified;
   
    /// <remarks/>
    public bool VerifyAddresses {
        get {
            return this.verifyAddressesField;
        }
        set {
            this.verifyAddressesField = value;
        }
    }
   
    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool VerifyAddressesSpecified {
        get {
            return this.verifyAddressesFieldSpecified;
        }
        set {
            this.verifyAddressesFieldSpecified = value;
        }
    }
   
    /// <remarks/>
    public bool CheckResidentialStatus {
        get {
            return this.checkResidentialStatusField;
        }
        set {
            this.checkResidentialStatusField = value;
        }
    }
   
    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool CheckResidentialStatusSpecified {
        get {
            return this.checkResidentialStatusFieldSpecified;
        }
        set {
            this.checkResidentialStatusFieldSpecified = value;
        }
    }
   
    /// <remarks/>
    [System.Xml.Serialization.XmlElementAttribute(DataType="positiveInteger")]
    public string MaximumNumberOfMatches {
        get {
            return this.maximumNumberOfMatchesField;
        }
        set {
            this.maximumNumberOfMatchesField = value;
        }
    }
   
    /// <remarks/>
    public AddressValidationAccuracyType StreetAccuracy {
        get {
            return this.streetAccuracyField;
        }
        set {
            this.streetAccuracyField = value;
        }
    }
   
    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool StreetAccuracySpecified {
        get {
            return this.streetAccuracyFieldSpecified;
        }
        set {
            this.streetAccuracyFieldSpecified = value;
        }
    }
   
    /// <remarks/>
    public AddressValidationAccuracyType DirectionalAccuracy {
        get {
            return this.directionalAccuracyField;
        }
        set {
            this.directionalAccuracyField = value;
        }
    }
   
    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool DirectionalAccuracySpecified {
        get {
            return this.directionalAccuracyFieldSpecified;
        }
        set {
            this.directionalAccuracyFieldSpecified = value;
        }
    }
   
    /// <remarks/>
    public AddressValidationAccuracyType CompanyNameAccuracy {
        get {
            return this.companyNameAccuracyField;
        }
        set {
            this.companyNameAccuracyField = value;
        }
    }
   
    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool CompanyNameAccuracySpecified {
        get {
            return this.companyNameAccuracyFieldSpecified;
        }
        set {
            this.companyNameAccuracyFieldSpecified = value;
        }
    }
   
    /// <remarks/>
    public bool ConvertToUpperCase {
        get {
            return this.convertToUpperCaseField;
        }
        set {
            this.convertToUpperCaseField = value;
        }
    }
   
    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool ConvertToUpperCaseSpecified {
        get {
            return this.convertToUpperCaseFieldSpecified;
        }
        set {
            this.convertToUpperCaseFieldSpecified = value;
        }
    }
   
    /// <remarks/>
    public bool RecognizeAlternateCityNames {
        get {
            return this.recognizeAlternateCityNamesField;
        }
        set {
            this.recognizeAlternateCityNamesField = value;
        }
    }
   
    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool RecognizeAlternateCityNamesSpecified {
        get {
            return this.recognizeAlternateCityNamesFieldSpecified;
        }
        set {
            this.recognizeAlternateCityNamesFieldSpecified = value;
        }
    }
   
    /// <remarks/>
    public bool ReturnParsedElements {
        get {
            return this.returnParsedElementsField;
        }
        set {
            this.returnParsedElementsField = value;
        }
    }
   
    /// <remarks/>
    [System.Xml.Serialization.XmlIgnoreAttribute()]
    public bool ReturnParsedElementsSpecified {
        get {
            return this.returnParsedElementsFieldSpecified;
        }
        set {
            this.returnParsedElementsFieldSpecified = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://fedex.com/ws/addressvalidation/v2")]
public enum AddressValidationAccuracyType {
   
    /// <remarks/>
    EXACT,
   
    /// <remarks/>
    TIGHT,
   
    /// <remarks/>
    MEDIUM,
   
    /// <remarks/>
    LOOSE,
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://fedex.com/ws/addressvalidation/v2")]
public partial class ClientDetail {
   
    private string accountNumberField;
   
    private string meterNumberField;
   
    private Localization localizationField;
   
    /// <remarks/>
    public string AccountNumber {
        get {
            return this.accountNumberField;
        }
        set {
            this.accountNumberField = value;
        }
    }
   
    /// <remarks/>
    public string MeterNumber {
        get {
            return this.meterNumberField;
        }
        set {
            this.meterNumberField = value;
        }
    }
   
    /// <remarks/>
    public Localization Localization {
        get {
            return this.localizationField;
        }
        set {
            this.localizationField = value;
        }
    }
}

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
public delegate void addressValidationCompletedEventHandler(object sender, addressValidationCompletedEventArgs e);

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class addressValidationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
   
    private object[] results;
   
    internal addressValidationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
            base(exception, cancelled, userState) {
        this.results = results;
    }
   
    /// <remarks/>
    public AddressValidationReply Result {
        get {
            this.RaiseExceptionIfNecessary();
            return ((AddressValidationReply)(this.results[0]));
        }
    }
}
0
 
LVL 18

Expert Comment

by:ivan_vagunin
ID: 36483749
Try to replace:
  private ParsedElement[][] parsedStreetLineField;
With
  private ParsedElement[] parsedStreetLineField;

And
 public ParsedElement[][] ParsedStreetLine {
With
private ParsedElement[] parsedStreetLineField;
0
 
LVL 18

Expert Comment

by:ivan_vagunin
ID: 36483756
I'm sorry for mispiny

public ParsedElement[][] ParsedStreetLine {
Should be replaced with
public ParsedElement[] ParsedStreetLine {

Just replace [][] with []
0
 

Author Comment

by:citadelind
ID: 36484062
thanks i have implemented above methods

But that error solved but i have again new error.

Please help me out.

Attached error image file.
screen.jpg
0
 
LVL 18

Expert Comment

by:ivan_vagunin
ID: 36484153
Then I guess the problem is not solved. The internal error on invocation can mean that request to web service is incorrect. Can you give me url of webservice - I'll check the wsdl
0
 

Accepted Solution

by:
citadelind earned 0 total points
ID: 36484432
Thanks for help. i got solutions.

Thank you very much

Have a nice day!!
0
 

Author Closing Comment

by:citadelind
ID: 36534634
too excellent
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question