wcf

A call to SSPI failed, see inner exception when running the call a second time?

ⅰ亾dé卋堺 提交于 2021-02-18 17:07:41
问题 I have the following code : public GetUserDataResponse GetUserDataFromService(X509Certificate2 certificate) { ChannelFactory<MyApp4SITHSService.IMyApp4SITHSServiceContract> factory = new ChannelFactory<MyApp4SITHSService.IMyApp4SITHSServiceContract>("NetTcpBinding_IMyApp4SITHSServiceContract_Certificate"); MyApp4SITHSService.IMyApp4SITHSServiceContract service; GetUserDataResponse response; factory.Credentials.ClientCertificate.Certificate = certificate; //factory.Credentials.UserName

Extracting detail from a WCF FaultException response

亡梦爱人 提交于 2021-02-18 10:16:06
问题 I am successfully working with a third party soap service. I have added a service reference to a soap web service which has auto generated the classes. When an error occurs it returns a soap response like this: <SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body> <SOAP-ENV:Fault> <faultcode>SOAP-ENV:Client</faultcode> <faultstring xsi:type="xsd:string"

Ksoap2 Android - how to specify a namespace for the child properties of a complex object?

☆樱花仙子☆ 提交于 2021-02-18 06:56:24
问题 I'm trying to upload a complex object to a WCF webservice using KSoap2 Android and having some difficulty doing this. I have achieved successful calls to the webservice when I use SoapUI and fill in the data by hand. The successful SoapUI-generated request is as follows: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:fpm="http://schemas.datacontract.org/2004/07/FPMobileServices"> <soapenv:Header/> <soapenv:Body> <tem:CommitOne

Ksoap2 Android - how to specify a namespace for the child properties of a complex object?

白昼怎懂夜的黑 提交于 2021-02-18 06:56:08
问题 I'm trying to upload a complex object to a WCF webservice using KSoap2 Android and having some difficulty doing this. I have achieved successful calls to the webservice when I use SoapUI and fill in the data by hand. The successful SoapUI-generated request is as follows: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:fpm="http://schemas.datacontract.org/2004/07/FPMobileServices"> <soapenv:Header/> <soapenv:Body> <tem:CommitOne

WCF - Conflicting endpoints after .Net 4.5 installation

半世苍凉 提交于 2021-02-18 03:24:28
问题 I'm recently installed the 4.5 framework on our development web server which runs IIS 7.5 on Windows Server 2008. After installation, two web services started having the same error. These web services were built using the MS REST Starter Kit. Here is the error I'm getting. A binding instance has already been associated to listen URI . If two endpoints want to share the same ListenUri, they must also share the same binding object instance. The two conflicting endpoints were either specified in

WCF - Conflicting endpoints after .Net 4.5 installation

故事扮演 提交于 2021-02-18 03:21:00
问题 I'm recently installed the 4.5 framework on our development web server which runs IIS 7.5 on Windows Server 2008. After installation, two web services started having the same error. These web services were built using the MS REST Starter Kit. Here is the error I'm getting. A binding instance has already been associated to listen URI . If two endpoints want to share the same ListenUri, they must also share the same binding object instance. The two conflicting endpoints were either specified in

WCF REST: What is it expecting my XML to look like in requests?

丶灬走出姿态 提交于 2021-02-18 01:00:29
问题 I have the following method in my WCF service: [OperationContract] [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Xml, RequestFormat = WebMessageFormat.Xml)] public int GetOne(string param1, string param2) { return 1; } I am sending xml from a Flex application, and it takes an object that looks like this: { param1: "test", param2: "test2" } and turns it into the following request: POST http://localhost:8012/MyService.svc/GetOne HTTP/1.1

WCF REST: What is it expecting my XML to look like in requests?

本小妞迷上赌 提交于 2021-02-18 00:55:08
问题 I have the following method in my WCF service: [OperationContract] [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Xml, RequestFormat = WebMessageFormat.Xml)] public int GetOne(string param1, string param2) { return 1; } I am sending xml from a Flex application, and it takes an object that looks like this: { param1: "test", param2: "test2" } and turns it into the following request: POST http://localhost:8012/MyService.svc/GetOne HTTP/1.1

net.tcp service is unavailable for the protocol of the address

别等时光非礼了梦想. 提交于 2021-02-17 21:36:13
问题 Our application is hosted in IIS 7.0. It exposes endpoints over net.tcp protocol. But we kept running into the following exception: EndpointNotFoundException: The message could not be dispatched because the service at the endpoint address 'net.tcp://localhost/xxx/service.svc' is unavailable for the protocol of the address. We have checked the following places for possible causes. Windows Process Activation Service is running OK Net.Tcp Listener Adapter service is OK. Net.Tcp Port Sharing

How to read/parse soap header request in WCF service created in .Net Core 3.1

99封情书 提交于 2021-02-16 15:09:58
问题 I have created a poc WCF service and i am able to call that service using SOAP UI or Postman. But for some project work, i need to parse the below soap security header SOAP Header <soapenv:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><wsse:UsernameToken wsu:Id="UsernameToken-5351BA8068B753C930158868612679914"><wsse:Username>test