web-services

JAX-RS Response Object displaying Object fields as NULL values

元气小坏坏 提交于 2020-01-13 10:06:33
问题 First time implementing JAX-RS Client API in an application and I am having some small problems when it comes to storing the response data, which is returned as JSON as a Java BEAN. Refer to the following code snippets below which demonstrate how I have implemented it thus far. object = client.target(uri).request().post(Entity.entity(requestObject, APPLICATION_JSON), Object.class); Essentially, I would like to store the returned JSON response from the web service into my Java BEAN, which in

Is it possible to use .NET application in MatLab?

非 Y 不嫁゛ 提交于 2020-01-13 08:56:30
问题 I feel at home in C# and I'll design a console application that will fetch some data from a web service. I'd like to allow a group of scientists to use the data in MatLab. One way to achieve that is to store it in a file on the HDD and then load the contents of it into MatLab. That got me thinking, though. Is it possible to create a function in MatLab that calls an EXE created in C# so my scientific friends can go: a = GetMeSomeData() and populate the variable a with the response of the

Parameter Names in WSDL with significant name

梦想的初衷 提交于 2020-01-13 07:44:29
问题 I am creating a WebService in Java using JAXWS RI. The WSDL file is created when deploying the application WAR automatically. The problem is that I want the arguments (that each operation recieves) in the WSDL file to have significant names, but they appear as arg0, arg1, arg2 ... Is there a way to define the names for this parameters and don't use the default names? I have implemented the following: The WebService Interface @WebService @SOAPBinding(style = Style.RPC) public interface WS2 {

Generate SOAP requests on the fly, based on WSDL

旧街凉风 提交于 2020-01-13 06:43:13
问题 I'd like to build a simple test harness for the various web services consumed by my application that I can run in my staging or production environment to verify that the web services are working and see what data their web methods are returning. Is there a way I can generate a SOAP request based on the WSDL provided by a web service at run time (i.e. without adding a web reference to my project and creating a proxy for the web service)? 回答1: Check out SoapUI (http://www.soapui.org/). It's the

create asp.net webservice for SSL HTTPS

孤街浪徒 提交于 2020-01-13 06:04:55
问题 I use Visual Studio 2008... and have created an ASP.NET website. Within this website project, I have a Web Service file .asmx. Calling this service over HTTP works just fine. But there is now a requirement that it be called over SSL / HTTPS. When I browse to the URL through HTTP, the .asmx and WSDL show up just fine. but as soon as i put HTTPS , the browser shows the message 'Internet Explorer cannot display the webpage' We run this site on a windows 2003 server with IIS. If easily possible,

create asp.net webservice for SSL HTTPS

痞子三分冷 提交于 2020-01-13 06:04:27
问题 I use Visual Studio 2008... and have created an ASP.NET website. Within this website project, I have a Web Service file .asmx. Calling this service over HTTP works just fine. But there is now a requirement that it be called over SSL / HTTPS. When I browse to the URL through HTTP, the .asmx and WSDL show up just fine. but as soon as i put HTTPS , the browser shows the message 'Internet Explorer cannot display the webpage' We run this site on a windows 2003 server with IIS. If easily possible,

Jquery AJAX Post: 500 (Internal Server Error)?

大兔子大兔子 提交于 2020-01-13 05:50:12
问题 I am trying post a string to web service but I am getting this error (Google Chrome Extension Project): jquery-2.1.1.min.js:4 POST http://localhost:49242/Service.asmx/test 500 (Internal Server Error) Here is my ajax code: var data = {}; data.param1 = words[0]; $.ajax({ data: JSON.stringify({ 'data': data.param1 }), dataType: 'application/json', url: 'http://localhost:49242/Service.asmx/test', type: 'POST', contentType: 'application/json; charset=utf-8', success: function (result) { alert

Sign and Encrypt SOAP Messages with Apache CXF

╄→尐↘猪︶ㄣ 提交于 2020-01-13 05:17:30
问题 I'm trying to write a "Secure Hello World" web service using Apache CXF also; I should note that I'm kind of new to Java and WS-* stuff. Basically, what I want to do is a hello-world web service with soap messages to and from this web service signed and encrypted using x.509 certificate(s) . I have already read the tutorial on Apache CXF site about WS-Security but; I want to use WS-SecurityPolicy instead of Interceptors. Can anyone point me in the right direction? 回答1: Here's a blog with

Connection reset versus Connection reset by Peer

笑着哭i 提交于 2020-01-13 04:56:07
问题 I have a client-server application. In the client side(I have no access to client code), a socket exception occurs intermittently that says "java.net.SocketException: Connection reset". It's not "java.net.SocketException: Connection reset by peer ". With this information, can I conclude that the issue is with Client side? 回答1: Usually "Connection reset" means that both sides did an orderly close of the connection, and then you attempted to work on that socket. The reason for the orderly

certificate mechanism between webservice provider and consumer

安稳与你 提交于 2020-01-13 03:55:11
问题 What are the exact steps done by server and client to place a ssl certificate mechanism in a webservice call? Who(client/server/both) will generate .keystore,.p7b/.cer files? I have googled a lot but couldn't find the answer to it. In my case, i am the client running a java application which consumes a soap webservice call. I have a .p7b file given by WebService provider. I know where to place the files(.keystore, .cer) and how to use it in the application. But, my questions are Do i need to