function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shaijan Thomas 1Shaijan Thomas 1 

Failed to parse WSDL: Unable to find complexType

HI

I am trying to parse the attached wsdl, we are getting the following error.
Error: Failed to parse wsdl: Failed to parse WSDL: Unable to find complexType for {http://schemas.microsoft.com/2003/10/Serialization/}guid

Could you please help me on this.

Thanks
https://soapapi.findapprenticeship.service.gov.uk/services/VacancyManagement/VacancyManagement51.svc?singleWsdl
Shaijan Thomas
Daniel BallingerDaniel Ballinger
I've created an alternative version of WSDL2Apex that can generate the requried Apex class for this WSDL. You can get it for free - FuseIT SFDC Explorer (http://www.fuseit.com/explorer). Corresponding Dreamforce presentation (http://www.fishofprey.com/2014/11/dreamforce-2014-presentation-improved.html).

That said, there are still issues with the generated Apex around handling the GUID (schemasMicrosoftCom200310Serializat.guid). I'll see what I can do.
 
//Generated by FuseIT WSDL2Apex (http://www.fuseit.com/Solutions/SFDC-Explorer/Help-WSDL-Parser.aspx)
//Methods Included: UploadVacancies
// Primary Port Class Name: BasicHttpBinding_IVacancyManagement	
public class servicesImservicesOrgUkAvmsInterfac {
	public class AddressData {
		public String AddressLine1;
		public String AddressLine2;
		public String AddressLine3;
		public String AddressLine4;
		public String AddressLine5;
		public String County;
		public Integer GridEastM;
		public Integer GridNorthM;
		public Decimal Latitude;
		public Decimal Longitude;
		public String PostCode;
		public String Town;
		public String LocalAuthority;
		private String[] AddressLine1_type_info = new String[]{'AddressLine1','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','1','1','true'};
		private String[] AddressLine2_type_info = new String[]{'AddressLine2','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','0','1','true'};
		private String[] AddressLine3_type_info = new String[]{'AddressLine3','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','0','1','true'};
		private String[] AddressLine4_type_info = new String[]{'AddressLine4','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','0','1','true'};
		private String[] AddressLine5_type_info = new String[]{'AddressLine5','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','0','1','true'};
		private String[] County_type_info = new String[]{'County','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','0','1','true'};
		private String[] GridEastM_type_info = new String[]{'GridEastM','http://services.imservices.org.uk/AVMS/Interfaces/5.1','int','0','1','true'};
		private String[] GridNorthM_type_info = new String[]{'GridNorthM','http://services.imservices.org.uk/AVMS/Interfaces/5.1','int','0','1','true'};
		private String[] Latitude_type_info = new String[]{'Latitude','http://services.imservices.org.uk/AVMS/Interfaces/5.1','decimal','0','1','true'};
		private String[] Longitude_type_info = new String[]{'Longitude','http://services.imservices.org.uk/AVMS/Interfaces/5.1','decimal','0','1','true'};
		private String[] PostCode_type_info = new String[]{'PostCode','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','1','1','true'};
		private String[] Town_type_info = new String[]{'Town','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','1','1','true'};
		private String[] LocalAuthority_type_info = new String[]{'LocalAuthority','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','0','1','true'};
		private String[] apex_schema_type_info = new String[]{'http://services.imservices.org.uk/AVMS/Interfaces/5.1','true','false'};
		private String[] field_order_type_info = new String[]{'AddressLine1','AddressLine2','AddressLine3','AddressLine4','AddressLine5','County','GridEastM','GridNorthM','Latitude','Longitude','PostCode','Town','LocalAuthority'};
	}
	public class ApplicationData {
		public DateTime ClosingDate;
		public DateTime InterviewStartDate;
		public DateTime PossibleStartDate;
		public String Type_x;
		public String Instructions;
		private String[] ClosingDate_type_info = new String[]{'ClosingDate','http://services.imservices.org.uk/AVMS/Interfaces/5.1','dateTime','1','1','false'};
		private String[] InterviewStartDate_type_info = new String[]{'InterviewStartDate','http://services.imservices.org.uk/AVMS/Interfaces/5.1','dateTime','1','1','false'};
		private String[] PossibleStartDate_type_info = new String[]{'PossibleStartDate','http://services.imservices.org.uk/AVMS/Interfaces/5.1','dateTime','1','1','false'};
		private String[] Type_x_type_info = new String[]{'Type','http://services.imservices.org.uk/AVMS/Interfaces/5.1','ApplicationType','1','1','false'};
		private String[] Instructions_type_info = new String[]{'Instructions','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','0','1','true'};
		private String[] apex_schema_type_info = new String[]{'http://services.imservices.org.uk/AVMS/Interfaces/5.1','true','false'};
		private String[] field_order_type_info = new String[]{'ClosingDate','InterviewStartDate','PossibleStartDate','Type_x','Instructions'};
	}
	public class ApprenticeshipData {
		public String Framework;
		public String Type_x;
		public String TrainingToBeProvided;
		public String ExpectedDuration;
		private String[] Framework_type_info = new String[]{'Framework','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','1','1','true'};
		private String[] Type_x_type_info = new String[]{'Type','http://services.imservices.org.uk/AVMS/Interfaces/5.1','VacancyApprenticeshipType','1','1','false'};
		private String[] TrainingToBeProvided_type_info = new String[]{'TrainingToBeProvided','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','0','1','true'};
		private String[] ExpectedDuration_type_info = new String[]{'ExpectedDuration','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','0','1','true'};
		private String[] apex_schema_type_info = new String[]{'http://services.imservices.org.uk/AVMS/Interfaces/5.1','true','false'};
		private String[] field_order_type_info = new String[]{'Framework','Type_x','TrainingToBeProvided','ExpectedDuration'};
	}
	public class ArrayOfElementErrorData {
		public servicesImservicesOrgUkAvmsInterfac.ElementErrorData[] ElementErrorData;
		private String[] ElementErrorData_type_info = new String[]{'ElementErrorData','http://services.imservices.org.uk/AVMS/Interfaces/5.1','ElementErrorData','0','-1','true'};
		private String[] apex_schema_type_info = new String[]{'http://services.imservices.org.uk/AVMS/Interfaces/5.1','true','false'};
		private String[] field_order_type_info = new String[]{'ElementErrorData'};
	}
	public class ArrayOfSiteVacancyData {
		public servicesImservicesOrgUkAvmsInterfac.SiteVacancyData[] SiteVacancyData;
		private String[] SiteVacancyData_type_info = new String[]{'SiteVacancyData','http://services.imservices.org.uk/AVMS/Interfaces/5.1','SiteVacancyData','0','-1','true'};
		private String[] apex_schema_type_info = new String[]{'http://services.imservices.org.uk/AVMS/Interfaces/5.1','true','false'};
		private String[] field_order_type_info = new String[]{'SiteVacancyData'};
	}
	public class ArrayOfVacancyUploadData {
		public servicesImservicesOrgUkAvmsInterfac.VacancyUploadData[] VacancyUploadData;
		private String[] VacancyUploadData_type_info = new String[]{'VacancyUploadData','http://services.imservices.org.uk/AVMS/Interfaces/5.1','VacancyUploadData','0','-1','true'};
		private String[] apex_schema_type_info = new String[]{'http://services.imservices.org.uk/AVMS/Interfaces/5.1','true','false'};
		private String[] field_order_type_info = new String[]{'VacancyUploadData'};
	}
	public class ArrayOfVacancyUploadResultData {
		public servicesImservicesOrgUkAvmsInterfac.VacancyUploadResultData[] VacancyUploadResultData;
		private String[] VacancyUploadResultData_type_info = new String[]{'VacancyUploadResultData','http://services.imservices.org.uk/AVMS/Interfaces/5.1','VacancyUploadResultData','0','-1','true'};
		private String[] apex_schema_type_info = new String[]{'http://services.imservices.org.uk/AVMS/Interfaces/5.1','true','false'};
		private String[] field_order_type_info = new String[]{'VacancyUploadResultData'};
	}
	public class BasicHttpBinding_IVacancyManagement {
		public String endpoint_x = 'https://soapapi.findapprenticeship.service.gov.uk/services/VacancyManagement/VacancyManagement51.svc';
		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 schemasMicrosoftCom200310Serializat.guid ExternalSystemId;
		private String ExternalSystemId_hns = 'ExternalSystemId=http://services.imservices.org.uk/AVMS/Interfaces/5.1';
		public schemasMicrosoftCom200310Serializat.guid MessageId;
		private String MessageId_hns = 'MessageId=http://services.imservices.org.uk/AVMS/Interfaces/5.1';
		public String PublicKey;
		private String PublicKey_hns = 'PublicKey=http://services.imservices.org.uk/AVMS/Interfaces/5.1';
		private String[] ns_map_type_info = new String[]{'http://services.imservices.org.uk/AVMS/Interfaces/5.1','servicesImservicesOrgUkAvmsInterfac','http://schemas.microsoft.com/2003/10/Serialization/','schemasMicrosoftCom200310Serializat','http://schemas.datacontract.org/2004/07/Capgemini.LSC.Navms.MS.Common.Enum','schemasDatacontractOrg200407Capgemi'};

		public servicesImservicesOrgUkAvmsInterfac.VacancyUploadResponse_element UploadVacancies(servicesImservicesOrgUkAvmsInterfac.ArrayOfVacancyUploadData Vacancies) {
			servicesImservicesOrgUkAvmsInterfac.VacancyUploadRequest_element request_x = new servicesImservicesOrgUkAvmsInterfac.VacancyUploadRequest_element();
			servicesImservicesOrgUkAvmsInterfac.VacancyUploadResponse_element response_x;
			request_x.Vacancies = Vacancies;
			Map<String, servicesImservicesOrgUkAvmsInterfac.VacancyUploadResponse_element> response_map_x = new Map<String, servicesImservicesOrgUkAvmsInterfac.VacancyUploadResponse_element>();
			response_map_x.put('response_x', response_x);
			WebServiceCallout.invoke(
				this,
				request_x,
				response_map_x,
				new String[]{endpoint_x,
				'http://services.imservices.org.uk/AVMS/Interfaces/5.1/IVacancyManagement/UploadVacancies',
				'http://services.imservices.org.uk/AVMS/Interfaces/5.1',
				'VacancyUploadRequest',
				'http://services.imservices.org.uk/AVMS/Interfaces/5.1',
				'VacancyUploadResponse',
				'servicesImservicesOrgUkAvmsInterfac.VacancyUploadResponse_element'}
			);
			response_x = response_map_x.get('response_x');
			return response_x;
		}
	}
	public class ElementErrorData {
		public Integer ErrorCode;
		private String[] ErrorCode_type_info = new String[]{'ErrorCode','http://services.imservices.org.uk/AVMS/Interfaces/5.1','int','0','1','false'};
		private String[] apex_schema_type_info = new String[]{'http://services.imservices.org.uk/AVMS/Interfaces/5.1','true','false'};
		private String[] field_order_type_info = new String[]{'ErrorCode'};
	}
	public class EmployerData {
		public Integer EdsUrn;
		public String Description;
		public String AnonymousName;
		public String ContactName;
		public String Website;
		public String Image;
		private String[] EdsUrn_type_info = new String[]{'EdsUrn','http://services.imservices.org.uk/AVMS/Interfaces/5.1','int','1','1','false'};
		private String[] Description_type_info = new String[]{'Description','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','0','1','true'};
		private String[] AnonymousName_type_info = new String[]{'AnonymousName','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','0','1','true'};
		private String[] ContactName_type_info = new String[]{'ContactName','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','0','1','true'};
		private String[] Website_type_info = new String[]{'Website','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','0','1','true'};
		private String[] Image_type_info = new String[]{'Image','http://services.imservices.org.uk/AVMS/Interfaces/5.1','base64Binary','0','1','true'};
		private String[] apex_schema_type_info = new String[]{'http://services.imservices.org.uk/AVMS/Interfaces/5.1','true','false'};
		private String[] field_order_type_info = new String[]{'EdsUrn','Description','AnonymousName','ContactName','Website','Image'};
	}
	public class SiteVacancyData {
		public servicesImservicesOrgUkAvmsInterfac.AddressData AddressDetails;
		public Integer NumberOfVacancies;
		public String EmployerWebsite;
		private String[] AddressDetails_type_info = new String[]{'AddressDetails','http://services.imservices.org.uk/AVMS/Interfaces/5.1','AddressData','1','1','true'};
		private String[] NumberOfVacancies_type_info = new String[]{'NumberOfVacancies','http://services.imservices.org.uk/AVMS/Interfaces/5.1','short','1','1','false'};
		private String[] EmployerWebsite_type_info = new String[]{'EmployerWebsite','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','0','1','true'};
		private String[] apex_schema_type_info = new String[]{'http://services.imservices.org.uk/AVMS/Interfaces/5.1','true','false'};
		private String[] field_order_type_info = new String[]{'AddressDetails','NumberOfVacancies','EmployerWebsite'};
	}
	public class SystemFaultContract {
		private String[] apex_schema_type_info = new String[]{'http://services.imservices.org.uk/AVMS/Interfaces/5.1','true','false'};
		private String[] field_order_type_info = new String[]{};
	}
	public class VacancyData {
		public Decimal Wage;
		public String WageType;
		public String WorkingWeek;
		public String SkillsRequired;
		public String QualificationRequired;
		public String PersonalQualities;
		public String FutureProspects;
		public String OtherImportantInformation;
		public String LocationType;
		public servicesImservicesOrgUkAvmsInterfac.ArrayOfSiteVacancyData LocationDetails;
		public String RealityCheck;
		public String SupplementaryQuestion1;
		public String SupplementaryQuestion2;
		private String[] Wage_type_info = new String[]{'Wage','http://services.imservices.org.uk/AVMS/Interfaces/5.1','decimal','1','1','false'};
		private String[] WageType_type_info = new String[]{'WageType','http://services.imservices.org.uk/AVMS/Interfaces/5.1','WageType','1','1','false'};
		private String[] WorkingWeek_type_info = new String[]{'WorkingWeek','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','1','1','true'};
		private String[] SkillsRequired_type_info = new String[]{'SkillsRequired','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','0','1','true'};
		private String[] QualificationRequired_type_info = new String[]{'QualificationRequired','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','0','1','true'};
		private String[] PersonalQualities_type_info = new String[]{'PersonalQualities','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','0','1','true'};
		private String[] FutureProspects_type_info = new String[]{'FutureProspects','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','0','1','true'};
		private String[] OtherImportantInformation_type_info = new String[]{'OtherImportantInformation','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','0','1','true'};
		private String[] LocationType_type_info = new String[]{'LocationType','http://services.imservices.org.uk/AVMS/Interfaces/5.1','VacancyLocationType','1','1','false'};
		private String[] LocationDetails_type_info = new String[]{'LocationDetails','http://services.imservices.org.uk/AVMS/Interfaces/5.1','ArrayOfSiteVacancyData','1','1','true'};
		private String[] RealityCheck_type_info = new String[]{'RealityCheck','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','0','1','true'};
		private String[] SupplementaryQuestion1_type_info = new String[]{'SupplementaryQuestion1','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','0','1','true'};
		private String[] SupplementaryQuestion2_type_info = new String[]{'SupplementaryQuestion2','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','0','1','true'};
		private String[] apex_schema_type_info = new String[]{'http://services.imservices.org.uk/AVMS/Interfaces/5.1','true','false'};
		private String[] field_order_type_info = new String[]{'Wage','WageType','WorkingWeek','SkillsRequired','QualificationRequired','PersonalQualities','FutureProspects','OtherImportantInformation','LocationType','LocationDetails','RealityCheck','SupplementaryQuestion1','SupplementaryQuestion2'};
	}
	public class VacancyUploadData {
		public String VacancyId;
		public String Title;
		public String ShortDescription;
		public String LongDescription;
		public servicesImservicesOrgUkAvmsInterfac.EmployerData Employer;
		public servicesImservicesOrgUkAvmsInterfac.VacancyData Vacancy;
		public servicesImservicesOrgUkAvmsInterfac.ApplicationData Application;
		public servicesImservicesOrgUkAvmsInterfac.ApprenticeshipData Apprenticeship;
		public Integer ContractedProviderUkprn;
		public Integer VacancyOwnerEdsUrn;
		public Integer VacancyManagerEdsUrn;
		public Integer DeliveryProviderEdsUrn;
		public Boolean IsDisplayRecruitmentAgency;
		public Boolean IsSmallEmployerWageIncentive;
		private String[] VacancyId_type_info = new String[]{'VacancyId','http://services.imservices.org.uk/AVMS/Interfaces/5.1','guid','1','1','false'};
		private String[] Title_type_info = new String[]{'Title','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','1','1','true'};
		private String[] ShortDescription_type_info = new String[]{'ShortDescription','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','1','1','true'};
		private String[] LongDescription_type_info = new String[]{'LongDescription','http://services.imservices.org.uk/AVMS/Interfaces/5.1','string','1','1','true'};
		private String[] Employer_type_info = new String[]{'Employer','http://services.imservices.org.uk/AVMS/Interfaces/5.1','EmployerData','1','1','true'};
		private String[] Vacancy_type_info = new String[]{'Vacancy','http://services.imservices.org.uk/AVMS/Interfaces/5.1','VacancyData','1','1','true'};
		private String[] Application_type_info = new String[]{'Application','http://services.imservices.org.uk/AVMS/Interfaces/5.1','ApplicationData','1','1','true'};
		private String[] Apprenticeship_type_info = new String[]{'Apprenticeship','http://services.imservices.org.uk/AVMS/Interfaces/5.1','ApprenticeshipData','1','1','true'};
		private String[] ContractedProviderUkprn_type_info = new String[]{'ContractedProviderUkprn','http://services.imservices.org.uk/AVMS/Interfaces/5.1','int','1','1','true'};
		private String[] VacancyOwnerEdsUrn_type_info = new String[]{'VacancyOwnerEdsUrn','http://services.imservices.org.uk/AVMS/Interfaces/5.1','int','1','1','false'};
		private String[] VacancyManagerEdsUrn_type_info = new String[]{'VacancyManagerEdsUrn','http://services.imservices.org.uk/AVMS/Interfaces/5.1','int','0','1','true'};
		private String[] DeliveryProviderEdsUrn_type_info = new String[]{'DeliveryProviderEdsUrn','http://services.imservices.org.uk/AVMS/Interfaces/5.1','int','0','1','true'};
		private String[] IsDisplayRecruitmentAgency_type_info = new String[]{'IsDisplayRecruitmentAgency','http://services.imservices.org.uk/AVMS/Interfaces/5.1','boolean','0','1','true'};
		private String[] IsSmallEmployerWageIncentive_type_info = new String[]{'IsSmallEmployerWageIncentive','http://services.imservices.org.uk/AVMS/Interfaces/5.1','boolean','1','1','false'};
		private String[] apex_schema_type_info = new String[]{'http://services.imservices.org.uk/AVMS/Interfaces/5.1','true','false'};
		private String[] field_order_type_info = new String[]{'VacancyId','Title','ShortDescription','LongDescription','Employer','Vacancy','Application','Apprenticeship','ContractedProviderUkprn','VacancyOwnerEdsUrn','VacancyManagerEdsUrn','DeliveryProviderEdsUrn','IsDisplayRecruitmentAgency','IsSmallEmployerWageIncentive'};
	}
	public class VacancyUploadRequest_element {
		public servicesImservicesOrgUkAvmsInterfac.ArrayOfVacancyUploadData Vacancies;
		private String[] Vacancies_type_info = new String[]{'Vacancies','http://services.imservices.org.uk/AVMS/Interfaces/5.1','ArrayOfVacancyUploadData','0','1','true'};
		private String[] apex_schema_type_info = new String[]{'http://services.imservices.org.uk/AVMS/Interfaces/5.1','true','false'};
		private String[] field_order_type_info = new String[]{'Vacancies'};
	}
	public class VacancyUploadResponse_element {
		public String MessageId;
		public servicesImservicesOrgUkAvmsInterfac.ArrayOfVacancyUploadResultData Vacancies;
		private String[] MessageId_type_info = new String[]{'MessageId','http://services.imservices.org.uk/AVMS/Interfaces/5.1','guid','0','1','false'};
		private String[] Vacancies_type_info = new String[]{'Vacancies','http://services.imservices.org.uk/AVMS/Interfaces/5.1','ArrayOfVacancyUploadResultData','0','1','true'};
		private String[] apex_schema_type_info = new String[]{'http://services.imservices.org.uk/AVMS/Interfaces/5.1','true','false'};
		private String[] field_order_type_info = new String[]{'MessageId','Vacancies'};
	}
	public class VacancyUploadResultData {
		public String VacancyId;
		public String Status;
		public servicesImservicesOrgUkAvmsInterfac.ArrayOfElementErrorData ErrorCodes;
		public Integer ReferenceNumber;
		private String[] VacancyId_type_info = new String[]{'VacancyId','http://services.imservices.org.uk/AVMS/Interfaces/5.1','guid','1','1','false'};
		private String[] Status_type_info = new String[]{'Status','http://services.imservices.org.uk/AVMS/Interfaces/5.1','VacancyUploadResult','1','1','false'};
		private String[] ErrorCodes_type_info = new String[]{'ErrorCodes','http://services.imservices.org.uk/AVMS/Interfaces/5.1','ArrayOfElementErrorData','1','1','true'};
		private String[] ReferenceNumber_type_info = new String[]{'ReferenceNumber','http://services.imservices.org.uk/AVMS/Interfaces/5.1','int','0','1','false'};
		private String[] apex_schema_type_info = new String[]{'http://services.imservices.org.uk/AVMS/Interfaces/5.1','true','false'};
		private String[] field_order_type_info = new String[]{'VacancyId','Status','ErrorCodes','ReferenceNumber'};
	}
}