soap

How to convert a WCF service from SOAP to REST?

纵饮孤独 提交于 2020-01-23 12:27:10
问题 I am very new to WCF and I have questions about it. After going through some articles I found that in the web.config file if I change the endpoint binding to webHttpBinding from basicHttpBinding and httpGetEnabled from true to false it uses REST. My question is are these the only two things that I need to change to make a service SOAP or REST? Or do I need to change/add any other things? 回答1: You can expose the service in two different endpoints. the SOAP one can use the binding that support

Generate an XML signature digest using PHP

流过昼夜 提交于 2020-01-23 12:12:19
问题 I'm trying to implement WS-Security for my PHP SOAP client. The first step is being able to generate a valid XML digest from the outgoing request, but I haven't been able to do this. I've been looking for answers for a few days now but most of the answers end up being something like "don't solve it yourself, just use an existing Java library". That's not feasible in my current situation. I have been looking at several examples on the net trying to reproduce the same digest they have, for

ArrayOfXXX class out of soap input param of array type

末鹿安然 提交于 2020-01-23 09:34:26
问题 I have a method with input param as Array. When I generate stub out of it creates List type. But I want to know how to create a wrapper class around array type e.g. for class Apple it should create ArrayOfApple . Is there any change needs to be done in class or any specific plugin need to be used? Note: I am using JAXWS with Apache CXF implementation Below is the sample code: EmployeeService.java : @WebService(endpointInterface="com.test.EmployeeService") @SOAPBinding(style=Style.DOCUMENT)

ArrayOfXXX class out of soap input param of array type

坚强是说给别人听的谎言 提交于 2020-01-23 09:33:46
问题 I have a method with input param as Array. When I generate stub out of it creates List type. But I want to know how to create a wrapper class around array type e.g. for class Apple it should create ArrayOfApple . Is there any change needs to be done in class or any specific plugin need to be used? Note: I am using JAXWS with Apache CXF implementation Below is the sample code: EmployeeService.java : @WebService(endpointInterface="com.test.EmployeeService") @SOAPBinding(style=Style.DOCUMENT)

ArrayOfXXX class out of soap input param of array type

五迷三道 提交于 2020-01-23 09:33:12
问题 I have a method with input param as Array. When I generate stub out of it creates List type. But I want to know how to create a wrapper class around array type e.g. for class Apple it should create ArrayOfApple . Is there any change needs to be done in class or any specific plugin need to be used? Note: I am using JAXWS with Apache CXF implementation Below is the sample code: EmployeeService.java : @WebService(endpointInterface="com.test.EmployeeService") @SOAPBinding(style=Style.DOCUMENT)

How to authenticate to https://tfspreview.com (MIcrosoft-hosted TFS) using Java command line application?

三世轮回 提交于 2020-01-23 09:13:06
问题 I am trying to access https://tfspreview.com SOAP interface from my command line Java app. Unlike the on-premises TFS services, this one uses Live ID authentication, which makes causes the communication to fail with a 302 redirect to their authentication service. I have no idea how to proceed with authenticating there. Any pointers? 回答1: < tl;dr > You can use Basic authentication to provide a headless experience to Team Foundation Service. Also, if you're not using the TFS SDK for Java, it

REST with nullable types?

狂风中的少年 提交于 2020-01-23 05:22:16
问题 I've hit a brickwall. My REST implementation won't accept Nullable values. [OperationContract] [WebInvoke(ResponseFormat = WebMessageFormat.Json, UriTemplate = "/Transactions?AccNo={AccNo}&CostCentreNo={CostCentreNo}&TransactionType={TransactionType}&Outstanding={Outstanding}&CheckStartDate={CheckStartDate}&CheckEndDate={CheckEndDate}")] List<Transactions> GetTransactions(Int32 AccNo, Int32 CostCentreNo, Int32 TransactionType, Boolean Outstanding, DateTime? CheckStartDate, DateTime?

What does X-Backside-Transport Header do?

谁说我不能喝 提交于 2020-01-23 04:40:29
问题 I have come across this header for the first time and not sure what it does or mean. I have searched around and couldn't find what I was looking for. I am trying to consume a SOAP API using PHP SoapClient class and it's returning an empty response and these response headers. Also, no exception is thrown. HTTP/1.1 200 OK X-Backside-Transport: FAIL FAIL,FAIL FAIL Connection: close Transfer-Encoding: chunked Content-Type: text/xml Date: Tue, 21 Jun 2016 20:09:50 GMT X-Client-IP: xx.xxx.xxx.xxx

MonoTouch Web Service Request over SSL Gets 'authentication or decryption has failed'

血红的双手。 提交于 2020-01-23 03:12:24
问题 A web service request over SSL raises a WebException on Monotouch v4.0.4.1: 'Error getting response stream (Write: The authentication or decryption has failed)' Since the server's SSL certificate is self-signed (and btw I think it is not X.509), I am bypassing the certificate validation using ServicePointManager.ServerCertificateValidationCallback. The exact same code works fine on Windows .NET, where the web service call returns the correct result. On Monotouch adding a Writeline shows that

PermissionSet - Request Failed error

[亡魂溺海] 提交于 2020-01-22 01:52:52
问题 I have few projects communicating using ChannelSink, ServerSink and ClientSink. I've upgraded the projects from .NET 2.0 to .NET 4.0. Before the upgrade everything worked fine. Now, when I try to communicate , - for a specific message - my OnReceiveMessage isn't called and throwing the following exception: System.Security.SecurityException: Request failed Server stack trace: at System.Array.InternalCreate(Void* elementType, Int32 rank, Int32* pLengths, Int32* pLowerBounds) at System.Array