org.xml.sax.SAXParseException; The prefix "tem" for element "tem:UN" is not bound.

Rashmitha B 0 Reputation points

Iam integrating service references from wsdl file in C#. the service is working fine with SOAPUI but while executing the process in C# it is giving exception asorg.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 9; The prefix "tem" for element "tem:UN" is not bound. Any soltion for this . service example:

public IntegrationPlatformService.AIMSWeb.AimsAirportList FetchAirports(string   UN, string PSW) {  return base.Channel.FetchAirports(UN, PSW);  }

WSDL file :

<?xml version="1.0" encoding="utf-8"?> <wsdl:definitions xmlns:wsap="" xmlns:wsa10="" xmlns:tns="" xmlns:msc="" xmlns:soapenc="" xmlns:wsx="" xmlns:wsp="" xmlns:wsam="" xmlns:wsa="" xmlns:wsaw="" xmlns:soap="" xmlns:soap12="" xmlns:wsu="" xmlns:xsd="" name="api_x002F_soap_x002F_aimswebservice" targetNamespace="" xmlns:wsdl=""> <wsdl:types> <xs:schema elementFormDefault="qualified" targetNamespace="" xmlns:xs=""> <xs:import namespace="" /> <xs:element name="FetchCountries"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="UN" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="PSW" nillable="true" type="xs:string" /> <xs:element minOccurs="0" name="CountryCode" nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="FetchCountriesResponse"> <xs:complexType> <xs:sequence> <xs:element xmlns:q1="" minOccurs="0" name="FetchCountriesResult" nillable="true" type="q1:AIMSCountriesList" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="FetchAirports"> <xs:complexType> <xs:sequence>
Microsoft Technologies based on the .NET software framework.
3,182 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,432 questions
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
9,973 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Rashmitha B 0 Reputation points

    This is the complete wsdl file.

  2. Rashmitha B 0 Reputation points

    Yes its loading properly but when I call that service, it is throwing exception using (var client = new ServiceReference1.AIMSWebServiceClient()) { var flightDetails = client.FetchAirports("", "");

                    var flights = flightDetails != null ? flightDetails.cCount: 0;