A
author
How do I change my webservice (ws.asmx.vb), so it can "understand"
when I send the below soap-xml to it ??
If I submit a normal html-form with input a+b, it works well. I know
how to send the soap-xml, but not how to get the webservice to work
with it.
TIA
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<Add xmlns="abcdefg">
<a>10</a>
<b>20</b>
</Add>
</soap:Body>
</soap:Envelope>
ws.asmx.vb
--
Imports System.Web.Services
<WebService(Namespace:="http://tempuri.org")> _
Public Class Service1
Inherits WebService
<WebMethod()> _
Public Function Add(ByVal a As Integer, ByVal b As Integer) As
Integer
Return a + b
End Function
--
when I send the below soap-xml to it ??
If I submit a normal html-form with input a+b, it works well. I know
how to send the soap-xml, but not how to get the webservice to work
with it.
TIA
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<Add xmlns="abcdefg">
<a>10</a>
<b>20</b>
</Add>
</soap:Body>
</soap:Envelope>
ws.asmx.vb
--
Imports System.Web.Services
<WebService(Namespace:="http://tempuri.org")> _
Public Class Service1
Inherits WebService
<WebMethod()> _
Public Function Add(ByVal a As Integer, ByVal b As Integer) As
Integer
Return a + b
End Function
--