SOAP模板响应 [英] SOAP template reponse
本文介绍了SOAP模板响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在制作网络服务。这是我的代码
.vb文件
I was make web services. this is my code
.vb file
Public Class xlogin
<SoapElement(ElementName:="eStatus"), _
XmlElement(ElementName:="Status")> _
Public StatusID As Boolean
End Class
<WebMethod()> _
Public Function Login(ByVal sUser As String, ByVal sPwd As String) As xlogin
Dim mystatus As xlogin = New xlogin()
.....
mystatus.StatusID = True
Return mystatus
End Function
SOAP 1.1回复
SOAP 1.1 Response
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?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>
<LoginResponse xmlns="http://WheelOfFortune.org/">
<LoginResult>
<Status>boolean</Status>
</LoginResult>
</LoginResponse>
</soap:Body>
</soap:Envelope>
我想要更改SOAP响应是
I want to change SOAP Response be
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?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>
<LoginResponse xmlns="http://WheelOfFortune.org/">
<LoginResult>
<Login>
<Status>boolean</Status>
</Login>
</LoginResult>
</LoginResponse>
</soap:Body>
</soap:Envelope>
请帮助。
Please Help.
推荐答案
这篇关于SOAP模板响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文