写了一个webservice,本地测试没问题,提交到第三方调用wsdl时验证报错
Value “matnr” is not allowed for the attribute "name" of type "NCName" in element "/schema/complexType("matierials)/sequence/element("MATNR")
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://webService.ceic.com/"
targetNamespace="http://webService.ceic.com/"
elementFormDefault="qualified">
<xs:element name="dataInfoRequest">
<xs:complexType>
<xs:sequence>
<xs:element name="materialsList" maxOccurs="unbounded" type="tns:materials" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="materials">
<xs:sequence>
<xs:element name=" MATNR " type="xs:string"/>
<xs:element name=" MAKTX " type="xs:string"/>
<xs:element name=" CHARG " type="xs:string"/>
<xs:element name=" WERKS " type="xs:string"/>
<xs:element name=" WERKS_NAME " type="xs:string"/>
<xs:element name=" LGORT " type="xs:string"/>
<xs:element name=" LGOBE " type="xs:string"/>
<xs:element name=" LGPBE " type="xs:string"/>
<xs:element name=" BWTAR " type="xs:string"/>
<xs:element name=" MAKTL " type="xs:string"/>
<xs:element name=" WGBEZ " type="xs:string"/>
<xs:element name=" SOBKZ " type="xs:string"/>
<xs:element name=" LIFNR " type="xs:string"/>
<xs:element name=" LIFNR_NAME " type="xs:string"/>
<xs:element name=" PSPNR " type="xs:int"/>
<xs:element name=" POSID " type="xs:string"/>
<xs:element name=" MTART " type="xs:string"/>
<xs:element name=" MEINS " type="xs:string"/>
<xs:element name=" MSEH6 " type="xs:string"/>
<xs:element name=" WAERS " type="xs:string"/>
</xs:sequence>
</xs:complexType>
我的解答思路和尝试过的方法:百度了好久,可能原因是xsd文件格式不正确
我想要达到的结果:提供解决方法,指出你认为的问题所在