wcf

WCF reference.cs suddenly not including classes

試著忘記壹切 提交于 2021-01-27 07:37:59
问题 I have developed a WCF service that has been working fine for a few weeks now. I publish this service to IIS directly from the development server. I have a dev test app that includes this WCF service as a Service Reference in its own project. My WCF class library also references another project within the Visual Studio solution, and many classes are in the referenced project that are used by the service and calling applications. Today, after publishing some changes to the service (I did not

Configuring WCF client binding to use X509 certificate in dotnet core 2.2

为君一笑 提交于 2021-01-27 07:34:43
问题 I'm trying to convert an old WCF client to dotnet core. I successfully generated my proxies from the wsdl and have been trying to configure them so I can successfully call the endpoint. It appears, based on some googling, that under dotnet core I need to configure my WCF client from code. Here's the WCF configuration section from the web.config of the old application: <system.serviceModel> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> <behaviors> <endpointBehaviors>

How can I configure WCF to only sign the TimeStamp header

不问归期 提交于 2021-01-27 06:56:48
问题 I am trying to configure my WCF client to create a SOAP 1.1 request that includes WS-Addressing, WS-Security and TLS. The security requirements are that the message includes a Username Token, TimeStamp and that the TimeStamp is signed using an included BinarySecurityToken. I have used the example from the following link to create my WCF client binding. I have slightly modified the the example (see below) so that HTTPS is used as the transport mechanism and the MessageSecurity is based on

How can I configure WCF to only sign the TimeStamp header

扶醉桌前 提交于 2021-01-27 06:54:47
问题 I am trying to configure my WCF client to create a SOAP 1.1 request that includes WS-Addressing, WS-Security and TLS. The security requirements are that the message includes a Username Token, TimeStamp and that the TimeStamp is signed using an included BinarySecurityToken. I have used the example from the following link to create my WCF client binding. I have slightly modified the the example (see below) so that HTTPS is used as the transport mechanism and the MessageSecurity is based on

WCF: Fix the Endpoint Address When Using externalMetadataLocation

浪尽此生 提交于 2021-01-27 06:34:16
问题 WCF allows you to specify an external WSDL file that should be published with the service rather than WCF's generated WSDL. In a WSDL-first design approach, it makes a lot of sense to publish the source WSDL rather than the generated WSDL. This is set using the externalMetadataLocation: <serviceBehaviors> <behavior> <serviceMetadata httpGetEnabled="true" externalMetadataLocation="path_to_my_wsdl.wsdl"/> <serviceDebug includeExceptionDetailInFaults="false"/> </behavior> </serviceBehaviors> The

WCF: Fix the Endpoint Address When Using externalMetadataLocation

北城以北 提交于 2021-01-27 06:33:11
问题 WCF allows you to specify an external WSDL file that should be published with the service rather than WCF's generated WSDL. In a WSDL-first design approach, it makes a lot of sense to publish the source WSDL rather than the generated WSDL. This is set using the externalMetadataLocation: <serviceBehaviors> <behavior> <serviceMetadata httpGetEnabled="true" externalMetadataLocation="path_to_my_wsdl.wsdl"/> <serviceDebug includeExceptionDetailInFaults="false"/> </behavior> </serviceBehaviors> The

WCF using Reverse proxy

感情迁移 提交于 2021-01-27 06:28:31
问题 My apologize for long post... We have a WCF service written in .Net 4.0 used internally within the organization. Recently there was a requirement to make this service available outside the organization network. So the network guys used reverse proxy to make this service available outside the organization. Here is the picture how it is set up. As you can see in the picture..the service http://mywebservice.com/readd.svc is hosted on WIndows 2008 R2 which has a internal IP address as XXX.YYY.ZZZ

Not able to add HTTPS enabled WCF Service as Service reference in Visual Studio 2010 IDE

六月ゝ 毕业季﹏ 提交于 2021-01-27 05:42:57
问题 While adding a HTTPS enabled WCF Service as Service reference through Visual Studio 2010 IDE, the following exception occured There was an error downloading 'https://abc.cloudapp.net/DataService.svc'. The request failed with HTTP status 403: Forbidden. Metadata contains a reference that cannot be resolved: 'https://abc.cloudapp.net/DataService.svc'. The HTTP request was forbidden with client authentication scheme 'Anonymous'. The remote server returned an error: (403) Forbidden. If the

How to create or attach WCF service in existing asp.net web site

谁说胖子不能爱 提交于 2021-01-27 04:52:08
问题 i have already a web site which is live and hosted in ORCS Web developed using asp.net form project type. now i am planning to develop a wcf service which will be stored in a new folder of my existing website. we will use wcf service for uploading file from client machine to our web server. client can be any other .net based web apps or .net based win apps. i never work with wcf in production environment. so i want to know can i create that wcf service which will be stored in a new folder of

WCF generated proxy throws InvalidOperationException due to multiple types with same name in WSDL

旧巷老猫 提交于 2021-01-27 01:15:46
问题 I'm using Visual Studio 2013 to generate a WCF service proxy from this WSDL file. However, as soon as I try to call the setSalesItemsV3 method, WCF throws an InvalidOperationException from deep in System.Xml.dll . This sample project demonstrates the problem: https://github.com/jennings/WsdlDuplicateNameProblem This is the inner exception: Message: The top XML element 'start' from namespace '' references distinct types WsdlDuplicateName.SalesItemService.hsSimpleDate and System.DateTime. Use