I have a web application built on google's GWT framework. I was planning on setting up the Jetty GzipFilter in order to make the response compressed. Here, i noticed, after checking on firebug and TCP mon that even without the filter, the responses are gzipped.
I checked the xml configuration files in jetty and could not find any default gzip filter defined anywhere. Can you please tell me if Jetty-7 does gzip compression by default?
I'm using jetty version 7.4.5.
If additional information is required, please let me know and I shall provide.
GWT does response compression for you... https://groups.google.com/forum/m/#!topic/google-web-toolkit/02nDfzqLc-Q
Related
I am seeing one behavior while accessing one wsdl. I used Apache Axis 1.3 as well as JAX-WS wsimport tool to generate client stubs, it is successfully generating stubs.
But when I am using apache-cxf-2.7.18 and using wsdl2java command, it's not generating stubs, giving me error.
WSDL is on https. I added proxy in wsdl2java bat file as well. wsdl contains a which is also on https.
Error I am getting like:
enter image description here
It seems to that it's not able to include underlying wsdl.
Can anybody give me any pointer what I am doing wrong?
I believe, when I am doing any service publishing, it can not be client implementation specific like it is supported by Axis but not CXF. or I can do that? Is there any restriction that could be applied?
(Solution in comments)
The error log shows a connection error when downloading the WSDL, probably due to a misconfiguration of the proxy in wsdl2java when using a SSL connection through maven
Maven is not is not able to download imports using the proxy configuration, since you have downloaded the wsdl, you can also download all referenced url resources to local files and change <wsdl:import location= to use each local file. Use a relative path ./yourfile or a URL format file://path/to/the/file
Currently, I have a WebService which accepts HTTP Post requests, containing byte array of WAV files. This works completely fine. It then gives back XML results of WAV file metadata. I test this by sending curl commands and looking at the output given back. The question I have is, in my opinion, a very basic ServiceMix question. It's just this one part I'm stuck on. How would I send this curl command to ServiceMix, and have it forward it along to the external WebService? In the future, I will have numerous WebServices, that give different types of data about the WAV file, in different XML formats, and I'll want ServiceMix to handle routing and parsing the results accordingly. Before I can embark on that, I need to figure how the heck to just send a single request through ServiceMix, and to a WebService. Is it a WAR file that sits in ServiceMix deploy? An OSGi bundle? A blueprint.xml file? I truly have no idea, so any help to steer me in the right direction, would be great.
Take a look at camel documentation How to use camel as a http proxy between a client and server . You could build a camel route and deploy the bundle in servicemix to proxy to your webservice
I have a JAX-WS #WebServiceProvider and would like to support both SOAP 1.1 and 1.2 protocols. I handle creation of response SOAPMessage of proper version manually. I have WSDL describing bindings for both, 1.1 and 1.2 protocol.
But the service endpoint is only able to support either version at a time.
I would appreciate either a solution or a pointer to a piece of doc where it's stated that it's impossible.
P.S. i'm using WebSphere 7 app server, which is bundled with JAX-WS 2.0 (which is Axis2 based)
I experienced the same problem. The main issue for me is that it is not possible to compile the class with both #BindingType(value = SOAPBinding.SOAP12HTTP_BINDING) and #BindingType(value = SOAPBinding.SOAP11HTTP_BINDING). Have a look to this http://www-01.ibm.com/support/docview.wss?uid=swg1PK96819, and this http://www-01.ibm.com/support/docview.wss?uid=swg1PK83482, it should be possible to set #BindingType(SOAPBinding.SOAP_HTTP_BINDING) to have the both SOAP version to be delivered. Unfortunaltely, i did not compile also with the Websphere runtime environment, what i don't understand.
I recently dealt with a service deployment issue related to trying to simultaneously enable both SOAP 1.1 and 1.2 for a service (on WebSphere v7.0). Unfortunately, I don't think that your question gives enough information to provide a specific solution.
It IS possible to support both bindings at the same time, but there are some considerations. I think the main thing is that the server has to be able to listen on separate endpoints (URLs) for each binding. As near as I can tell, this requires appropriate entries in your web.xml and/or your webservices.xml configuraiton files.
For an annotation based service, these configuration entries are theoretically optional; but when you try to enable multiple bindings for a given service without the "optional" configuration entries, the WAS Axis2 extension fails with various possible exceptions.
If you could provide more detail about your wsdl, and the relevant portions of web.xml and webservices.xml (if any), as well as any error messages reported in the WAS log(s) during deployment and application startup, then I could probably give a better answer.
I have a windows phone app that is consuming some web services through proxies generated with the SLsvcUtil tool.
Is there any way to make a compressed request (with gzip or any other compression method) to the web services, and ask for a compressed result (something like setting the Accept-Encoding header in the http request).
See this post by MVP and WP7 programmer 'sharpgis'. http://www.sharpgis.net/post/2011/08/28/GZIP-Compressed-Web-Requests-in-WP7-Take-2.aspx
Hope that helps.
I need to enable gzip compression in moodle 2.0.
Is there any settings available in moodle or i need to get any third party extension ?
I don't believe there is a way to turn on gzip via the Moodle admin interface, but you can turn on gzip via editing your.htaccess file or the server configuration.
If you are using Apache, here is a good write on how to enable gzip: http://www.techiegyan.com/2008/10/06/enable-compression-gzip-compression-apache-server-httpd/
Else, google for the webserver and gzip and you should be able to find the right guide to enable gzip.