web-services

How to unit test C# Web Service with Visual Studio 2008

情到浓时终转凉″ 提交于 2020-01-22 11:59:04
问题 How are you supposed to unit test a web service in C# with Visual Studio 2008? When I generate a unit test it adds an actual reference to the web service class instead of a web reference. It sets the attributes specified in: http://msdn.microsoft.com/en-us/library/ms243399(VS.80).aspx#TestingWebServiceLocally Yet, it will complete without executing the test. I attempted to add the call to WebServiceHelper.TryUrlRedirection(...) but the call does not like the target since it inherits from

jax-ws regarding endpointinterface

蹲街弑〆低调 提交于 2020-01-22 09:29:12
问题 have defined a Java Interface with the annotation @WebService Compiled the code which went fine Example: @WebService public interface HelloWorldIfc{ Now I tried to define an endpointinterface as @WebService (endpointInterface = "com.ws.HelloWorldIfc") public interface HelloWorldIfc{ This compiled fine too So - should I be defining the endpoint interface on the interface or on implementing class ? is this attribute of any use - what is its purpose ? what happens if I dont define it - what do I

How to generate a WSDL file from a C# webservice

旧时模样 提交于 2020-01-22 05:45:25
问题 I've created a WebService like this: [WebService(Namespace = "http://ns")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public class GroupManagerService : WebService { public GroupManagerService() { } [WebMethod] public bool MyMethod(string loginname, string country) { // code here... } } Is it possible to generate a WSDL file for this code without connecting to a running service? I searched and I found information about SvcUtil.exe & wsdl.exe , but these work only when

Android: Activity taking too long to display because of web service Http Request

谁说我不能喝 提交于 2020-01-22 03:29:05
问题 One of my activities make a http request to a webservice to get some weather data when I start the application. The issue that the activity will take 3-4 seconds to display because of the webservice request. ( Tested on actual device ) I know I m not doing this the right way. All I m doing is on the onCreate method, I m making the request , getting the xml back, parsing and displaying the data. What is the best way to deal with webservice requests in Android so the application won't display a

Android: Activity taking too long to display because of web service Http Request

半世苍凉 提交于 2020-01-22 03:29:03
问题 One of my activities make a http request to a webservice to get some weather data when I start the application. The issue that the activity will take 3-4 seconds to display because of the webservice request. ( Tested on actual device ) I know I m not doing this the right way. All I m doing is on the onCreate method, I m making the request , getting the xml back, parsing and displaying the data. What is the best way to deal with webservice requests in Android so the application won't display a

Disadvantages and Advantages of DISABLE overlapped recycle of IIS

瘦欲@ 提交于 2020-01-21 19:29:19
问题 Whats the disadvantages and advantages of DISABLE overlapped recycle of IIS ? By default the option Disable Overlapped Recycling is false , I need to change this to true but I don't know whats the disadvantages of this and I did not find any documentation saying specifically about this disadvantages. I imagine that when someone is in the middle of a request to the webservice published, and recycle the pool, the call is dropped immediately with an exception. I am sure? 回答1: The disadvantages

Wicket Session and Jersey REST webservice

不想你离开。 提交于 2020-01-21 17:16:29
问题 Currently I'm developing an REST webservice for an PACS viewer (medical images). This webservice needs to have encrypted/obfuscated parameters to ensure users cant fuzz with the parameters to get data from other patients. In an Wicket panel im setting an Session attribute: wicketSession.setAttribute("study", studyInstanceUID); I want to access this attribute in the Jersey webservice, but the session doesn't contain any attributes in my jersey webservice. It seems like it is not injected or

Retrofit returns LinkedTreeMap instead of JSON

故事扮演 提交于 2020-01-21 14:57:49
问题 I am using Retrofit 2.0 to read data from a web service which returns a json text, but in following code response is LinkedTreeMap and I can't convert it to json: My interface public interface GeoAPIInterface { String ENDPOINT = "http://www.geoplugin.net/"; @GET("json.gp") Call<Object> getIP(@Query("ip") String ip); } Now I read data from site : Retrofit retrofit = new Retrofit.Builder() .baseUrl(GeoAPIInterface.ENDPOINT) .addConverterFactory(GsonConverterFactory.create()) .build();

Java EE 7 GlassFish 4.0 Restful Webservices using and Netbean and deploying on Glassfish 4.0

五迷三道 提交于 2020-01-21 09:10:06
问题 I have followed this Tutorial to Create simple Java EE 7 Webservices using Netbean 7.3.1. I have Glassfish 4.0 running with Netbeans. I ran project successfully without any problem. Next Step is to Deploy Webservice project on standalone version of GlassFish 4.0 webserver. So I can run it without Netbeans. Using Glassfish web interface on http://localhost:4848 , and navigating Common Taks -> Applications -> Deploy I browse using ("packaged file to be uploaded to the server") and Select the

JqGrid addJSONData + ASP.NET 2.0 WS

别说谁变了你拦得住时间么 提交于 2020-01-21 05:45:48
问题 I am a bit lost. I've tried to implement a solution based on JqGrid and tried to use function as datatype. I've setted all by the book I guess, I get WS invoked and get JSON back, I got succes on clientside in ajax call and I "bind" jqGrid using addJSONData but grid remains empty. I do not have any clue now... other "local" samples on same pages works without a problem (jsonstring ...) My WS method looks like: [WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public string