wcf - Resolve a URI to an EndpointAddress -


i have wcf client able ad-hoc service discovery find (unknown) services running on local subnet. implement way user specify service endpoint use entering uri text box, , client resolve uri endpointaddress, , in process gather additional metadata service. namely, need gather endpointidentity , additional data exposed in extensions property of endpointdiscoverybehavior.

i trying achieve using discoveryclient.resolve(), receiving null resolveresponse.endpointdiscoverymetadata property.

string address = "net.tcp://machine-name:12345/myservice" discoveryclient discoveryclient = new discoveryclient(new udpdiscoveryendpoint()); var criteria = new resolvecriteria() {     address = new endpointaddress(address) }; var result = discoveryclient.resolve(criteria); //scv null here..... var svc = result.endpointdiscoverymetadata; 

i've found lot of information out there regarding discoveryclient.find(), not discoveryclient.resolve().

so questions are:

  • is intended use of discoveryclient.resolve()?
  • is metadataresolver more appropriate here?
  • how 1 resolve uri endpointaddress , obtain other metadata?

i think trying replicate functionality of svcutil.exe. in case may have resolve mex endpoint first , query service metadata endpoint (imetadataexchange). spn identity should in metadata. see reference http://msdn.microsoft.com/en-us/library/ms733130.aspx


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -