Friday, February 26, 2010 5:46 PMHello 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
- Moved by Mog Liang Monday, March 01, 2010 9:27 AM From: Windows Communication Foundation (From:Windows Communication Foundation)
Monday, March 01, 2010 3:34 PMModeratorTake a look at this very similar post, it may help you: http://social.msdn.microsoft.com/Forums/en/wcfprerelease/thread/7510970e-9602-4cb6-baaa-bc1beeaf98df
Monday, March 01, 2010 7:53 PMthanks for your answer, but i've already seen this post and it doesn't help me so much...
i can communicate with my device, i can discover my device, but i can't discover my hosted service's metadata... perhaps it's not possible...
Monday, March 01, 2010 8:47 PMModeratorHow is your service defined? How does the config file look like?