The xs prefix for the xs: schema element is not associated

Below is the xsd that I am trying to use when creating a client for the SOAP Service, Eclipse throws an error: the prefix "xs" for the element "xs: schema" is not connected.

<xs:schema version="1.0" 
           targetNamespace="bdo.com.ph/RemitAPI">
  <xs:element name="CheckServiceResponse" 
              nillable="true" type="xs:string"/>
  <xs:element name="apiRequest" nillable="true" type="tns:APIRequest"/>
  .............................
      <xs:element name="referenceNo" type="xs:string" form="qualified"/>
    </xs:sequence>
  </xs:complexType>
</xs:schema> 

I got this xsd from webservice

+5
source share
2 answers
 xmlns:xs="http://www.w3.org/2001/XMLSchema"  

has not been added to the XSD scheme. adding this, I proceeded to the next step.

xmlns:tns="http://www.bdo.com.ph/RemitAPI  

was not in the XSD, although it was present in the attached WSDL.

When extracting XSD from WSDL to the local computer, namespace references in XSD are not received from WSDL, they must be declared in XSD.

+10
source

This is mainly due to the lack of missing names.

   "<elem "namespace" ..xsi:nil=true.>"

. , XML , .

+1

All Articles