wcf-client

Sending SOAP messages WCF client that include a username token and digital signature but are NOT encrypted

可紊 提交于 2019-12-07 14:24:47
问题 WCF does my head in. What I'm trying to do is create a WCF client that will send SOAP messages that contain a username token and are signed with a certificate, but are not encrypted. I've found many articles and blogs with code which almost does what I want, but not quite, and now I'm stumped. Can anyone give me a simple example of how to do this? What I've done so far is: Use svcutil to generate a config file and WCF code from a wsdl and xsd Install certificates and load from the certificate

How can I convert this app.config WCF Client configuration to code?

孤人 提交于 2019-12-07 13:26:20
问题 I have been provided with the following app.config entry, however I would like to have this as code in my application in order to understand WCF better. Is there a converter anywhere, or can someone provide the code. Thanks. <system.serviceModel> <client> <endpoint name="QA" address="https://subdomain1.theirdomain.com/5067/Sample1" behaviorConfiguration="WSSecBehavior" binding="customBinding" bindingConfiguration="Soap11_Secure" contract="star.starTransportPortTypes" /> <endpoint name="PROD"

Importing WSDL into a .NET project only creates an empty namespace

↘锁芯ラ 提交于 2019-12-07 12:16:02
问题 I'm trying to use WCF for the first time. Here's what I did: Created a console .NET 4 project in VS 2010 Added a WSDL file as a service reference. However, I can't seem to be able to use the service, because no classes were created. The service reference is just an empty namespace. What am I missing? Here is the WSDL: <?xml version="1.0" encoding="UTF-8"?> <!-- edited with XMLSPY v2004 rel. 3 U (http://www.xmlspy.com) by Christophe Duquesne (DRYADE SA) --> <!-- edited with XMLSpy v2007 rel. 3

WCF: Could not find default endpoint element that references contract 'IService' in the ServiceModel client configuration section. when hosting in IIS

十年热恋 提交于 2019-12-07 11:38:19
问题 I have a WCF service which is being hosted in IIS. I have a WCF client also (a console application). I have used svcutil to build the proxy class and configuration file and then added those to my client project. It built properly. But when I tried to run the program, it is throwing the below exception Could not find default endpoint element that references contract 'IService' in the ServiceModel client configuration section. This might be because no configuration file was found for your

Handling WCF events in another process

被刻印的时光 ゝ 提交于 2019-12-07 08:02:39
问题 I have a non-serializable object that I would like to access from a separate process. I've looked around and it seems the only viable option is to use WCF but I'm not sure how to do this as I'm new to WCF. If I create a WCF service, how do I 'hook' the WinForm into the various events in the WCF service? For example, the user communicates with the WCF service directly and I would likemy WinForm client to be notified. How would I be able to know when the user has done something with the WCF

Consuming non-wcf SOAP fault from WCF client (soap fault defined)

痴心易碎 提交于 2019-12-07 05:06:15
问题 I have a non-wcf server that I call from WCF client and I need to gain access to registered soap fault in case server throws it (it contains a feedback I need for user). I used the example from How to access SOAP 1.1 fault detail from WCF client (no fault contract) but its a pain given I DO have the fault contract defined in the wsdl, at least per SOAP specification and the fault contains error code and error string. <wsdl:types> <schema elementFormDefault="qualified" targetNamespace="http:/

WCF Client how can I deserialize an incompatible date format from the JSON response?

懵懂的女人 提交于 2019-12-07 01:32:50
问题 I have scoured the Net for info on this, but most of the results are about creating WCF services or situations where the service is under your control. I am building a WCF client proxy for a RESTful JSON service which is out of my control. I am using the basic ServiceContract/DataContract pattern, and trying to let the framework do as much of the work as possible. Mostly this is working fine, but all the datetime fields coming from this external service are in a particular format, e.g. {

WCF Client with WS-Security

僤鯓⒐⒋嵵緔 提交于 2019-12-06 14:10:10
I need to implement a WCF client that meets the following SOAP message example: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:msa="http://msa.ebs.health.ontario.ca/" xmlns:idp="http://idp.ebs.health.ontario.ca/" xmlns:edt="http://edt.health.ontario.ca/" xmlns:ebs="http://ebs.health.ontario.ca/"> <soapenv:Header> <ns2:EBS wsu:Id="id-1" xmlns:ns2="http://ebs.health.ontario.ca/" > <SoftwareConformanceKey>444561ee-277f-77b2-c664-7a9923jfgh1b</SoftwareConformanceKey> <AuditId>f68e6ff9-74f7-4022-8618-ec2cf0ee4b6a</AuditId> </ns2:EBS> <ns2:MSA wsu:Id="id-2" xmlns

Error: Cannot obtain Metadata from http://172.16.70.125:8080/ when using WCF client to access service on another computer

限于喜欢 提交于 2019-12-06 12:18:55
问题 I'm a newbie to WCF. So here's the thing : I have two systems, one running the wcf service and the other running the client. I'm able to ping the IP of the service, and also able to see the link when I put it into my browser. (It shows me the service is up and running). Howver, when I try to run wcftestclient from cmd, it gives me this error : Error: Cannot obtain Metadata from http://172.16.70.125:8080/Service If this is a Windows (R) Communication Foundation service to which you have access

sending custom object from client (Jquery) to server (WCF)

大兔子大兔子 提交于 2019-12-06 11:14:18
how to send a custom object from client (jquery) to server (WCF service) what is the way of passing an object? below is my code and when i see in the firebug this is what i get please see the screen shot: http://img88.imageshack.us/img88/205/54211873.png var CustomerInfo = { Name: '', Address: '' }; function buildNewCustomerRequest() { var request = { CustomerInfo: CustomerInfo }; request.CustomerInfo.FirstName = $("#Name").val(); request.CustomerInfo.Address = $("#Address").val(); return request; } $("#getcustomerobject").click(function (event) { var request = buildNewCustomerRequest(); var