0 Replies Latest reply: Jan 2, 2013 4:15 AM by 824461 RSS

    cvc-elt.1: Cannot find the declaration of element 'mesa'.

    824461
      When I trying to send a Soap request I am getting the following exception.
      Soap request
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/mesa" xmlns:web="http://www.webservice.stockquotein">
      <soapenv:Header/>
      <soapenv:Body>
      <web:GetQuote xmlns:web="http://www.webservice.stockquotein">
      <web:symbol>test</web:symbol>
      </web:GetQuote>
      </soapenv:Body>
      </soapenv:Envelope>

      XSD

      <?xml version="1.0" encoding="utf-8" ?>
      <xs:schema elementFormDefault="qualified" targetNamespace="http://www.webservice.stockquotein"
      xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mesa="http://www.sterlingcommerce.com/mesa">
      <xs:element name="GetQuote">
      <xs:complexType>
      <xs:sequence>
      <xs:element ref="symbol" />
      </xs:sequence>
      </xs:complexType>
      </xs:element>
      <xs:element name="symbol" type="xs:string"/>
      </xs:schema>

      WSDL (initial lines not complete as its very big)
      <wsdl:definitions xmlns:mesa="http://www.sterlingcommerce.com/mesa" xmlns:mesa_xsd="http://www.sterlingcommerce.com/mesa" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns0="http://www.webservice.stockquotein" xmlns:tns1="http://www.webservice.stockquoteout" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="StockQuote_no_attachments" targetNamespace="http://www.sterlingcommerce.com/mesa">
      <wsdl:types>
      <xs:schema xmlns="http://www.sterlingcommerce.com/mesa" xmlns:tns="http://www.sterlingcommerce.com/mesa" xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.sterlingcommerce.com/mesa">
      .
      .
      .
      .


      What can be the issue?

      Thanks
      Abhishek