2016-03-03 107 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創建: