web-services

When deploying a web application I get the exception NoClassDefFoundError:LocalizableImpl

社会主义新天地 提交于 2020-01-23 07:00:46
问题 I have a standard J2EE web application that includes web services. I'm using the webservices-rt library to host the services. [See the maven dependency below]. However, I get the following exception at run time: SEVERE: Exception sending context initialized event to listener instance of class com.sun.xml.ws.transport.http.servlet.WSServletContextListener java.lang.NoClassDefFoundError: com/sun/xml/ws/util/localization/LocalizableImpl at com.sun.xml.ws.util.exception.JAXWSExceptionBase.<init>

When deploying a web application I get the exception NoClassDefFoundError:LocalizableImpl

时间秒杀一切 提交于 2020-01-23 07:00:25
问题 I have a standard J2EE web application that includes web services. I'm using the webservices-rt library to host the services. [See the maven dependency below]. However, I get the following exception at run time: SEVERE: Exception sending context initialized event to listener instance of class com.sun.xml.ws.transport.http.servlet.WSServletContextListener java.lang.NoClassDefFoundError: com/sun/xml/ws/util/localization/LocalizableImpl at com.sun.xml.ws.util.exception.JAXWSExceptionBase.<init>

How to send complex types from PHP SoapClient to ASP.NET SOAP server?

浪子不回头ぞ 提交于 2020-01-23 04:03:56
问题 Hello I'm having problems sending arrays, structs and arrays of structs from PHP to an ASP.NET SOAP server... Anyone have a sollution for this? I've googled for days and any sollution worked for me. Perphaps I'm forgetting something... There are examples of my code: $client = new SoapClient($options); $pCriteria = new stdClass(); $pCriteria->type=1; $pCriteria->capacity=4; //Test 1 (fail): $resp = $client->GetRooms(array("pCriteria"=>$pCriteria)); //Test 2 (fail): $resp = $client->GetRooms

MonoTouch Web Service Request over SSL Gets 'authentication or decryption has failed'

血红的双手。 提交于 2020-01-23 03:12:24
问题 A web service request over SSL raises a WebException on Monotouch v4.0.4.1: 'Error getting response stream (Write: The authentication or decryption has failed)' Since the server's SSL certificate is self-signed (and btw I think it is not X.509), I am bypassing the certificate validation using ServicePointManager.ServerCertificateValidationCallback. The exact same code works fine on Windows .NET, where the web service call returns the correct result. On Monotouch adding a Writeline shows that

Get component to wait for asynchronous data before rendering

时光总嘲笑我的痴心妄想 提交于 2020-01-23 03:05:20
问题 I am calling an endpoint to bring back an object, which does fetch the data, however not fast enough for the component to grab the data and render. Instead, the component renders with blank values where there should be data. If I break point the code on creation, then continue maybe a second later, the text correctly renders. How do I implement it to not render until the data is back? My API call: checkScenarioType: function () { this.$http.get('ScenariosVue/GetScenarioTypeFromParticipant/' +

To poll or not to poll (in a web services context)

狂风中的少年 提交于 2020-01-23 00:08:13
问题 We can use polling to find out about updates from some source, for example, clients connected to a webserver. WCF provides a nifty feature in the way of Duplex contracts, in which, I can maintain a connection to a client, and make invocations on that connection at will. Some peeps in the office were discussing the merits of both solutions, and I wanted to get feedback on when each strategy is best used. 回答1: I would use an event-based mechanism instead of polling. In WCF, you can do this

To poll or not to poll (in a web services context)

≯℡__Kan透↙ 提交于 2020-01-23 00:07:05
问题 We can use polling to find out about updates from some source, for example, clients connected to a webserver. WCF provides a nifty feature in the way of Duplex contracts, in which, I can maintain a connection to a client, and make invocations on that connection at will. Some peeps in the office were discussing the merits of both solutions, and I wanted to get feedback on when each strategy is best used. 回答1: I would use an event-based mechanism instead of polling. In WCF, you can do this

How to Return Errors from an ASMX Web Service?

本小妞迷上赌 提交于 2020-01-22 20:11:46
问题 My web service method returns a collection object, this will serialize nicely, thanks to the way C# web services work! But if my code throws an uncaught exception, I want to instead return a custom error object. Is this possible using C# ASP.NET v2? For example, Normal Operation should return: <Books> <book>Sample</book> <book>Sample</book> </Books> But on error I want <error> <errorMessage></errorMessage> </error> 回答1: Yes, this is possible. What you'll need to look into is the SoapException

Java Web Services - Is Axis Necessary?

笑着哭i 提交于 2020-01-22 20:11:08
问题 Is AXIS or CXF necessary for Java web services? Can it be all done via the JDK (1.6)? 回答1: Is AXIS or CXF necessary for Java web services? No. Although Axis2 is the most popular framework to work with Web Services is not the only way to do them. Can it be all done via the JDK (1.6)? Yes, but it is way much harder. You will benefit tremendously from using a framework used by others apps and from the bug fixes the development team provide. Doing all by hand is like reinventing the wheel. If you

Java Web Services - Is Axis Necessary?

梦想的初衷 提交于 2020-01-22 20:10:40
问题 Is AXIS or CXF necessary for Java web services? Can it be all done via the JDK (1.6)? 回答1: Is AXIS or CXF necessary for Java web services? No. Although Axis2 is the most popular framework to work with Web Services is not the only way to do them. Can it be all done via the JDK (1.6)? Yes, but it is way much harder. You will benefit tremendously from using a framework used by others apps and from the bug fixes the development team provide. Doing all by hand is like reinventing the wheel. If you