元素"xs:schema"的前缀"xs"未绑定

Adi*_*tya 5 xsd-validation

以下是我在为SOAP服务生成客户端时尝试使用的xsd,Eclipse正在抛出错误:元素"xs:schema"的前缀"xs"未绑定.

<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> 
Run Code Online (Sandbox Code Playgroud)

我从webservice获得了这个xsd

Adi*_*tya 9

 xmlns:xs="http://www.w3.org/2001/XMLSchema"  
Run Code Online (Sandbox Code Playgroud)

未在Schema XSD中添加.添加它让我继续下一步.

xmlns:tns="http://www.bdo.com.ph/RemitAPI  
Run Code Online (Sandbox Code Playgroud)

在XSD中不存在,尽管它存在于封闭的WSDL中.

当从WSDL将XSD提取到本地机器时,XSD中的命名空间引用不会从WSDL中获取,它们需要在XSD中声明.