I know that kind of considerations like reinventing the wheel here, but I need to know to communicate with the web service through http / soap / xml and web posts. The reason is that I need to communicate with a third-party web service to work, but something is wrong with WSDL or something, and it does not work when connected to it using the .NET wizard.
So can anyone give me a process / simple example / etc. how to do this or can someone give me a link to what explains this? I am not very good at web requests and responses.
How do I create and submit a request? How to analyze the response?
Here is the code for a simple web service. Pretend the address .asmx is "http://www.mwebb.com/TestSimpleService.asmx":
using System; using System.Data; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; namespace TestSimpleService { [WebService] public class Soap : System.Web.Services.WebService { [WebMethod] public string SayHello(string name) { return "Hello " + name + "!"; } } }
What can I call this method?
Any help is appreciated.
EDIT
I just want to know how to send data to a web service. I can get all the action data / url of the / SOAP method, and I can parse the response data. I just don't know which objects to use or how to use them.
If anyone knows of a few simple soap.NET clients, such as SUDS in Python, this will help too.
Mike webb
source share