2016-03-03 103 views
0

如何为以下XML我面临的问题,以创建命名空间前缀模式创建XML模式:如何创建带有命名空间前缀的XML模式

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body> <sch:GET_ACCT xmlns:sch="http://www.schamst.com/webservice/schemas"> <sch:STATUS>true</sch:STATUS> <sch:ERRORs/> </sch:GET_ACCT> </SOAP-ENV:Body> </SOAP-ENV:Envelope>

回答

0

你只需要移动的xmlns:SCH =“”到SOAP-ENV:信封标签

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sch="http://www.schamst.com/webservice/schemas"> 
    <SOAP-ENV:Body> 
     <sch:GET_ACCT> 
      <sch:STATUS>true</sch:STATUS> 
      <sch:ERRORs/> 
     </sch:GET_ACCT> 
    </SOAP-ENV:Body> 
</SOAP-ENV:Envelope> 
+0

其实,我想为XML –

+0

所以,你需要创建像 <! - 您定义的xml-schema- - > 并把它放到http://www.schamst.com/webservice/schemas –

+0

没有不工作,我需要为以下XML创建: