WebService and CSharp

C

ckkwan

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.
 
G

Guest

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
 
M

Mr. Arnold

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).

You don't need to know that. You need to know how to consume the Web
service.
I need to call this Web Service using CSharp. How can I do it? Any
example?

First, you need to know what the service needs in order for you to consume
the Web service, which can only be gotten by you talking to someone about
that particular Web service. Someone should know about that Web service.

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.
 
C

ckkwan

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.
 
M

Mr. Arnold

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/webservices/bwcswebservicearticle.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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top