If you don't want to use Spring to wire the components in the CXF Bus ,
you can use CXFNoSpringServlet for the servlet transport initiation.
Otherwise please use the CXFServlet because you can leverage Spring
configuration file to publish your service endpoints.
BTW, if you are using the CXF
I see the use of @Context in this example but the docs state:
"Injection of contexts into message body providers is not supported
yet."
Which is correct?
-Anthony
@Context
public void setUriInfo(UriInfo ui) {
currentQuery = ui.getQueryparameters();
}
void writeTo(Contacts
I have an object which has a byte[] field. I want to be able to send
binary data during a POST to create the object with that binary data.
However, I can't find an example of doing this. I can see jaxws mtom
with generated stubs for the client, etc. I guess I'm looking for
something that al
I'm trying to deploy my web service with CXF 2.1 on Tomcat 6.0.16 and am
getting the following error which makes no sense because I clearly have
both my Interface and implementation annotated with @WebService. I'm
stumped, any ideas would be greatly appreciated.
Thanks,
David
SEVERE: Exception s
Thanks. I'll give that a try.
Britt Crawford wrote:
You just need to add the annotation
@ProduceMime({"application/xml", "application/json"})
to your service methods. You can add
@ConsumeMime({"application/xml", "application/json"})
to allow the to receive input in both formats as well.
Sergey Beryozkin wrote:
Hi
I would like to allow the user to somehow specify which elements they
care about for an object, so that the output can be optimized as well as
the queries backing the service.
It shoud be possible to do with JAX-RS.
great
For instance, if a call is made to retr
Eoghan:
Thanks... that seems to have cleared things up...(looks like it is actually
trying to do WS-RM now)
Now I am getting the following error:
INFO: Action : http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence
Jun 27, 2008 3:59:29 PM org.apache.cxf.phase.PhaseInterceptorChain doIntercept
You might want to see JAXBElementProvider class you can find marshal and
unmarshal jaxb methods
And you can easily override the default JAXB provider by copying it make the
changes and to register user defined provider.
Here is the example from my app spring context file
You just need to add the annotation
@ProduceMime({"application/xml", "application/json"})
to your service methods. You can add
@ConsumeMime({"application/xml", "application/json"})
to allow the to receive input in both formats as well. I am assuming that
you are using the JAXRS front-end.
Hello group,
I very much want to diddle the response xml on it's way out to add
attributes and other bits. Unfortunately I seem to be at a loss of how
to accomplish this even though it seems like it should be very easy. I
am using CXF 2.1.1, JAXRS and JAXB if that is of interest.
I have w
Mike,
When adding the interceptors manually, you have to be careful to ensure
that the *same* instance of each interceptor type is added to each list
something like:
MAPAggregator mapAggregator = new MAPAggregator();
MAPCodec mapCodec = new MAPCodec();
bus.getInInterceptors
Step 7, 8, and Note #4 at the bottom of
http://www.jroller.com/gmazza/date/20080417#WFstep7 are all I know of URLs
with web services. Question: Would changing the URL (via
ENDPOINT_ADDRESS_PROPERTY) being used by the SOAP client help you
(http://www.jroller.com/gmazza/date/20070817, Step #7)?
G
Hello,
now I have discovered a very interesting Point:
According to the Jetty-NoSpring-Servlet-Transport tutorial I used the
CXFNoSpringServlet. But if I use the normal CXFServlet the protocol http is
automatically chosen!
This makes absolutely no sense:
How can I configure the CXFNoSpringServle
Eoghan:
Thanks for the help, here is where I am so far...
You're getting these errors on the server-side right?
Yes.
Are you using WSDL-first or Java-first?
If WSDL-first, does your WSDL include the
extension element? (see the ws_rm sample WSDL)
WSDL-first. I am actually using the ws-rm sa
Hi there,
I'm trying to get cxf to work in an OSGi environment and have been
banging my head against the desk a bit, suspect it might be due to
leaping in at the deep end but any help would be appreciated.
Ok here's what I've got working:
JaxWsServerFactoryBean svrFactory = new JaxWsServer
Hello,
first of all: thanks for your effort.
Another time I digged through the example from the link you posted. It's
quite the same thing
I tried before and produces the same result:
Not giving the http:// -Protocol-Prefix ends in a misconfiguration of using
JMS instead of servlet/http
transpor
Hi
I would like to allow the user to somehow specify which elements they
care about for an object, so that the output can be optimized as well as
the queries backing the service.
It shoud be possible to do with JAX-RS.
For instance, if a call is made to retrieve a Contact and the user
spec
Are there any docs specifically on implementing CXF REST With
Acegisecurity? Google didnt return anything obvious.. A simple example
showing how to secure a couple methods would be handy.
Thanks,
John Baker
--
Web SSO
IT Infrastructure
Deutsche Bank London
URL: http://websso.cto.gt.intra
Actually I just realized the SOAP request being sent looks like:
http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ser="http://service.foo.com/";>
A
NaN
B
hmm..have to figure out how to get my client not to send t
I have a webservice which exposes a method:
public void addPerson(Person person) { ... }
When I try to call it (with a client and soapUI) I get this error:
org.apache.cxf.interceptor.Fault: Unmarshalling Error: tried to access
classcom.sun.xml.bind.v2.runtime.reflect.opt.Const from class
com.fo
I have what I think is probably a simple question for an expert, but is
proving too much for me. First, here are the relevant source codes for my
question:
http://www.nopaste.com/p/a9YVax7Ylb POJO I'm trying to return from a
webservice
http://www.nopaste.com/p/a1Id4Gr6t The webservice interfa
Here you go.
@Path("/customers")
public class Customers {
@POST
@ConsumeMime(MediaType.TEXT_PLAIN)
public Response postString(String input) {
//process the input
}
}
If you post to this URL http://localhost:8080/customers, this method
would be invoked.
-Arul
deniak wrote:
Can you give me
Hi Serentos,
I have added users@cxf.apache.org so that others will have chance to
look at your mail and respond to it.
I don't know much about servlet transport but as far as I remember CXF
will match the URI prefix (e.g. http:// or jms:// or local://) with the
URI prefix returned by Transport
I have created a simple web service using CXF (deployed to JBoss). However
it seemed that when my service method would get called (with a Person
object) the "firstName" property would be set but the "lastName" property is
null. I wasn't sure where the problem was so I created a subclass of
CXFSe
Barlotta, Michael [USA] wrote:
After digging and playing there are at least two options (there may be
more) to configure WS-RM
1) adding interceptors to the CXF bus
2) adding policy to the endpoint
I have not gotten very far with option 1, though I am not sure why. The
Greeter service from the
25 matches
Mail list logo