我用C#寫的web service 報文:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<getCarXx xmlns="http://xxx.xxxr.webservice.xxx.com/">
<MyId>string</MyId>
</getCarXx>
</soap:Body>
</soap:Envelope>
如何能變為
<?xml version="1.0"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<NS1:getCarXx xmlns NS1:="http://xxx.xxxr.webservice.xxx.com/">
<MyId>string</MyId>
</getCarXx>
</soap:Body>
</soap:Envelope>
里面NS1,xmlns NS1:如能讓它出現,c#默認的沒有啊,查了好多天也沒有找到這方面的資料
uj5u.com熱心網友回復:
直接在ASP.NET頁面里定義方法處理,生成XML字串來進行操作,不用WS的方式。。。轉載請註明出處,本文鏈接:https://www.uj5u.com/net/63455.html
標籤:Web Services
上一篇:用戶 'sa' 登錄失敗。
