http://sourceforge.net/projects/soapui/files/
host/WebService.asmx?WSDL
<soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:body>
<etagservice xmlns="http://tempuri.org/">
<strtx>
xml string
</strtx>
</etagservice>
</soap:body>
</soap:envelope>
2013年9月13日
2012年8月23日
Ajax call Webservice
$.ajax({
type: "POST",
url: "../../WebService.asmx/FindPerson",
data: params, // 參數
contentType: "application/json; charset=utf-8", // 參數格式
dataType: "json", // 回傳格式
success: function(response) {
// 將 WEB SERVICE 回傳的字串轉為物件
var jsonObj = $.parseJSON(response.d);
// 使用 chrome 按 F12 選擇 console 即可看到結果
console.log("Hello, I am " + jsonObj.name);
}
,failure: function(msg) { }
,error: function(msg) { }
});
http://jax-work-archive.blogspot.tw/2011/09/jquery-textarea.html
2012年7月13日
加入 web服務
寫好 web service後, 我竟然還在別的專案裡用 HttpWebRequest, 傳 url來獲得回傳值, 超笨的, 不過至少是學了一下 HttpWebRequest怎麼用
在專案中, 用加入 web服務(填入 web service的 url), 不用 using, 可以直接把 web service當作型別來宣告使用
ex:
在專案中, 用加入 web服務(填入 web service的 url), 不用 using, 可以直接把 web service當作型別來宣告使用
ex:
trendmicro.safeqa.BetaPortalUrls4FAST _result = new trendmicro.safeqa.BetaPortalUrls4FAST();<
2012年7月11日
加入服務參考(Service References)錯誤
加入服務參考時若出現"嘗試尋找位於 ... 的服務時發生錯誤"
可能是
1. IIS處沒加入站台
2. 要先建置/發行
7/12新增:
BA.JPCONS內沒有加入服務參考, 直接發行後佈版, 直接可以使用