Re: WebService - XML
- From: "Curt_C [MVP]" <software_at_darkfalz.com>
- Date: Tue, 05 Jul 2005 15:56:29 -0500
author wrote:
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 --
You dont call ws.asmx.vb, you call ws.asmx The .vb is the pre-compiled code.
-- Curt Christianson site: http://www.darkfalz.com blog: http://blog.darkfalz.com .
- Follow-Ups:
- Re: WebService - XML
- From: author
- Re: WebService - XML
- References:
- WebService - XML
- From: author
- WebService - XML
- Prev by Date: Windows Service Timer Events
- Next by Date: Performance hit with Debug = True
- Previous by thread: WebService - XML
- Next by thread: Re: WebService - XML
- Index(es):
Relevant Pages
|