473,324 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

WebService and CSharp

Dear All,

I have been given a Soap Request in XMl form for a WebService (Which I
don't know whether it is developped using C# or Java, or any other
language).

I need to call this WebService using CSharp. How can I do it? Any
example?

Thanks in advance.

Oct 27 '07 #1
4 1553
ck****@my-deja.com wrote:
>
I have been given a Soap Request in XMl form for a WebService (Which I
don't know whether it is developped using C# or Java, or any other
language).

I need to call this WebService using CSharp. How can I do it? Any
example?
Do you have a URL for the WSDL ?

If yes then generate a stub from that with the wsdl utility (called
adding a web service reference inside VS).

Arne
Oct 27 '07 #2
Once you get that information, then there are plenty of code examples using
Google on how to consume a SOAP/XML Web Service using C# .Net.

Arnold,

Yes, I have been given the Request XMl which tells me exactly what I
need. And also the Response XML which will be returned from the
WebService.

But I can't find an example In CSharp on how to use the
SoapHttpClientProtocol to send the exact XML that I wish to the
Server.

Can you please point to me an example?

Thanks in advance.

Oct 28 '07 #3

<ck****@my-deja.comwrote in message
news:11**********************@e9g2000prf.googlegro ups.com...
>Once you get that information, then there are plenty of code examples
using
Google on how to consume a SOAP/XML Web Service using C# .Net.


Arnold,

Yes, I have been given the Request XMl which tells me exactly what I
need. And also the Response XML which will be returned from the
WebService.

But I can't find an example In CSharp on how to use the
SoapHttpClientProtocol to send the exact XML that I wish to the
Server.

Can you please point to me an example?
http://www.codeproject.com/soap/WebServiceASPNET.asp
http://www.codeproject.com/cs/webser...icearticle.asp

The Code Project and DevX are sites where you can find code examples. Review
the projects, put the projects together, and see how things work first, so
that you can come-up with a plan before you try to tackle the task.

Those examples above are not the only ones -- use Google.

HTH
Oct 28 '07 #4
Those examples above are not the only ones -- use Google.
>
HTH- -

- -
Thanks Arnold,

I have actually found the answer just now. I made a big mistakes by
focusing on SoapHttpClientProtocol.

in fact the solution is to use HttpWebRequest.

And a very simple to follow example is there:

http://mikehadlow.blogspot.com/2006/...alls-with.html

Anyway, really appreciate your help.

Thanks

Oct 28 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Nicolas | last post by:
Hello! I call using C# a webservice (UTF8 encoded) that return a list of product. I get the requested objets. So far so good. But, in those objects in all String attributes I get ?? instead of...
3
by: silesius | last post by:
Hi all, I'm new to asp.net and are just working on a few examples to get some practice. The following is a simple webservice with two web methods. The HowMuchWillItCost method works fine the...
5
by: hellrazor | last post by:
Hi there, I'm very new to dot net programming and webservices programming. I've managed to create simple webservices so far. Here's my problem: -I've been given a project which needs to...
6
by: Davie | last post by:
I want to authorise a user of a web service by using the AuthHeaderValue for some reason I keep getting a null reference exception when I try to run the following code: It seems to work fine on a...
2
by: hellrazor | last post by:
HI, In my client application (a CSharp Windows App), I invoke a webservice function. Because these client applications are sometimes running half-way around the world from the server, and...
0
by: Pascal Flückiger | last post by:
Hello I have a tcl-webservice based on tclsoap/tclhttpd. A function returns an array of structs. The problem (someone from csharp.de ng told me): The Soap-functionality of the .Net Framework...
2
by: Dav | last post by:
I used soapUI (webservice testing tool) to test thrird party secure ondemand webservice and worked fine and communicating from our proxy. they authenticated our proxy port . but when i deploy .NET...
2
by: =?Utf-8?B?TGFycnlLdXBlcm1hbg==?= | last post by:
Our WebDev team seems to have found a problem that exposes a bug in .NET 2.0. This problem can be shown when trying to access a WebService using SSL and through a proxy server after using the...
10
by: Anton | last post by:
Hi, when accessing a secured 3rd party webservice i'm getting a 401 HTTP Statuscode (unauthorized). When entering the url in a browser and entering the username and password manually, the wsdl is...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.