WebService - XML
- From: author <none@xxxxxxxxxxxxx>
- Date: Tue, 05 Jul 2005 20:48:34 GMT
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
--
.
- Follow-Ups:
- Re: WebService - XML
- From: John Timney \(ASP.NET MVP\)
- Re: WebService - XML
- From: Curt_C [MVP]
- Re: WebService - XML
- Prev by Date: Re: ModalWindow not firing Page_Load.. please help
- Next by Date: Windows Service Timer Events
- Previous by thread: Reading a custom ".config" file programmatically
- Next by thread: Re: WebService - XML
- Index(es):
Relevant Pages
|
Loading