wcf

Add Service Reference not appearing

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-07 10:16:35
问题 In a Windows Phone 7 Silverlight project, I had a service reference to a WCF service. This morning when I opened up the project, suddenly the namespaces for my WCF service were unknown. The option for "Update Service Reference" in Solution Explorer was not there, so I deleted the Service Reference with the intent of re-adding it. But the option for "Add Service Reference" is also not there. Gone. Disappeared. Closed and re-opened the solution. Restarted VS2010 Ultimate. No dice. Anyone run

Add Service Reference not appearing

时光毁灭记忆、已成空白 提交于 2021-02-07 10:15:25
问题 In a Windows Phone 7 Silverlight project, I had a service reference to a WCF service. This morning when I opened up the project, suddenly the namespaces for my WCF service were unknown. The option for "Update Service Reference" in Solution Explorer was not there, so I deleted the Service Reference with the intent of re-adding it. But the option for "Add Service Reference" is also not there. Gone. Disappeared. Closed and re-opened the solution. Restarted VS2010 Ultimate. No dice. Anyone run

WCF Change message encoding from Utf-16 to Utf-8

江枫思渺然 提交于 2021-02-07 10:10:58
问题 I have a WCF connected service in a .net core application. I'm using the code that is autogenerated taken the wsdl definition. Currently at the top of the request xml is including this line: <?xml version="1.0" encoding="utf-16"?> I can't find a simple way to change this encoding to UTF-8 when sending the request. Since I could find a configuration option a the request/client objects, I've tried to change the message with following code at IClientMessageInspector.BeforeSendRequest public

WCF Change message encoding from Utf-16 to Utf-8

淺唱寂寞╮ 提交于 2021-02-07 10:10:45
问题 I have a WCF connected service in a .net core application. I'm using the code that is autogenerated taken the wsdl definition. Currently at the top of the request xml is including this line: <?xml version="1.0" encoding="utf-16"?> I can't find a simple way to change this encoding to UTF-8 when sending the request. Since I could find a configuration option a the request/client objects, I've tried to change the message with following code at IClientMessageInspector.BeforeSendRequest public

WCF Change message encoding from Utf-16 to Utf-8

怎甘沉沦 提交于 2021-02-07 10:09:46
问题 I have a WCF connected service in a .net core application. I'm using the code that is autogenerated taken the wsdl definition. Currently at the top of the request xml is including this line: <?xml version="1.0" encoding="utf-16"?> I can't find a simple way to change this encoding to UTF-8 when sending the request. Since I could find a configuration option a the request/client objects, I've tried to change the message with following code at IClientMessageInspector.BeforeSendRequest public

WCF Change message encoding from Utf-16 to Utf-8

故事扮演 提交于 2021-02-07 10:09:00
问题 I have a WCF connected service in a .net core application. I'm using the code that is autogenerated taken the wsdl definition. Currently at the top of the request xml is including this line: <?xml version="1.0" encoding="utf-16"?> I can't find a simple way to change this encoding to UTF-8 when sending the request. Since I could find a configuration option a the request/client objects, I've tried to change the message with following code at IClientMessageInspector.BeforeSendRequest public

How to make WCF client sign SecurityTokenReference:Reference

China☆狼群 提交于 2021-02-07 10:00:21
问题 I need to create a WCF client who calls a bea webservice. I keep getting this response from the webservice: Could not validate signature using any of the supported token types So I turn my attention to the signature part of the client<->service communication: Part of the wsdl from the webservice: <s0:Policy s1:Id="Sign.xml"> <wssp:Integrity xmlns:wls="http://www.bea.com/wls90/security/policy/wsee#part" xmlns:wssp="http://www.bea.com/wls90/security/policy" xmlns:wsu="http://docs.oasis-open.org

Dotnet core with SOAP service

↘锁芯ラ 提交于 2021-02-07 09:34:51
问题 We have a ASP.NET Core system and we need to connect to another webservice using SOAP (we received the WSDL from the customer). In the past, we should have use the "add service reference" using WCF options in Visual Studio. For dotnet core projects, the options is no more available but there are several options to get the same solutions: Use SvcUtil in the command line or install the plugin here https://blogs.msdn.microsoft.com/webdev/2016/06/26/wcf-connected-service-for-net-core-1-0-0-and

Getting WSDL from VS2010 WCF Service application

╄→гoц情女王★ 提交于 2021-02-07 08:57:16
问题 I Just created a sample WCF Service application in Visual Studio 2010. It has the following configuration and service code. I need to see the corresponding WSDL generated. What I need to do to see the corresponding WSDL? CODE public class Service1 : IService1 { public string GetData(int value) { return string.Format("You entered: {0}", value); } public CompositeType GetDataUsingDataContract(CompositeType composite) { if (composite == null) { throw new ArgumentNullException("composite"); } if

Getting WSDL from VS2010 WCF Service application

大兔子大兔子 提交于 2021-02-07 08:56:06
问题 I Just created a sample WCF Service application in Visual Studio 2010. It has the following configuration and service code. I need to see the corresponding WSDL generated. What I need to do to see the corresponding WSDL? CODE public class Service1 : IService1 { public string GetData(int value) { return string.Format("You entered: {0}", value); } public CompositeType GetDataUsingDataContract(CompositeType composite) { if (composite == null) { throw new ArgumentNullException("composite"); } if