web-services

How can I implement client-side async calls with WCF's ChannelFactory<T>?

Deadly 提交于 2020-01-04 02:45:05
问题 Suppose we are writing a client for a Calculator web service using WCF's ChannelFactory. The service contract is shared by way of a third assembly referenced by both the implementation service and the client. Below is the service contract (which cannot be changed!) public interface ICalculator { int Add(int x, int y); } The ChannelFactory creates a transparent proxy object that "mocks" the ICalculator service contract, passing method calls to a RealProxy object which then sends the message

how to set the timeout while exporting data using webservices api in acumatica

自古美人都是妖i 提交于 2020-01-04 02:13:08
问题 This is the first scenario: - I create new "bill" document in acumatica system using webservices api to Bill and Adjustments screen (AP301000). - after that, I need to load all document records in Application tab menu of the current screen (AP301000) using webservices also for set off process. the problem is there are a lot of documents that will be loaded. It's about 9500 documents and of course need more times to proceed (it's about 10 minutes). I always get an error in exporting process

NetSuite - SuiteTalk - PHP - Install

折月煮酒 提交于 2020-01-04 00:05:52
问题 I would like to build a gateway between a web-store (PHP) and Netsuite using SuiteTalk. I am working on Ubuntu 14.04 and would like to set up the environment for testing. Apache/2.4.7 etc.. is already up and running. Website is working. Could someone give me an idea of the first steps I will need to go through in order to be able to develop and test the communication between my web application (PHP) and Netsuite. Is a direct connection to Netsuite necessary at all? Is there a NetSuite sandbox

Require credentials for some methods only in WCF web service

孤者浪人 提交于 2020-01-03 18:54:25
问题 I have a UserAccountService with different methods, some of which require the user to be authenticated (e.g. ChangePassword, ChangeUserData) and some not (RegisterUser). However it seems I can't seem to get it to work, so that only some methods require authentication. The methods that require authentication are decorated with [PrincipalPermission(SecurityAction.Demand, Authenticated = true)] In my app.config I have a binding specified which uses encryption and requests UserName credentials:

'Error in deserializing body of reply message for operation …' - for every method that i call

核能气质少年 提交于 2020-01-03 18:44:13
问题 I am trying to create very simple client application for our Polish auction service called Allegro. They provide API in SOAP architecture. The problem is that, every time I try to call any of the methods, I receive: Error in deserializing body of reply message for operation 'name of method' I am new to web services in general so I have no idea how to find the source of the problem. I am absolutely sure that I am passing correct arguments to the method in the example below: class Program {

how to build a time consuming web service

青春壹個敷衍的年華 提交于 2020-01-03 18:16:21
问题 a simple and theoric question, the answer is probably one, but I would like to listen to some opinions and suggestions. I am in need of realizing a web services (in java) that will launch a time consuming process, which is going to parse some input file and do dome db staff. What are the best approach to let the user knows that the whole process not only started, but came to an end, with parsing, updating db... ? Because I cannot hang the user waiting for the whole process to finish. Note:

how to build a time consuming web service

雨燕双飞 提交于 2020-01-03 18:16:06
问题 a simple and theoric question, the answer is probably one, but I would like to listen to some opinions and suggestions. I am in need of realizing a web services (in java) that will launch a time consuming process, which is going to parse some input file and do dome db staff. What are the best approach to let the user knows that the whole process not only started, but came to an end, with parsing, updating db... ? Because I cannot hang the user waiting for the whole process to finish. Note:

What is the good design pattern for connection pooling?

时光总嘲笑我的痴心妄想 提交于 2020-01-03 17:23:31
问题 What is the good design pattern for implementing one connection (or generally resource) pool? For example, one tomcat server connects to one mysql server, and all the requests share a mysql connection pool on tomcat server. I have search for some time, some people proposed to use Singleton or put the initialization code inside some static block. But others said singleton is bad. So, what should be a right design pattern to use for connection pooling? Thanks. 回答1: Object (Resource) Pool is a

Dynamically access nested object

时光毁灭记忆、已成空白 提交于 2020-01-03 15:33:00
问题 I'm building a Geocoding class that can utilize multiple webservices for Geocoding (ie Google, Yahoo, Bing, etc.). I'm trying to make it in a such a way that new webservices can be easily configured. Most of the webservices return either XML/JSON.. for PHP I chose XML as my primary focus. All the code is already in place, but now Google for instance returns the following XML (transformed to a simple_xml_element) SimpleXMLElement Object ( [status] => OK [result] => Array ( [0] =>

cannot update lookup field when uploading document using CopyIntoItems

你。 提交于 2020-01-03 15:31:31
问题 I am trying to upload a document from my local machine using the Copy.asmx webservice, the CopyIntoItems method. I can successfully upload the document and a DateTime property but I cannot update a lookup property of the document library. I am using MOSS 2007 with sp2 The code I am using is shown below: string[] destinationUrls = { Uri.EscapeUriString(destinationUrl) }; CopySharepointService.FieldInformation dateInformation = new CopySharepointService.FieldInformation(); dateInformation