web-services

java.lang.NoClassDefFoundError: groovy/lang/GroovyObject

那年仲夏 提交于 2020-01-02 02:14:08
问题 Getting error when trying to test Jersey web services java.lang.NoClassDefFoundError: groovy/lang/GroovyObject Caused by: java.lang.ClassNotFoundException: groovy.lang.GroovyObject . import static com.jayway.restassured.RestAssured.expect; import static com.jayway.restassured.RestAssured.get; import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.CoreMatchers.nullValue; import org.junit.Test; public class SimpleTest { @Test public void testUserFetchesSuccess() { expect().

Using JAX-WS 2.2.5 client with JDK/JRE 1.5

允我心安 提交于 2020-01-02 02:01:07
问题 Java 6 shipped with JAX-WS 2.0. Java 5 didn't ship with JAX-WS as far as I know. I was able to use JAX-WS 2.2.5 with Java 1.6 for creating Webservice client stubs by using the Java Endorsed Override Mechansim which lists JAX-WS as one of the components which can be replaced in Java 6. All I had to do was create a lib\endorsed directory in my JDK & JRE 6 paths & then copy jaxb-api.jar & jaxws-api.jar from JAX-WS 2.2.5 into the directory named endorsed. And both JDK & JRE 6 picked up the 2.2.5

First call to a .net webservice is slow

*爱你&永不变心* 提交于 2020-01-02 01:56:26
问题 I'm calling a .net webservice from my .net winforms app, both in framework 4.0. During the execution of the program, the first time the webservice has a method called, the call takes ~10-12 seconds. Subsequent calls take ~1-2 seconds. Subsequent calls, even when the web reference instance is recreated, are still ~1-2 seconds. When the winforms app is restarted, the first call delay occurs again, but subsequent calls are responsive. The instance of the web reference is being created prior to

SSRS: Get list of all reports and parameters in a single web service call?

夙愿已清 提交于 2020-01-02 01:13:04
问题 Short and sweet version: Is there a single web service method that would return the names of all available reports, and each report's parameters? I have my web code (C#/MVC) connected to a SSRS web service, and I am able to retrieve reports through those services. I know I can get a list of available reports like this: var rService = new ReportingService2005 { Url = @"http://domain.com/ReportServer/ReportService2005.asmx?wsdl", Credentials = System.Net.CredentialCache.DefaultCredentials };

java.lang.ClassNotFoundException: org.apache.commons.lang.StringUtils from BaseClassLoader

三世轮回 提交于 2020-01-02 00:39:28
问题 I am getting the following error , while running my following code: java.lang.ClassNotFoundException: org.apache.commons.lang.StringUtils from BaseClassLoader at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at org.dozer.util.ResourceLoader.getResource(ResourceLoader.java:53) at org.dozer.util.DefaultClassLoader.loadResource(DefaultClassLoader.java:44) at org.dozer.config.GlobalSettings

How to solve Only Web services with a [ScriptService] attribute on the class definition can be called from script

扶醉桌前 提交于 2020-01-01 23:58:56
问题 I attempt to use webservice return POCO class generated from entity data model as JSON when using Jquery AJAX call method in webservice. but I have problem with error "Only Web services with a [ScriptService] attribute on the class definition can be called from script", and getting stuck in it, Here is my code : namespace CarCareCenter.Web.Admin.Services { /// <summary> /// Summary description for About /// </summary> [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding

How to solve Only Web services with a [ScriptService] attribute on the class definition can be called from script

十年热恋 提交于 2020-01-01 23:56:18
问题 I attempt to use webservice return POCO class generated from entity data model as JSON when using Jquery AJAX call method in webservice. but I have problem with error "Only Web services with a [ScriptService] attribute on the class definition can be called from script", and getting stuck in it, Here is my code : namespace CarCareCenter.Web.Admin.Services { /// <summary> /// Summary description for About /// </summary> [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding

Server cert and Client Truststore

£可爱£侵袭症+ 提交于 2020-01-01 19:57:35
问题 I am trying to call a webservice using ssl. How do i get the relevant server cert so that i can import it into my truststore? I know about the use of property com.ibm.ssl.enableSignerExchangePrompt from a main method but i would add the server cert to my truststore manually. I dont want this property set in any of my servlets Any help is greatly appreciated Thanks Damien 回答1: you can programmatically do this with Java by implementing your own X509TrustManager. public class dummyTrustManager

what is a singleton class? Can it help me running single instance of a class for two related services?

自作多情 提交于 2020-01-01 19:55:14
问题 This might sound complex but i will ask anyway: I am running a service A which uses class X . I want to start another service B which uses classes A besides new classes. Service A is already running. I do a hot deployment of Service B . Here is the real question - Will Service B use the same instance of class X or a separate instance. How can singleton class help me here? 回答1: Each Service will run in it's own operating System (OS) Process space, and each process space has it's own class

Spring: How to inject wsdlLocation in @WebServiceRef

青春壹個敷衍的年華 提交于 2020-01-01 19:38:10
问题 I'm using spring and in my client, a web app, I need to interact with a Jax-WS webservice. I currently have it working via annotating the service interface with the @WebServiceRef annotation. However, I need the wsdlLocation property to be injected because, obviously Sun Microsystems or Oracle, the web service wsdl location in production will be different to what's being used during development. How can I inject the wsdlLocation? Here's an extremely simplified version of the code: //This