What is the equivalent of 'Microsoft.Web.Services3' in .Net 4.5 - vb.net

The status of SOAPsupport in .net 4.5 is very ambiguous for me...
I'd like to do RPC on my home router (It is based on OpenRG)
I am trying to write a soap client and I'm baffled by all the tutorials that say to import that assembly.
I have no WSDL file for the CWMP proprietary version of the maker, so I'm on my bare foots (reversing from the Web UI).
Optionally, is there any program to easily create/modify WSDL files with a fancy UI and everything else? Maybe my best option is to start with some WSDL file for generic CWMP and modify it with the extensions of the maker?

Related

Consuming SharePoint 2010 WCF from .Net 4.5 + Store portable class library (PCL)

Can VS2012 build a proxy in a PCL project to consume a WCF service for SP2010? We add a reference (old school works everywhere else) but once we make calls, for instance GetListsCollectionAsync(), we get all sorts of errors. When we build the proxy, VS gives a warning:
Service proxy generation failed. Proxy requires type 'System.Xml.Linq.XElement' which is not supported in portable libraries
Has anyone successfully subscribed to a SharePoint WCF using a portable class library? The same stuff works fine in .net 4.5 class libraries and in metro libraries. Only portable ones give us this problem. We have win 7 and win 8 devices in the mix - so PCL would be a really good fit.
Got a conclusion here: We found a work around and the statement that this is a bug in VS2012 PCL projects still stands.
We created our proxy in a metro project and simply copied the reference.cs file over into the PCL project. It was a "what the heck - why not" last attempt of sorts, but it actually works. Even better, the calls are awaitable and come with response objects. Awesome!
Cheers,
Gregor

Is it possible to make aspnet ModelBinding work in .Net Framework 4.0 Web Forms?

We have a couple of relatively large Web Forms web application projects, but we are limited on using the .net 4.0 because some of our clients are still using Windows Server 2003, and the .net4.5 is not compatible with that OS.
Would it be somehow possible to make the model binding framework created on the .net4.5 work with the .net4.0 WebForms? Maybe something along the lines of extension methods on .net2.0 (although that is obviously almost 100% compile time stuff) or LinqBridge.
If that was possible to some extent, I think I would take the time to do it. Maybe if the code can be extracted from the original sources (I'm downloading them right now to see how it works) and be plugged like an extension or inheritance of sorts in our current page life cycle.
Does that mechanism have some external dependency that would make this prohibitive?
The WebForms-based feature required changes which are only available in 4.5.
That said, if you require model binding in some form, you could always try using the ASP.NET MVC or WebAPI frameworks for the particular part of your site in which you require model binding, leaving the rest as WebForms. They both currently only require .NET 4.0. And you get the benefit that both of those are supported products.

How to use SOAP 1.2(request and response) in windows forms

I have never worked with SOAP but now i need to use it to get a XML file or CSV file with a lot of products.
I have searched the internet for some examples and found some but i still don't understand how to use it.
Am i wright that it just sends a XML file to a server and you get back a XML file with the data.
Do i really need to install this so that it works: http://www.microsoft.com/en-us/download/details.aspx?id=11413
And i need to implement it in a windows forms application.
Hope someone can help me with a good tutorial.
You don't need to manually write all the code to do the SOAP communication yourself. The .NET framework and visual studio provide tools to automatically build custom client classes that mimic the interface of the SOAP service, and perform all of the SOAP communication for you. You don't need to install anything special, you just need to right-click on your project in the IDE and choose to add a Web Reference, or a Service Reference.

How to implement Configuration Service 5.0 of the StockTrader 5.0 sample application?

We have a collection of WCF Rest WebServices. Those WebServices are having configuration strings that are now hard coded as constants. We want to be able to change those configuration strings at runtime. A colleague of mine pointed me at the Configuration Service of the StockTrader sample application.
I installed the sample application and looked at working of the application. The Configuration Service is just a little part of the sample application. The documentation of the sample application contains a tutorial for the 'Visual Studio Configuration Service template', wich I followed. After that I found the 'Config Service Technical Guide' in the documentation folder of the sample application, wich contains a sort of action plan on page 12. The actionplan is just a summary what has to be implemented to use Configuration Service, not how it has to be implemented. Above the action plan the reader is referred to the 'Guide to Implementing the Configuration Service 5.0 for .NET Applications and Services'. Only thing after googling: The guide is nowhere to be found..
With the combination of the little actionplan in the technical guide, the comments in the code of the VS Template and the technical guide, I made a start to extract the Configuration Service and try to implement it in a new solution to test it. Now I am stuck with the implementation of the ConfigurationActionsBase. The implementation of the ConfigurationActionsBase persists the changes of the configuration to the database.
Does anyone know where the missing guide is(mentioned in the story
above)?
Does anyone know how to extract the configuration of magic
strings out of the StockTrader sample application?
Does anyone know an alternative solution for our scenario?
With Kind Regards,

Monotouch Web Reference Namespace Issue

I have an ASP.net web service sitting on a server, and I have verified that it works properly via a small test client app in VS.
I went to add it in MonoDevelop to my MT application, (Trying both the ASP.net 2.0 and WCF declarations). Inside the "Add Web Reference" wizard, it finds the web service fine. But when I go to reference it, the app doesn't know it exists.
I went to look at it, and it seems when adding it, the namespace it's assigning to it is the title of my solution (which has spaces in it), but the namespace for each of my .cs files within my app contains no spaces.
Web Service Namespace (that it wont let me change): Ultimate GameDay 2011
MT Application Namespace: UltimateGameday2011.
So I manually went into the reference.cs file and took out the spaces. The app classes then saw my web reference object, but it still won't allow me to access any of its members.
Any help would be greatly appreciated.
Check out the following link http://merbla.blogspot.com/2011/03/monotouch-with-json-using-aspnet-mvc.html
Its not a fix to your problem rather a method of creating web services that MonoTouch more easily works with. In my experience ASMX and WCF services have been problematic when consuming in a Monotouch app.
If all else fails, try using the Silverlight service utility located in your programs folder
e.g. C:\Program Files (x86)\Microsoft SDKs\Silverlight\v4.0\Tools\SlSvcUtil.exe