Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account
List archives

Re: Mock HTTP Service

Why is my exception interceptor not being called ?
(176 lines)
Jaxb schema validation for Jaxws hand written classes
(824 lines)
Feb 7, 2012
Sergey Beryozkin
Sergey Beryozkin
Hi

may be Chandru is more after something like this:
https://issues.apache.org/jira/browse/CXF-3163

which I think is ultimately to do with the local transport support.

CXF-3163 depends on

https://issues.apache.org/jira/browse/CXF-3562
and some work has already been done there.

We will get there but at the moment one needs to get the embedded Jetty 
started as David and others recommend. It's a bit more involved but 
personally I'd also prefer to use the complete HTTP invocation to stress 
all the parts of the runtime.

That said, we will try to resolve CXF-3163, it will take a bit of time 
though...

Cheers, Sergey

On 07/02/12 21:34, KARR, DAVID wrote:
> -----Original Message-----
> From: Ganesan, Chandru [mailto:chandru### @hp.com]
> Sent: Tuesday, February 07, 2012 9:16 AM
> To: us### @cxf.apache.org
> Subject: Mock HTTP Service
>
> Hi
>
> Is there a way to configure a mock server that accepts a HTTP
request
> from the WebClient and returns a JSON response. I'd like to
integrate
> this mock server as part of the unit test running under Apache
CXF.
> Could you provide some pointers?

 At the risk of repeating myself, if you search the archive for notes
written by me, you'll find several references to this topic.



Reply
Tags: transport supportlocal transportapache
Mock HTTP Service
February 7, 2012 11:17:53 AM
Hi Is there a way to configure a mock server that accepts a HTTP request from the WebClient and returns a JSON response. I'd like to integrate this mock server as part of the unit test running under Apache CXF. Could you provide some pointers? …
Error in calling WSDL service: org.apache.cxf.binding.soap.SoapFault: "http://service.something
August 10, 2011 09:12:31 AM
More details can be found on my question http://stackoverflow.com/questions/7001202/hand-crafted-wsdl-from-xsd- fails-in-cxf-the-namespace-on-the-queryresponse-ele/7007328#7007328 StackOverflow Question…
Created] (CAMEL-3809) mock endpoint - Let it be lenient so you can easily mock existing endpoint uri
March 26, 2011 05:51:06 AM
mock endpoint - Let it be lenient so you can easily mock existing endpoint uris which has parameters
HTTP/1.1 503 Service Unavailable
December 9, 2011 02:12:13 PM
I m having a weird issue. I have installed Riak with 3 clusters as shown in the "how to get started". Things were working fine until last night.After a hard reboot, when I run the riak server ( all three of them dev1 , dev2 and dev 3) and try to…
DOSGI and HTTP Service
May 25, 2010 09:56:01 AM
Hi, I'm trying to use D-OSGI osgi with http service. I have declared the following properties in my exported service <property name="service.exported.interfaces" value="*" /> <property name="org.apache.cxf.ws.httpservice.context" …
Convert JAX-WS Web Service to XML over HTTP
October 27, 2011 01:56:10 PM
We are using CXF 2.4.1 with JAX-WS/JAXB. We utilize the standard WebService/BindingType/WebMethod annotations on our SEI. From a client invocation perspective, we are using JaxwsProxyFactoryBean. How would we convert one of these existing…
HTTP Service Release
January 8, 2011 10:16:00 PM
Hi all, I have fixed a few issues of the HTTP Service implementations (mostly Jetty support stuff) and have deployed SNAPSHOTs of all bundles. The list of fixed bug since the 2.0.4 release can be found at …
Felix Http Service 2.2.0 Released
February 21, 2011 05:09:55 AM
The Felix team is pleased to announce the release of Felix Http Service 2.2.0 The Felix Http Service is an implementation of the HTTP Service Specification as described in chapter 102 of the OSGi Compendium. The goal is to provide a standard and…
LIghtweight HTTP service contribution
August 29, 2011 11:39:22 AM
For those not following the other messages, Ken Gilmer has built upon a simple HTTP server implementation in my sandbox and has created a lightweight OSGi HTTP Service implementation from it. He is offering to contribute it to Apache Felix and…
Updated: (DIRSERVER-937) Add HTTP service for ApacheDS
May 26, 2010 07:27:01 AM
[ https://issues.apache.org/jira/browse/DIRSERVER-937?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Emmanuel Lecharny updated DIRSERVER-937:
Resolved: (DIRSERVER-937) Add HTTP service for ApacheDS
July 17, 2010 07:56:49 AM
[ https://issues.apache.org/jira/browse/DIRSERVER-937?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kiran Ayyagari resolved DIRSERVER-937.
Closed: (DIRSERVER-937) Add HTTP service for ApacheDS
July 17, 2010 07:56:50 AM
[ https://issues.apache.org/jira/browse/DIRSERVER-937?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kiran Ayyagari closed DIRSERVER-937.
Release Apache Felix Http Service 2.1.0
January 25, 2011 07:37:03 AM
Hi, As promised, here is the long awaited 2.1.0 release of the Apache Felix Http Service implementation. Note: Pre checking of the release revealed, that the copyright year in the NOTICE files has not been updated. I have done that in trunk in…
Release Apache Felix Http Service 2.2.0
January 26, 2011 09:13:00 AM
Hi, As promised, here is the long awaited 2.2.0 release of the Apache Felix Http Service implementation where the NOTICE and DEPENDENCIES files have been fixed since the 2.1.0 RC. This release fixes the following 18 issues:…
Release Felix Lightweight HTTP Service version 0.1.2
December 1, 2011 01:36:41 AM
Hi, We solved a few packaging issues not recorded in jira. Staging repository: https://repository.apache.org/content/repositories/orgapachefelix-282/ You can use this UNIX script to download the release and verify the signatures:…
Accessing MessageContext and http headers across service layers
March 31, 2011 06:15:09 AM
I can inject @Context in my service implementation and get say locale from http headers. I want to pass this information something like this : serviceimpl -> managerimpl -> daoimpl I want locale to be available to managerimpl and daoimpl…
Re: Issue when using Felix Http service bundle package.
February 2, 2011 08:32:58 AM
Hi Allen, It works out as you suggest. I found that the jetty must be run so that the Http Service works. As I read in the tutorial on felix site, I thought that there is a standard http service other than jetty. I have replace the Felix Http…
Issue when using Felix Http service bundle package.
February 1, 2011 06:09:06 AM
Hi all, I'm new to osgi and felix. I have read the tutorial about the Http service on felix site. I have try to create the simple servlet like the tutorial mention. I have start the bundle org.apache.felix.http.bundle-2.0.4.jar but when I start to…
MTOM Service, cannot get incoming file from http request?
September 28, 2010 04:29:18 AM
Hi guys, I try to sent a file (jpg or pdf) to my Webservice using MTOM. When I try to write the file to disk, the file is only 1 k big and contains different data then I expect. I test the service with attachment through SOAP. What do I do…
Accept Ken Gilmer's lightweight HTTP Service implementation
September 22, 2011 03:56:10 PM
Ken Gilmer has offered to contribute a lightweight HTTP Service implementation to Felix: https://issues.apache.org/jira/browse/FELIX-3084 This idea has received positive feedback in email discussion, so I'd like to call a vote on it. [ ]…
Logging SoapUI Mock Service on Tomcat
June 2, 2011
I Have a mock SoapUI web service on Tomcat and would like to capture debug information. I see that SoapUI uses Log4J but how does this tie in with…
Adding an HTTP RPC Service using webHttpBinding for an Existing SOAP Service implemented with WCF?
April 16, 2011
I've been told that adding an HTTP RPC web service given an existing SOAP web service implemented with WCF is as simple as adding a webHttpBinding…
WCF Web Service - My service configuration says HTTPS, my client says HTTP
January 12, 2011
Hi, My WCF Service implementation appears to have all necessary HTTPS configuration settings. The whole client-> service comms work just fine, my…
Tomcat soapui mock web services
May 13, 2011
I have a .war file which was created from a soapui mock service via the 'deployaswar' option and deployed to Tomcat 5.5. I can successfully view the…
Why does my Mockito mock object use real the implementation
December 28, 2010
I had an issue with mocking Apache Http client. The following attempt to create a mock: DefaultHttpClient httpClient =…
How to mock HTTPSession/FlexSession with TestNG and some Mocking Framework
January 15, 2011
I'm developing a web application running on Tomcat 6, with Flex as Frontend. I'm testing my backend with TestNG. Currently, I'm trying to test the…
HTTP 404 Checking Service
April 17, 2011
I'm looking for an online service that crawls your site reliably and reports back on HTTP 404s, Page not Found errors. I don't want to install any…
Posting to WCF Service via HTTP
March 25, 2011
Hi Everyone, I'm having trouble posting data to a WCF Service via HTTP Post and send a redirect response back to the user. My service looks like…
Basic HTTP service with IIS but without WCF
January 14, 2011
I am looking for a way to host a very basic, but high performance, HTTP service that integrates with IIS using .Net. I have considered the option of…
Why HTTP service get down in windows web server ?
January 3, 2011
Why the http web service get down in IIS and all the sites start displaying blank pages. On checking with event viewer I could not see any error.…
Http request to web service in java
June 6, 2011
I have the following method in a C# project which builds a web request to consume a web service: private HttpWebRequest BuildRequest(string fullUri,…
HTTP error 408 accessing web service
March 14, 2011
I am sending a POST request from iPhone to a webservice, which is a REST layer over SOAP. I am getting Error 408 Request Timeout, testing on both…
Http 204 error in REST web service (Jersey)
February 7, 2011
Hi everyone ! I am using Jersey/Java to develop my REST services. I need to return an XML representation for my CarStore : @XmlRootElement public…
Publish WCF Service in IIS with support for both HTTP and HTTPS
January 15, 2011
I have a WCF-Service configured with two endpoints using webHttpBinding, one for http and the other for https. They use the same address, the…
How to get custom http header from WCF service response in Silverlight?
March 23, 2011
I'm trying to get custom http response header in Silverlight application. on server-side new MessageHeader added to response headers:…
How to grant rights to HTTP namespace on installed service?
December 30, 2010
I have written a Windows Service, that opens up a WCF service on port 8003 of the local machine. Or at least, it's supposed to. The service can't…
How to generate http respone using json in REST web service?
May 25, 2011
hi, I want to response using json in web service like this : HTTP/1.1 200 OK Content-Type: application/vnd.org.snia.cdmi.dataobject+json…
Deploying WCF Service with both http and https bindings/endpoints
January 25, 2011
I've written a WCF web service for consumption by a Silverlight app. Initially, the service only required a basic http binding. We now need to be…
Getting HTTP 401 unauthorized error while accessing WCF service through code
June 23, 2011
We have a third party WCF service to access in our web-service. For this we first generated proxy class for these WCF services using svcUtil.exe and…
How to automatically restart Apache service after HTTP 503 error?
February 18, 2011
Our production server is running Apache v2.2.4 on CentOS5.2. Mono v1.2.4 is integrated within Apache. Recently, we faced a problem in our production…