Invoking a web service through reflection

  • Thread starter Thread starter Rodrigo Meneses
  • Start date Start date
R

Rodrigo Meneses

Hello.
Does somebody know how to invoke a web service using reflection in c#?
Thanks in advance
-Rodrigo Meneses Pinillos
 
Rodrigo Meneses said:
Hello.
Does somebody know how to invoke a web service using reflection in c#?
Thanks in advance
-Rodrigo Meneses Pinillos


Hi Rodrigo,

You can reflect on the proxy generated when a Web Reference was added to
your project. Otherwise, you'll have to find the Web Service and generate
your own proxy with wsdl.exe and then reflect on that generated proxy..

Joe
 
Hi, Joe!
Hi Rodrigo,

You can reflect on the proxy generated when a Web Reference was added to
your project. Otherwise, you'll have to find the Web Service and generate
your own proxy with wsdl.exe and then reflect on that generated proxy..

Can I access Web Service without generate proxy? Dynamically?

I sucessfully discover webservice with DiscoveryProtocol.
Can your how to generate soap request from contract?

--
Roman S. Golubin
ICQ UIN 63253392
(e-mail address removed)

PS: Sorry for my bad english.
 
Can I access Web Service without generate proxy? Dynamically?

I sucessfully discover webservice with DiscoveryProtocol.
Can your how to generate soap request from contract?

Can I generate DataSet with schema from contract types section then fill
dataset with parameters of request then transform dataset to POST query with
XSLT?
 
Roman S. Golubin said:
Hi, Joe!


Can I access Web Service without generate proxy? Dynamically?

I sucessfully discover webservice with DiscoveryProtocol.
Can your how to generate soap request from contract?


If you have the WSDL, you can use the System.Xml types to parse the
information and generate your own SOAP envelope. Then use HttpWebRequest to
to make the Web Service call. You can visit the MSDN Web Services
Development Center for more information on protocols and formats:

http://msdn.microsoft.com/webservices/

Joe
 
Back
Top