I got the FedEx codes working in the Console Application from FedEx codes sample. Now, I want to integrate the FedEx wsdl into Web Form. Please see the codes and the notes below. Attached is the wsdl file.
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Web.Services.Protocols;
using AddressValidationServiceWebReference; //<--- FedEx (wsdl)
protected void Page_Load(object sender, EventArgs e)
{
AddressValidationRequest request = CreateAddressValidationRequest(); //<--- went through no error
//
AddressValidationService addressValidationService = new AddressValidationService(); //<--- causing error
}
Unable to generate a temporary class (result=1).
error CS0029: Cannot implicitly convert type 'AddressValidationServiceWebReference.ParsedElement' to 'AddressValidationServiceWebReference.ParsedElement[]'
How do I integrate the existing FedEx Console Application Codes into Web Form?
Any help would be appreciated.
Thank you very much,

New Topic/Question
Reply




MultiQuote



|