Last post Jun 23, 2014 01:37 AM by Angie xu - MSFT
Member
2 Points
10 Posts
Jun 13, 2014 03:34 AM|Ishaq|LINK
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 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>
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.
wcf web asmx asp webservice
All-Star
32817 Points
3815 Posts
Jun 23, 2014 01:37 AM|Angie xu - MSFT|LINK
Hi Ishaq,
For this SOAP response issue, you may find this helpful in w3school:
SOAP Tutorial: http://www.w3schools.com/webservices/ws_soap_intro.asp
Hope it helps.
Regards
Member
2 Points
10 Posts
Custom SOAP template reponse
Jun 13, 2014 03:34 AM|Ishaq|LINK
I was make web services. this is my code
.vb file
SOAP 1.1 Response
I want to change SOAP Response be
Please Help.
wcf web asmx asp webservice
All-Star
32817 Points
3815 Posts
Re: Custom SOAP template reponse
Jun 23, 2014 01:37 AM|Angie xu - MSFT|LINK
Hi Ishaq,
For this SOAP response issue, you may find this helpful in w3school:
SOAP Tutorial: http://www.w3schools.com/webservices/ws_soap_intro.asp
Hope it helps.
Regards
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.