Notification

Icon
Error

Cannot get metadata from WSDAPI service with MF 3.0 client
n etx
#1 Posted : Thursday, May 20, 2010 8:10:26 AM(UTC)
Rank: Tinkerer

Joined: 5/20/2010(UTC)
Posts: 11

Hello,



I have implemented a service using WSDAPI. I use the next code (it is the

one from the Expert .Net Microframework book, with a little modification) to

get metadata from the service from a MF DPWS client.



http://pastebin.com/zB7ZQ4NR



This code works well and I get metadata when I use MF 2.5 in a VS2005

project, but the call "DpwsMetadata metadata =

mexClient.Get(deviceTransportAddr);" in line 33 always returns null when

using MF 3.0  or MF 4.0 in a VS2008 project.



Any idea where the problem could be?



Thanks.

Zach Libby
#1 Posted : Friday, May 21, 2010 1:11:18 PM(UTC)
Zach Libby

Rank: Tinkerer

Joined: 2/5/2010(UTC)
Posts: 243

Was thanked: 8 time(s) in 8 post(s)

n etx said:

Hello,



I have implemented a service using WSDAPI. I use the next code (it is the

one from the Expert .Net Microframework book, with a little modification) to

get metadata from the service from a MF DPWS client.



http://pastebin.com/zB7ZQ4NR



This code works well and I get metadata when I use MF 2.5 in a VS2005

project, but the call "DpwsMetadata metadata =

mexClient.Get(deviceTransportAddr);" in line 33 always returns null when

using MF 3.0  or MF 4.0 in a VS2008 project.



Any idea where the problem could be?



Thanks.

Hello n etx,



I will look into this and get back to you shortly.



Thanks,

Zach
n etx
#1 Posted : Tuesday, June 01, 2010 10:24:43 AM(UTC)
Rank: Tinkerer

Joined: 5/20/2010(UTC)
Posts: 11

Zach Libby said:

n etx said:

Hello,



I have implemented a service using WSDAPI. I use the next code (it is the

one from the Expert .Net Microframework book, with a little modification) to

get metadata from the service from a MF DPWS client.



http://pastebin.com/zB7ZQ4NR



This code works well and I get metadata when I use MF 2.5 in a VS2005

project, but the call "DpwsMetadata metadata =

mexClient.Get(deviceTransportAddr);" in line 33 always returns null when

using MF 3.0  or MF 4.0 in a VS2008 project.



Any idea where the problem could be?



Thanks.

Hello n etx,



I will look into this and get back to you shortly.



Thanks,

Zach

Hello Zach,


Do you know where could be the problem?


I have also tried with the new Micro Framework 4.1. I have implemented the client in Visual Studio 2010 with Micro Framework 4.1 and the service using WSDAPI. When I try to get metadata from the service, the call “DpwsMetadata metadata = mexClient.Get(deviceTransportAddr);" in MF client returns null again.


Thanks,


Zach Libby
#1 Posted : Monday, June 14, 2010 12:06:31 PM(UTC)
Zach Libby

Rank: Tinkerer

Joined: 2/5/2010(UTC)
Posts: 243

Was thanked: 8 time(s) in 8 post(s)

n etx said:

Zach Libby said:

n etx said:

Hello,



I have implemented a service using WSDAPI. I use the next code (it is the

one from the Expert .Net Microframework book, with a little modification) to

get metadata from the service from a MF DPWS client.



http://pastebin.com/zB7ZQ4NR



This code works well and I get metadata when I use MF 2.5 in a VS2005

project, but the call "DpwsMetadata metadata =

mexClient.Get(deviceTransportAddr);" in line 33 always returns null when

using MF 3.0  or MF 4.0 in a VS2008 project.



Any idea where the problem could be?



Thanks.

Hello n etx,



I will look into this and get back to you shortly.



Thanks,

Zach

Hello Zach,


Do you know where could be the problem?


I have also tried with the new Micro Framework 4.1. I have implemented the client in Visual Studio 2010 with Micro Framework 4.1 and the service using WSDAPI. When I try to get metadata from the service, the call “DpwsMetadata metadata = mexClient.Get(deviceTransportAddr);" in MF client returns null again.


Thanks,


Hello n etx,



We just released a Beta refresh which should take care of this problem.  There was a bug in the DPWS code that was causing this problem.  



Please let me know if you have any other problems.



Thanks,

Zach 
n etx
#1 Posted : Tuesday, June 15, 2010 6:20:24 AM(UTC)
Rank: Tinkerer

Joined: 5/20/2010(UTC)
Posts: 11

Zach Libby said:

n etx said:

Zach Libby said:

n etx said:

Hello,



I have implemented a service using WSDAPI. I use the next code (it is the

one from the Expert .Net Microframework book, with a little modification) to

get metadata from the service from a MF DPWS client.



http://pastebin.com/zB7ZQ4NR



This code works well and I get metadata when I use MF 2.5 in a VS2005

project, but the call "DpwsMetadata metadata =

mexClient.Get(deviceTransportAddr);" in line 33 always returns null when

using MF 3.0  or MF 4.0 in a VS2008 project.



Any idea where the problem could be?



Thanks.

Hello n etx,



I will look into this and get back to you shortly.



Thanks,

Zach

Hello Zach,


Do you know where could be the problem?


I have also tried with the new Micro Framework 4.1. I have implemented the client in Visual Studio 2010 with Micro Framework 4.1 and the service using WSDAPI. When I try to get metadata from the service, the call “DpwsMetadata metadata = mexClient.Get(deviceTransportAddr);" in MF client returns null again.


Thanks,


Hello n etx,



We just released a Beta refresh which should take care of this problem.  There was a bug in the DPWS code that was causing this problem.  



Please let me know if you have any other problems.



Thanks,

Zach 

Thanks for your answer Zach!


 


I have installed Micro Framework Beta 4.1 Refresh but I still have the same problem: “DpwsMetadata metadata = mexClient.Get(deviceTransportAddr);" in MF client returns null.


I use network monitor and I can see messages between client and service. The Micro Framework client sends a soap message asking for the metadata and WSDAPI service answers, here you can see the soap message sent by the WSDAPI service:


 


http://pastebin.com/pBvyZhxY


 


But then an exception is thrown in Micro Framework 4.1 client and DpwsMetadata is null, maybe Micro Framework 4.1 client can´t understand received soap message? However, there isn´t any problem in Micro Framework 2.5 client.


 


Thanks,


Zach Libby
#1 Posted : Monday, June 21, 2010 12:38:06 PM(UTC)
Zach Libby

Rank: Tinkerer

Joined: 2/5/2010(UTC)
Posts: 243

Was thanked: 8 time(s) in 8 post(s)

n etx said:

Hello,



I have implemented a service using WSDAPI. I use the next code (it is the

one from the Expert .Net Microframework book, with a little modification) to

get metadata from the service from a MF DPWS client.



http://pastebin.com/zB7ZQ4NR



This code works well and I get metadata when I use MF 2.5 in a VS2005

project, but the call "DpwsMetadata metadata =

mexClient.Get(deviceTransportAddr);" in line 33 always returns null when

using MF 3.0  or MF 4.0 in a VS2008 project.



Any idea where the problem could be?



Thanks.

Hello n etx,



I discovered the root of your problem.  Our Uri class was not properly parsing the IPv6 address coming from the WSDAPI service.  This has been fixed and will be present in the next release.



Thanks,

Zach
n etx
#1 Posted : Tuesday, June 22, 2010 10:19:26 AM(UTC)
Rank: Tinkerer

Joined: 5/20/2010(UTC)
Posts: 11

Zach Libby said:

n etx said:

Hello,



I have implemented a service using WSDAPI. I use the next code (it is the

one from the Expert .Net Microframework book, with a little modification) to

get metadata from the service from a MF DPWS client.



http://pastebin.com/zB7ZQ4NR



This code works well and I get metadata when I use MF 2.5 in a VS2005

project, but the call "DpwsMetadata metadata =

mexClient.Get(deviceTransportAddr);" in line 33 always returns null when

using MF 3.0  or MF 4.0 in a VS2008 project.



Any idea where the problem could be?



Thanks.

Hello n etx,



I discovered the root of your problem.  Our Uri class was not properly parsing the IPv6 address coming from the WSDAPI service.  This has been fixed and will be present in the next release.



Thanks,

Zach
Thanks so much!

Do you know when will be the next release?



Zach Libby
#1 Posted : Thursday, June 24, 2010 7:08:27 PM(UTC)
Zach Libby

Rank: Tinkerer

Joined: 2/5/2010(UTC)
Posts: 243

Was thanked: 8 time(s) in 8 post(s)

n etx said:

Hello,



I have implemented a service using WSDAPI. I use the next code (it is the

one from the Expert .Net Microframework book, with a little modification) to

get metadata from the service from a MF DPWS client.



http://pastebin.com/zB7ZQ4NR



This code works well and I get metadata when I use MF 2.5 in a VS2005

project, but the call "DpwsMetadata metadata =

mexClient.Get(deviceTransportAddr);" in line 33 always returns null when

using MF 3.0  or MF 4.0 in a VS2008 project.



Any idea where the problem could be?



Thanks.

Hello n etx,



We will likely have the release at the end of the month unless a major issue is discovered.



Thanks

Zach
Rss Feed  Atom Feed
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.336 seconds.