Re: Creating an object from a wsdl definition?



I don't understand, why can't the client have a reference to the web
service? If you get the type definition at runtime, you wont know what to
do with it, since the operations and types involved are going to be known
only at runtime. Everything that you will have to do will be through
reflection (if you choose to compile types at runtime), or you will have to
craft the requests yourself.

You probably want to use the SoapHttpClientProtocol class if you are not
using WCF.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx

<sean.j.gage@xxxxxxxxx> wrote in message
news:1175285652.795272.150540@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Is there a way to get to a Type definition from a wsdl through c#
during runtime? I'd like to load and process the wsdl into its various
objects at run time and be able to use a factory to return the
appropriate type when that object is returned from a third party web
service. Ultimatly the client can't have a web reference to the web
service so I need a way to get the objects programmatically.

Cheers!



.



Relevant Pages

  • Re: Searching OO Associations with RDBMS Persistence Models
    ... and the Client needs access to locations for a particular Company. ... In this case I would argue that it should be a reference. ... There are three aspects to relationships: implementation, instantiation, and navigation. ... This sort of instantiation is ubiquitous in OO applications so that one very rarely ever sees a FIND WHERE construct. ...
    (comp.object)
  • Re: VS2008 creates a 2nd endpoint when actualising a web reference
    ... you are developing an WCF service and a client through VS 2008. ... The service used to use wshttpbinding, and when you switch it to netTcpBinding and regenerate the service reference at client, you found the client generate two configuration section for the service endpoint, correct? ... We welcome your comments and suggestions about how we can improve the support we provide to you. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Help on remoting clarification ???
    ... IPurchaseOrderService on the client side that handles getting the ... object reference fromt he remote service, ... They get a reference of the remote object by using the ... Lets say i want to create a purchase order application where the ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Inheriting Consumed WebService Class
    ... > your web reference, your proxy class is generated from the WSDL's XML ... > and sending it across the wire back you client. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: How to I access a logging class from any other class.
    ... where the Client is instantiating the R2 object when it passes a reference to Service2 to Service1. ... participation in the R2 relationship is a personal matter between and [Service2]. ... But for Client to pass the /right/ instance of, the Client must understand the rules and policies related to defining participation in the R2 relationship. ... Singleton essentially disguises the notion of a global instance as a local implementation instance. ...
    (comp.object)