Hello everybody,
i have one DPWS device that hosts 1 very simple service (just 1 operation). All is built with the .NET microFramework 4 and runs in the emulator (it's the same problem with a real device).
My goal is to have a dynamic WCF 4.0 client of this DPWS device.
With discovery and metadataExchangeClient, i can retrieve the metadata of the device : ThisModel, ThisDevice and Relationship.
my problem is to extract metadata (WSDL) from the hosted service.
in the device's metadata, i see the hosted service endpoint and the type of this service (in my sample : dom:DomotiqueService)
<wsx:MetadataSection xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" Dialect="http://schemas.xmlsoap.org/ws/2006/02/devprof/Relationship">
<wsdp:Relationship xmlns:wsdp="http://schemas.xmlsoap.org/ws/2006/02/devprof" Type="http://schemas.xmlsoap.org/ws/2006/02/devprof/host">
<wsdp:Hosted xmlns:wsdp="http://schemas.xmlsoap.org/ws/2006/02/devprof">
<wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://192.168.0.2:8084/55321b6d-f681-4203-acfb-73b7b58d3ff2</wsa:Address>
</wsa:EndpointReference>
<wsdp:Types xmlns:wsdp="http://schemas.xmlsoap.org/ws/2006/02/devprof">dom:DomotiqueService</wsdp:Types>
<wsdp:ServiceId xmlns:wsdp="http://schemas.xmlsoap.org/ws/2006/02/devprof">urn:uuid:55321b6d-f681-4203-acfb-73b7b58d3ff2</wsdp:ServiceId>
</wsdp:Hosted>
</wsdp:Relationship>
</wsx:MetadataSection>
But i can't extract any metadata from this hosted service... i've tried WsdlImporter, but the ImportAllContracts() method returns 0 contracts...
Is there a way to extracts the ServiceOperations or the full WSDL of an hosted Service ??
Any help or idea would be greatly appreciated
SENSEI