1

Topic: How WSDL?

All greetings! There are operating WCF-services From them clients almost before everyone before request request WSDL (I ask to go deep into a subject "what for") There is a judgement, what request WSDL its each time , than loads services the Question - whether it is possible single-valuedly received WSDL to suppose somehow in  and at its request to send contents ? Thanks... PS. WSDL it is requested on other port and , rather than all remaining What is better type  (from the point of view  ) for such request to use?

2

Re: How WSDL?

Hello, mDmitriy, you wrote: To begin with it is necessary to specify, how you export WSDL. D> There is a judgement, what request WSDL its each time , than loads services Whence this judgement undertook? You can look at implementation - ServiceMetadataBehavior - ServiceMetadataExtension Last generally is implemented as IExtension <ServiceHostBase>, i.e. it is supposed that it will have 1 copy on each triggered host. Well and there in the code it is possible to look at methods EnsureInitialized () or EnsureSingleWsdlInitialized () - there explicitly there is a protection against repeated generation of meta data. Well and MetadataSet yes, some time for serialization demands, but on how many it is critical - a question (well and  on the code did not look - the result of serialization can also the Question is cached) D> - whether it is possible single-valuedly received WSDL to suppose somehow in  and at its request to send contents ? It is possible, whether a question it is necessary. . But before something to you to advise, I would specify what data from meta data you want to use. There besides the description of contracts which can be received at any moment, up to compile time, there is still a description endpoints, and here already it is possible to pull out this data, , only at launched  the configured host. D> PS. WSDL it is requested on other port and , rather than all remaining D> What is better type  (from the point of view  ) for such request to use? I nevertheless did not understand, you use any implementation, or work through standard mex-endpoint (or generally give through get-inquiry)

3

Re: How WSDL?

Hello, mDmitriy, you wrote: D> the Question - whether it is possible single-valuedly received WSDL to suppose somehow in  and at its request to send contents ? Install reverse proxy. At least, it will be possible to look, how much it accelerates.

4

Re: How WSDL?

Hello, Michael Romanov, you wrote: > To begin with it is necessary to specify, how you export WSDL. It Is standardly implemented MetadataBehavior get-inquiry from clients of type http://myhost:3385/myservice?singleWsdl D>> There is a judgement, what request WSDL its each time , than loads services > Whence this judgement undertook? If request WSDL and request the data hang on one port, it is noticeable  service If to space apart - less > you can look at implementation > - ServiceMetadataBehavior > - ServiceMetadataExtension > Last generally is implemented as IExtension <ServiceHostBase>, i.e. it is supposed that it will have 1 copy on each triggered host. > Well and there in the code it is possible to look at methods EnsureInitialized () or EnsureSingleWsdlInitialized () - there explicitly there is a protection against repeated generation of meta data. Thanks, I will look > But before something you to advise, I would specify what data from meta data you want to use. > There besides the description of contracts which can be received at any moment, up to compile time, there is still a description endpoints, and here already it is possible to pull out this data, , only at launched  the configured host. It is a question of a triggered host Meta data are requested for check that service is live I.e., actually are not used in any way - the service answer as that (m. is fixed only. Are compared on the client with previous for change tracking) D>> What better type  (from the point of view  ) for such request to use? > I nevertheless did not understand, you use any implementation, or work through standard mex-endpoint (or generally give through get-inquiry) get-request BasicHttpBinding will be enough?

5

Re: How WSDL?

Hello, vmpire, you wrote: V> Install reverse proxy. At least, it will be possible to look, how much it accelerates. And it is possible more in detail? Thanks...

6

Re: How WSDL?

Hello, mDmitriy, you wrote: >> But before something you to advise, I would specify what data from meta data you want to use. >> There besides the description of contracts which can be received at any moment, up to compile time, there is still a description endpoints, and here already it is possible to pull out this data, , only at launched  the configured host. D> it is a question of triggered host D> Meta data are requested for check that service is live D> I.e., actually are not used in any way - the service answer as that (m. is fixed only. Are compared on the client with previous for change tracking) And whether there is a possibility simply  certain  a method for ping? It seems to me, it will be the most optimal - and the answer  to make microscopic, and to control all parameters of such interface or service. Moreover, that you received meta data, not always speaks about vivacity of service. If I am not mistaken, queue of requests to meta data the that is at you requests to the cores  can already not be accepted, and meta data still quite to be given...

7

Re: How WSDL?

Hello, Michael Romanov, you wrote: > And whether there is a possibility simply  certain  a method for ping? Not I solve these questions, and writers of clients Something there is connected to response  to absence of connection Like as these requests transit on different mechanisms of this most  Something there with the cross connect-domain is connected Type  from request  it is possible to intercept, and the request of the data - is not present To me all it rubbed approximately so I there did not investigate and than to overcome this bad practice of yanking  now Not clearly therefore I try to solve problems at the level (WCF-service)

8

Re: How WSDL?

Hello, mDmitriy, you wrote: D> I there did not investigate and than to overcome this bad practice of yanking  now not clearly D> Therefore I try to solve problems at the level (WCF-service) Clearly. Well straight off I can suggest to try to use attribute externalMetadataLocation at all the same MetadataBehavior I.e. the circuit approximately the such: - at a stage of the assembly or setting of service you generate meta data (the most simple variant - svcutils to set on the assembly with contracts) - spread the received result somewhere under IIS (for example, it is local) - register there the link from . P.S. I so never did, but we  such variant when there was that at one our generated service simply terrible time of start because of generation of meta data... Truth then solved all a redesign of all architecture, but it already another story altogether.

9

Re: How WSDL?

Hello, mDmitriy, you wrote: V>> Install reverse proxy. At least, it will be possible to look, how much it accelerates. D> and it is possible more in detail? Thanks... If IIS - that https://blogs.iis.net/carlosag/setting- … te-and-arr for all url, except wsdl - is simple . For wsdl -  with switched on caching.

10

Re: How WSDL?

Hello, vmpire, you wrote: V>>> Install reverse proxy. At least, it will be possible to look, how much it accelerates. D>> and it is possible more in detail? Thanks... V> If IIS - that https://blogs.iis.net/carlosag/setting- … te-and-arr V> for all url, except wsdl - is simple . For wsdl -  with switched on caching. At me not IIS simply service WCF

11

Re: How WSDL?

Hello, mDmitriy, you wrote: V>> If IIS - that https://blogs.iis.net/carlosag/setting- … te-and-arr V>> for all url, except wsdl - is simple . For wsdl -  with switched on caching. D> at me not IIS D> simply service WCF To simply service WCF can be adjusted reverse proxy on IIS. Well or on nginx, but with it I did not work.