web-services

inter-thread communication between java application and jax-ws web service

跟風遠走 提交于 2020-01-05 04:37:04
问题 my jax-ws web service (after it gets hit by the client request), sends a request to backend legacy platform (through a socket) and then waits for 20 seconds for the response. Before it makes that request it updates a table with its unique transaction number. A separate listener thread (standalone java application) is waiting on that socket for the responses, each response will have the transaction number in it to identify which request (previously sent) its associated with. how can this

WebService error: {“The underlying connection was closed: An unexpected error occurred on a receive.”}

六月ゝ 毕业季﹏ 提交于 2020-01-05 04:31:08
问题 I have been testing a vendors webservice for the past month which was working fine. Then one day it started timing out. After setting the timeout property higher I started getting this response back. I was told that no changes were made on their side and that they could not recreate my issue. I was also told that there was no changes made on our network. I have been searching around for a day or two here but have proved fruitless on my attempts to get closer to a solution. At this point I

AFJSONRequestOperation returns null response in iOS

谁都会走 提交于 2020-01-05 04:30:07
问题 I am facing 1 problem while using AFJSONRequestOperation. My API Client is as follows #import <Foundation/Foundation.h> #import "AFHTTPClient.h" #import "AFJSONRequestOperation.h" @interface MyAPIClient : AFHTTPClient + (MyAPIClient *)sharedAPIClient; @end // .m file #import "MyAPIClient.h" @implementation MyAPIClient + (MyAPIClient *)sharedAPIClient { static MyAPIClient *sharedClient = nil; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ sharedClient = [[MyAPIClient alloc]

Please advise on the WSDL

那年仲夏 提交于 2020-01-05 04:29:29
问题 I have created a WSDL to create a greeting service. Given below is the WSDL. I am using thsi wsdl to create a generate and expose a web-service using the cxf:proxy-service in mule. This is giving me errors. Please review and help me undertand what is the problem with this WSDL. <?xml version='1.0' encoding='UTF-8'?> <wsdl:definitions name="HelloService" targetNamespace="http://example.org/HelloService" xmlns:tns="http://example.org/HelloService" xmlns:ns1="http://schemas.xmlsoap.org/soap/http

Alpha Vantage API Excel

六眼飞鱼酱① 提交于 2020-01-05 04:13:07
问题 I’ve got an Alpha Vantage API key and am having issues with parsing the data. I’m unsure how to approach parsing the data as there are JSON and CSV options. The CSV seems to be a download, I’m not trying to manually download a new file every time I want to update the stock price. This is how I used to get the prices of stocks in Excel: I would always use CTRL-ALT-F9 to refresh everything. Unfortunately, Yahoo has stopped this service so I have to fix it. 回答1: You can use Alpha Vantage the

JAX-WS, Websphere AS 8.5 and XML Digital SIgnature

痴心易碎 提交于 2020-01-05 04:03:08
问题 I'm developing a JAX-WS webservice that must validate incoming SOAP messages according to the XML Digital Signature specification. I'm noticing a strange behaviour, I can validate the very first incoming message but then validation fails on subsequent messages (on both signature and reference). If i restart the Application Server (Websphere 8.5) i can validate the first message. It seems that the Application Server modifies incoming SOAP Messages before i can parse them. The modified SOAP

selected spinner value is updated in mysql db via soap webservice in android

大兔子大兔子 提交于 2020-01-05 04:01:07
问题 hi i got the solution for selected spinner item is inserted in mysql database through calling soap webservice..thanks for giving nice ideas.but i can't develop update spinner value is save in mysql database.please refer my code:android code webservice code ...the above both link for inserting code for both android and webservices....please help me...what line is change for update spinner value also change in mysql database.... public class update { public String insertData(String status

C#.NET Generating web service reference using WSDL (from XML schema) problem

我们两清 提交于 2020-01-05 03:48:10
问题 I am using VS2010 and using the "add service reference" feature, to generate client classes from my WSDL. I am having a problem with one of my elements, which is defined in the WSDL as follows: <xs:simpleType name="NumberType"> <xs:restriction base="xs:string"> <xs:enumeration value="ONE" /> <xs:enumeration value="TWO" /> <xs:enumeration value="THREE" /> </xs:restriction> </xs:simpleType> This type is used in one of my elements like this: <xs:element name="NumberTypes"> <xs:simpleType> <xs

Change certs of WCF service on the fly, no downtime

谁说我不能喝 提交于 2020-01-05 03:34:06
问题 I've been researching a way of changing IssuedTokenAuthentication certs in a WCF after the service has started listening to its connection. I know that I could change the certs just by going into the web.config and then resetting the service so it loads the new settings, but I need to do it on the fly without any downtime. I know that I could get the current ServiceHost instance by doing: ServiceHost host = (ServiceHost)OperationContext.Current.Host; and then I could access its service certs

How do you know when to use an XML parser and when to use ActiveResource?

流过昼夜 提交于 2020-01-05 03:20:28
问题 I tried using ActiveResource to parse a web service that was more like a HTML document and I kept getting a 404 error. Do I need to use an XML parser for this task instead of ActiveResource? My guess is that ActiveResource is only useful if you are consuming data from another Rails app and the XML data is easily translatable to a Rails model. For example, if the web service is more wide-ranging XML like a HTML document or an RSS feed, you want to use a parser like hpricot or nokogiri. Is this