web-services

How to call a web service from Ant script or from within Jenkins?

家住魔仙堡 提交于 2019-12-28 04:20:10
问题 I am using Ant Script in Jenkins to handle the deployment of my files. What I want to do is to trigger a call to a URL that has the web service. My question is, how can I do that from Ant Script or from within Jenkins? Thanks in advance, Monte 回答1: Option 1: "get" task Ant's get task can be used to invoke web services, but it restricted to GET operations. Only works for very simple web services Option 2: curl Invoke the unix curl command to call the webservice (See this post for examples)

Has anyone parsed Wiktionary? [closed]

随声附和 提交于 2019-12-28 03:20:30
问题 Closed. This question is off-topic. It is not currently accepting answers. Closed last year . Locked . This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions. Wiktionary is a wiki dictionary that covers many languages. It even has translations. I would be interested in parsing it and playing with the data, has anyone does anything like this before? Is there any library I can use?

Getting Unable to read WSDL error

倾然丶 夕夏残阳落幕 提交于 2019-12-28 03:12:28
问题 This is first time I'm using SOAP.I'm trying to invoke a webservice using cfinvoke which is as follows: <cfinvoke webservice="https://xyz/infoLookup.php?wsdl" method="infoLookup" returnVariable="info" > <cfinvokeargument name="phoneNumber" value="7182973186"/> <cfinvokeargument name="userName" value="12345"/> <cfinvokeargument name="password" value="password"/> </cfinvoke> <cfdump var="#info#"> And here is a part of the message name from the WSDL : <message name="infoLookupRequest"> <part

Java web service without a web application server

六月ゝ 毕业季﹏ 提交于 2019-12-28 03:06:14
问题 We have a message processing server, which start a few threads processing the message interact with the database etc..... now the client want to have a web service server on the server, they will be able to querying the message processing server, with a web service client. e.g. give me all the messages for today, or delete the message with id.... the problem are: The server just a standard j2se application, doesn't run inside application server, like tomcat or glassfish. To handle a Http

Does .Net 4.5 support XML 1.1 yet (for characters invalid in XML 1.0)?

廉价感情. 提交于 2019-12-28 02:51:28
问题 This is in the context of Web Services (client end). I need to interface with a back-end system (Java) and it is a requirement to transmit some control characters in the &#14; and &#31; range. I'm well aware that XML 1.0 doesn't support this, but am interested to know if the .NET 4 platform or .NET 4.5 web services framework support conversations in XML 1.1. 回答1: No, it doesn't look like XmlReader (the core of much of the XML support in .NET) supports 1.1: using System; using System.IO; using

Angular JS POST request not sending JSON data

℡╲_俬逩灬. 提交于 2019-12-28 02:49:29
问题 I am trying to send an object as JSON to my webservice in Flask that is expecting JSON in the request data. I have tested the service manually by sending JSON data and it works fine. However, when I try to make a http POST request through angular controller, the web server sends me a message saying it did not receive JSON. When I inspect the request headers in Chrome it appears that data is not being sent in JSON but regular key/value pairs even through the Content Type is set to application

How to run unit tests (MSTest) in parallel?

不打扰是莪最后的温柔 提交于 2019-12-28 02:37:04
问题 I am looking for ways to run test suites in parallel. I am aware of .testrunconfig setting. This allows you to multiplex on the number of CPUs. I want to run 1000 tests in parallel. This makes sense because I am testing a web service, so 90% of the time spent in a test is waiting for the service to respond. Any ideas on how to pull this off ? The tests are written for VS, but I am open to running them outside of VS. Later edit : the Visual Studio test team have added this in VS 2015 Update 1.

Difference between frontend, backend, and middleware in web development

夙愿已清 提交于 2019-12-28 02:22:46
问题 I was wondering if anyone can compare/contrast the differences between frontend, backend, and middleware ("middle-end"?) succinctly. Are there cases where they overlap? Are there cases where they MUST overlap, and frontend/backend cannot be separated? In terms of bottlenecks, which end is associated with which type of bottlenecks? 回答1: Here is one breakdown: Front-end tier -> User Interface layer usually consisting of a mix of HTML, Javascript, CSS, Flash, and various server-side code like

Error in WCF client consuming Axis 2 web service with WS-Security UsernameToken PasswordDigest authentication scheme

拜拜、爱过 提交于 2019-12-28 02:05:39
问题 I have a WCF client connecting to a Java based Axis2 web service (outside my control). It is about to have WS-Security applied to it, and I need to fix the .NET client. However, I am struggling to provide the correct authentication. I am aware that WSE 3.0 might make it easier, but I would prefer not to revert to an obsolete technology. Similar issues (unsolved), include this, this and this. The SOAP message should look like this: <wsse:UsernameToken> <wsse:Username><!-- Removed--></wsse

Unique key generation

余生颓废 提交于 2019-12-28 02:05:07
问题 I looking for a way, specifically in PHP that I will be guaranteed to always get a unique key. I have done the following: strtolower(substr(crypt(time()), 0, 7)); But I have found that once in a while I end up with a duplicate key (rarely, but often enough). I have also thought of doing: strtolower(substr(crypt(uniqid(rand(), true)), 0, 7)); But according to the PHP website, uniqid() could, if uniqid() is called twice in the same microsecond, it could generate the same key. I'm thinking that