Questions tagged [slsvcutil]

14 questions
8
votes
1 answer

Generate a WCF client proxy for a netstandard Xamarin.Forms project

I've created a Xamarin.Forms project with a netstandard2.0 targeting library instead of a shared or PCL library. So far this compiles and works. I'm using an up2date version of Visual Studio 2017 Community. I also have created a WCF service that…
Martin Braun
  • 10,906
  • 9
  • 64
  • 105
3
votes
1 answer

Common causes of SlSvcUtil.exe not reusing a data contract types

I have a WCF web service that's being consumed by both Silverlight and .NET clients. In order to share the data contract types with both clients, the contracts are defined in two class libraries: one Silverlight and one .NET. The files defining the…
Odrade
  • 7,409
  • 11
  • 42
  • 65
3
votes
1 answer

Silverlight 5 SDK SLSvcUtil errors after install VS 2015.1 / .NET 4.6.1

I use the Silverlight 5 SDK tool SLSVCUTIL to generate the WCF service metadata for use with Xamarin. It's a basic usage passing the URL to the svc and a /d output folder for the generated content. It's been working great for years. Today I…
Neal
  • 9,487
  • 15
  • 58
  • 101
2
votes
0 answers

SlSvcUtil ignores MessageHeader properties

To show my problem I created a simple WCF service with operations that use a message class with [MessageContract] attribute. This message contains the MyHeader property and is annotated with the [MessageHeader] attribute. [MessageContract] public…
Marcel Hoyer
  • 2,048
  • 2
  • 13
  • 10
2
votes
2 answers

'Object.ReferenceEquals' is always false because it is called with a value type

When I use SlSvcUtil.exe to create my service client files, I see code like this: private string CategoryField; [System.Runtime.Serialization.DataMemberAttribute()] public string Category { get { return this.CategoryField; } …
Code Maverick
  • 20,171
  • 12
  • 62
  • 114
2
votes
1 answer

Trying to reference a portable library with SlSvcUtil.exe

Can someone confirm that the /reference switch does not work with slsvcutil.exe when I'm pointing it to a portable library? It seems, that it just ignores the types provided in a portable library and creates its own classes in reference.cs, which…
Marc Wittke
  • 2,991
  • 2
  • 30
  • 45
1
vote
1 answer

Silverlight WCF "slsvcutil.exe" - How to set timeout

We use the Silverlight SDK to generate our WCF proxies (slsvcutil.exe) How do we set the connection/response timeout with the resulting class to a different level? Note: We're using MonoTouch.NET on an iPhone so there is no app.config. All settings…
Ian Vink
  • 66,960
  • 104
  • 341
  • 555
1
vote
0 answers

Slsvcutil generates incomplete proxy

I have been using Slsvcutil for some time to generate proxies for my WCF service, that would be compatible with Xamarin.ios. I had never had a problem. However, today, I attempted to update my proxy, and the resulting contract was…
Adam
  • 4,159
  • 4
  • 32
  • 53
1
vote
1 answer

Monotouch: WCF Client Example Needed

I am trying to create a WCF client to connect to my server using MonoTouch. Since Monotouch doesn't support dynamic code generation I tired using slscvutil.exe to generate the client code. The output I get from that does not compile. It tries to use…
Zach
  • 91
  • 4
1
vote
1 answer

How to dynamically create auto generated code programmatically without using SLsvcutil.exe tool?

We are using WCF service to get the operation. I know, how to programmatically generate metadata of WCF service using svutil.exe tool. I dont know how to do it with SLsvcutil.exe tool. I need to create auto generated code by slsvcutil.exe…
0
votes
1 answer

How to optimize my API's performance, with XML File Requests and Responses

Here we have a project where we providing flight booking service building using .netcore 3.1. And Microsoft.Tools.ServiceModel.Svcutil is used to generate Reference.cs model where we store the metadata from the third party API service. Our third…
0
votes
1 answer

SLSvcUtil generates RequestObject

i´ve recently created a WCF-Service and would like to consume it with a Silverlight App. To do so, i used SlSvcUtil (Silverlight 4) to create the necessary client-Side Classes. But for every Method, this tool generates a Request-Object wich has…
Vertigo
  • 634
  • 1
  • 9
  • 24
0
votes
1 answer

MonoDroid EndpointNotFoundException

I'm calling a web service using client code that I generated using Microsoft's slsvcutil. No matter what call I make, I'm getting an EndpointNotFoundException. Stack trace is below. The service is running on my local machine. I'm able to…
joates
  • 1,103
  • 2
  • 11
  • 22
0
votes
1 answer

Auto generated client proxy code for service using slsvcutil.exe tool by programmatically

We will open Visual stdio command prompt 2010 (svcutil.exe) tool for create client proxy and auto generated code will create by this tool. svcutil.exe /language:cs /out:generatedProxy.cs /config:app.config localhost:8000/... The same process will…