service-reference

What is the best way to add summary tags to a generated webservice proxy class?

Aloha I'm referencing an external webservice in my .NET 2.0 application. Adding a service reference generated a nice proxy class for me. I'd like to add ///<summary> style documentation to this. If the service reference is updated, all my shiny comments are gone. Is there any solution to this? -Edoode ...

How to configure WCF in a separate dll project

Aloha I'm developing a web application (ASP.NET 3.5) that will consume a number of web services. I have created a separate dll-project for each web service: these projects contains the service reference and client code. However, the calling website MUST have the <system.serviceModel> information (the <bindings> and <client> nodes) in ...

Including a service reference from a class library

I have a C# class library and a startup project (a console app). The class library includes a service reference to a web service. When I try to run the project, I get an InvalidOperationException because the startup project isn't reading the class library's app.config, and it's ignoring the service reference. To get it working, I'm force...

How to obtain OSGi service references from a Servlet that is registered in OSGi HttpService?

It seems natural that a HttpServlet running in OSGi environment (i.e. registered in OSGi HttpService) would want to call some OSGi services to accomplish it's tasks. The question is how to obtain references to these OSGi service inside the servlet. One way would be to inject dependencies into the HttpServlet instance that is being regis...

Service Reference namespace becomes unknown after I 'Update' the service reference

Service Reference namespace becomes unknown after I 'Update' the service reference. Has any one else encountered/resolved this issue? The changes I make to the Service Reference code are sometimes so minor, and always in method, never to the contract or anything and after update the service reference, VS2008 no longer recognizes the name...

WCF Service Reference .datasource files

What are the .datasource files that are automatically generated by "Create Service Reference" in Visual Studio? The comment in the file is this: This file is automatically generated by Visual Studio .Net. It is used to store generic object data source configuration information. Renaming the file extension or editing the conte...

Calling WebService using Service Reference and Maintain Session

I have a asp.net web-service which I use from my ASP.NET website. I can call it from raw Javascript or jQuery to post/get data. The web-service is enabled with session so that only authorized users can access data. [WebMethod(EnableSession = true)] public WS_ServiceResponse SetAccountName(string account, string name) ...

What are these WCF service reference files

When I add a WCF service reference in Visual Studio 2008, a directory named Service Reference\ServiceReferenceNamespace is created. In this directory, there's files named Service.xsd, Service1.xsd, Service2.xsd, Service3.xsd and Service4.xsd. The files rae not duplicates - the different files defines different types and elements. When ...

Error message when trying to add a Service Reference.

I'm trying to add a service reference to my silverlight project from a file stored on my hosting server. When I put the link in I get the following error: The document at the url http://www.lloydp.co.uk/Test/WcfRectangleService.dll was not recognized as a known document type. The error message from each known type may help you fix the ...

VS 2010 Beta 2 - unable to update service reference

I'm upgrading a project from VS2008 to VS2010B2 For some reason, after the project was upgraded, the code generated by the reference is missing, and I cannot re-create the code by reconfiguring the service reference, because I'm getting the following error: The configuration for the service reference could not be updated due to ...

What does this WCF error mean: "Custom tool warning: Cannot import wsdl:portType"

I created a WCF service library project in my solution, and have service references to this. I use the services from a class library, so I have references from my WPF application project in addition to the class library. Services are set up straight forward - only changed to get async service functions. Everything was working fine - un...

WCF: Updating Service Reference gives duplicate config entries

I have a WPF application using service references to a WCF service. When doing updates on the service I need to update the service reference, so I right click it and hit "Update Service Reference". Doing this results in duplicate entries in the App.config file of the client project. It duplicates a binding under wsHttpBinding - addi...

Add Service Reference to WCF Service within Same Project

Is it an acceptable programming practice to add a Service Reference to a Project where the Service being referenced is defined within the same VS Project? (Service and Service Reference are in the same Project) example: MyWebAppProj -Services --MyService -Service References --MyServiceServiceReference.MyServiceClient -Default.aspx.cs ...

Can I add a Service Reference with netTcpBinding in WCF?

Is it possible to add a service reference in visual studio, which generates the local proxy class to call the WCF service when using the netTcpBinding? As I understood it, the service reference method requires a WSDL to be exposed by the service, which is only supported by the http bindings no? Perhaps, could I add the service referenc...

Proxy problems when adding Service Reference in VS 2010

Hi everyone, I was able to add a Service Reference in VS2008 with no problems at all. However, on the same machine within the same network, I couldn't do that in VS2010. It got a (407) response, Proxy Authentication Required. Has anyone else encountered this problem before? Are there new settings in VS2010 that need tweaking? Thanks, ...

When I use "Add Service Reference", I can't see optional method parameters.

I'm working on a WCF Service. I have one service operation Function getValues(Optional verbose as Boolean) as List(of String). This works: ' First, add a file reference that contains the iRM interface. Dim ep3 As EndpointAddress ep3 = New EndpointAddress("net.pipe://localhost/RM/RMPipe") Dim netPipeR...

Changing "web reference" to "service reference" changes method signature

I'm helping out a colleague on this one so if I'm missing some details that's why. We have an asp.net 3.5 web application calling a WCF service. Originally the app used a "Web Reference" to register the service however after having some trouble and burning an incident with Microsoft their solution was to replace the "Web Reference" wit...

silverlight service reference from wsdl - methods missing

I'm successfully creating a Service Reference for a silverlight application by pointing to a local wsdl file. The preview pane shows the 6 methods avaialble in this wsdl. However, the generated proxy seems to have no knowledge of those methods, so I cannot find a way to call them. Been fighting this for a while, what the heck is goin...

Using ICollection property with WCF Service

I have a class, ExpenseInfo that includes an ICollection<String> property: public ICollection<String> WhoOwes { get; private set; } I have a WCF service that returns objects of type ExpenseInfo. I added a reference to the service in a Silverlight project within the same solution. This generated a bunch of code, including an ExpenseInf...

Can't access a wcf service from Windows 7, but I can from XP or Vista

I have a WCF service running on Server 2008 standard that works fine when calling from an XP client or Vista. I can compile the program (using VS2010, WPF) from an XP system and it will run fine on Vista or XP. If I try to run on a Windows 7, no luck. I also installed VS2010 on the Windows 7 system and try to update the service refere...