There was just one missing line that separated me from enlightenment. ;)
requestContext.put(MessageContext.HTTP_REQUEST_HEADERS, requestHeaders);
I forgot to put the requestHeaders back into the requestContext... Maybe I
need a little break.
Thank you for help!
--
View this message in
Dan,
The original post was the output of CXF v2.0.5.
When trying with CXF v2.1-incubator-snapshot of 2008-04-15, the
getAllCarsResponse remains a sequence without any reference to the Car
element: xsd:element name=getAllCarsResponse
type=tns:getAllCarsResponse/xsd:complexType
One of the IONA folks did a video podcast thing that shows how to use the
js stuff to access services from an iPhone:
http://open.iona.com/wiki/display/ProdInfo/FMCS+No.+3+-+Accelerate+Web+Development+on+the+iPhone+-+Roland+Tritsch
That might provide another useful starting point.
Dan
On
As Ian mentioned, this is quite a bit easier with JAXWS/JAXB 2.1. With
the 2.1 snapshots, you can add
@XmlSeeAlso(FooBar.class) to the IFake interface or to the Foo object to
allow the runtime to know that the FooBar class should also be added to
the JAXBContext.
Alternatively, for CXF
Ian,
Unfortunately, Car is an interface and not a concrete class.
Regards, Stefan Lecho.
ianroberts wrote:
stlecho wrote:
Hi,
I would like to generate a WSDL for the following method: public
ListCar
getAllCars();.
This should work as you expect, so long as Car is a concrete class
On Monday 21 April 2008, stlecho wrote:
Ian,
Unfortunately, Car is an interface and not a concrete class.
Yea, that would be the issue. JAXB doesn't support interfaces directly,
just concrete beans. To get this to work, you would need to write an
XmlJavaTypeAdapter to convert the Car
Hello,
I am a trying to use HTTPClient to send request i CXF HTTP transport. I
have implemented the Conduit API with HTTPClient but i don't understand how
do i configure CXF to use my implementation.
Can anyone help me?
Thanks,
Paulo Ramos
--
View this message in context:
Hi Jervis
I'm sorry for replying so late...
The idea behind ?_js or ?_lang=js is not to indicate to the runtime that the
invocation is coming from a JS client stack but to
provide on the fly generation of the client execution code (JS in this case),
similar to what Benson did for JAX-WS
Arul,
thanks for the pointer.
I have upgraded to the latest snapshot of 2.1 but still get the same issue.
Brad.
On Mon, Apr 21, 2008 at 4:12 PM, Arul Dhesiaseelan [EMAIL PROTECTED] wrote:
I think JAX-RS (JSR 311) support is available only in 2.1.
Brad wrote:
Hi,
I'm trying to
This entry might be a problem :
http://cxf.apache.org/jaxrs
C:\workspace\eclipse33\cxf_REST_Web\WebContent\WEB-INF\schema\jaxrs.xsd
There's a spring.schemas file wich matches the http://cxf.apache.org/schemas/jaxrs.xsd location to the local class resource
schemas/jaxrs.xsd, so please try
On Monday 21 April 2008, Paulo Ramos wrote:
I am a trying to use HTTPClient to send request i CXF HTTP
transport. I have implemented the Conduit API with HTTPClient but i
don't understand how do i configure CXF to use my implementation.
Can anyone help me?
You'll want to create two files:
Hi all,
I am converting the ws-addressing sample in cxf 2.0.5 to a servlet version.
When I deploy and run, I am getting the following error. I checked CXF users
guide on how to configure WS-Addressing but it doesn't help. I included the
build.xml and cxf-servlet.xml that I used to create the war
I'm looking for an example or documentation referencing the appropriate way
to handle exceptions in a custom manner on a JAX-RS server.
I have a REST service resembling the following:
@Path(/exception)
@GET
public String getException() throws ABCException{
throw new ABCException(Test
I have a WSDL with multiple operations defined and one of them works
properly. However, my login operation throws an
IndexOutOfBoundsException when the SOAP response is processed. I have
FINE logging enabled and I can see the request and response SOAP
messages being processed. I'm using version
Hi
I think the JAX-RS spec is going to talk more about handling custom
exceptions in the 0.8 or later versions but as far as I'm aware the most
portable way at the moment is to throw a (runtime)
WebApplicationException.
Provided your resource class is a thin wrapper around a more involved
Hi,
I'm facing a problem with basic authentication when consuming a service
with CXF.
Currently the cxf-configuration XML contains these lines for each
service my client is invoking:
http-conf:authorization
UserName
Hi,
I was using a recent snapshot of 2.1. When I tried to compile the JAX_RS
sample, it failed. After looking at the source code, I see
SingletonResourceProvider no longer has a default constructor. I fixed
the Server.java in the sample as shown below.
JAXRSServerFactoryBean sf = new
You may want to use JAX-WS code to accomplish this.
QName SERVICE_NAME = new QName(http://yournamespace.com;,
MyWebServiceService); QName PORT_NAME = new QName(
http://yournamespace.com;, MyService);
Service service = Service.create(SERVICE_NAME);
service.addPort(PORT_NAME,
I have recently upgraded from XFire 1.2.6 to CXF 2.0.5, (within JBoss
4.2.0.GA/Java1.6.0_06).
When using JAXWS, when my services throws an exception from the business
code, the exception stack is not logged. For example, when my application
throws a NullPointerException, only the following is
It appears to print Exception.getMessage(). NullPointerException has no
message, which explains why it prints null in this case.
How can I configure CXF to print the exception class and optionally the
stack trace (on the server)?
greenstar wrote:
I have recently upgraded from XFire 1.2.6
I don't know, but perhaps Steps 7 and 8 of my example
(http://www.jroller.com/gmazza/date/20080417) might give you a hint.
Glen
2008-04-21 stevewu wrote:
Hi all,
I am converting the ws-addressing sample in cxf 2.0.5 to a servlet version.
When I deploy and run, I am getting the following
Here's information on our logging options:
http://cwiki.apache.org/CXF20DOC/debugging.html
2008-04-21 (月) の 16:02 -0700 に greenstar さんは書きました:
It appears to print Exception.getMessage(). NullPointerException has no
message, which explains why it prints null in this case.
How can I
23 matches
Mail list logo