web-services

Ensure exclusive access to webservice

若如初见. 提交于 2020-01-02 20:43:23
问题 Just to be on the safe side, what's the best practice to ensure that only my application has access to my webservice, which is hosted on a public server? Should I implement I shared key or something? My webservice is hosted on Googles App Engine and my Application runs on iPhones and iPads. If you need further information, just ask. Thanks, Henrik 回答1: some sort of challenge/response authentication would be your best bet, but you could use something as simple as a key that's sent with every

Defining SLAs for WCF Services

北慕城南 提交于 2020-01-02 19:26:12
问题 I have to performance/load test a bunch of interdependant services. They all use net.tcp and most use duplex contracts and internal queueing. [handrolled POCO queue class using lock(syncRoot) { if(queue.Empty) Thread.Wait(); }] Here's the approach I've come up with: Identify WCF Services to be performance tested Identify the relavant Performance counters for each of the Services Identify the logical startpoint that would take the execution through the services being tested Auto Generate Unit

RESTful Webservice with Jersey in Java and observer pattern

安稳与你 提交于 2020-01-02 18:42:40
问题 I'm trying to implement an n-tier architecture application for a school project. The communication between the clients and the server is done with a RESTful Webservice. I Used Jersey to implement this in Java . The only question I have is, how to register the clients at the server to receive notification of changes (like normally done with the observer pattern or listen/publish pattern). Do i need to implement a service on the client side aswell and then register the URL to be called by the

Java web service frameworks

这一生的挚爱 提交于 2020-01-02 18:23:47
问题 This is my first time with Web services. I have to develop web services in java which should be having good WS-* standards, should loosely-coupled, scalable, highly secure, fast response time. I know I've to consider trade-offs. I have checked on some frameworks like Axis2, CXF, Spring WS. Please share your experiences and views on these frameworks and other frameworks, which will help me in deciding which one to go to. 回答1: I would also recommend taking a look at JAX-WS 2.0. It is also easy

Generate Java Web Service Client from HTTPS url

穿精又带淫゛_ 提交于 2020-01-02 17:41:13
问题 I'm implementing a test client for a web service. The service use HTTPS and I'm trying to use the Eclipse wizard to generate the client. Using this url Eclipse cannot find the WSDL definition: The wizard alerts that "The service definition selected is invalid." and the process cannot go ahead. The url is correct, I verified it implementing a .NET client and it works. The only issue is that the SSL certificate is expired. How can I generate the client correctly in java? 回答1: Capture the WSDL

Using the Reporting Services Web Service, how do you get the permissions of a particular user?

亡梦爱人 提交于 2020-01-02 17:15:15
问题 Using the SQL Server Reporting Services Web Service , how can I determine the permissions of a particular domain user for a particular report? The user in question is not the user that is accessing the Web Service. I am accessing the Web Service using a domain service account (lets say MYDOMAIN\SSRSAdmin ) that has full permissions in SSRS . I would like to programmatically find the permissions of a domain user (lets say MYDOMAIN\JimBob ) for a particular report. The GetPermissions() method

Post JSON data to RESTful datasnap server from delphi client

北城余情 提交于 2020-01-02 16:18:06
问题 I need to send a simple JSON object to a Restful datasnap server (Delphi) from a Delphi client. I am using Delphi XE. Can anybody help me out with the code? I am trying for hours but not getting it.. Please ask if details are not sufficient Edit: Here is server side method declaration: procedure updatemethodnme(str:string):string; and here is client side code: function PostData(request: string): boolean; var param: TStringList; url, Text,str: string; code: Integer; http: TIDHttp; begin Result

How to put result from “AsyncTask doInBackground from different class” to “TextView in MainActivity”

守給你的承諾、 提交于 2020-01-02 15:48:46
问题 I am new to android. This question is a phase from my steps in experimenting with android apps and web service. I have asked a question before, which is in here: Fail to connect android to web service. Below is my Updated code, my code in MainActivity: public class MainActivity extends AppCompatActivity { TextView tv; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); tv = (TextView) findViewById(R.id

Java : Simple XML Serialization(simple-xml-2.6.6.jar) gives error with XML file containing <SOAP-ENV:Body> & <SOAP-ENV:Envelope>

三世轮回 提交于 2020-01-02 13:32:31
问题 I am using Simple XML Serialization(simple-xml-2.6.6.jar) here to convert my XML response from webservice to POJO class. XML is : <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"> <SOAP-ENV:Body> <return> <appointments> <appointment> <encounterId>211707</encounterId> <date>2012-10-16</date> <startTime>00:00:00</startTime> <ufname>Sam</ufname> <ulname>Willis</ulname>

Need a Security Scenario for asp.net webservice

廉价感情. 提交于 2020-01-02 13:31:13
问题 I have developed a .Net 3.5 windows forms application. I also want to design a website that has a webservice with multiple Webmethods to query the database on the host machine. I want the webservice to be called ONLY through my winapp and my website! And I don't want any other people to be able to call and use my webservice but only some people who have access to the windows application that I have developed. I need a good security scenario for this! I truly appreciate anyone who can help me