Ok I tried 2 things, both with no luck:
1.) I inlcuded the xsd-files into the wsdl, so that everything in generated
in one move. It works, all the classes are being generated in one package
(ie com.foo.generated.wsdl). Yet still, my test refuses to unmarshall the
"inner" elements.
2.) Without th
Hello,
I'm upgrading to a new version of servicemix and therefore upgrading to use
CXF 2.0.7 since that's what servicemix was tested with. For some reason
though, I'm getting the follow message during my build when CXF attempts to
process one of my WSDLs:
java.lang.RuntimeException: Header messa
http://www.jroller.com/gmazza/date/20080417 ?
HTH,
Glen
2008-06-14 Pam Holzner wrote:
> Hi,
>
> I am trying to use cxf to generate a service from a wsdl. I started with my
> own wsdl but ran into this message:
> Exception in thread "main" java.lang.NoClassDefFoundError:
> com/sun/xml/bind/ap
http://www.jroller.com/gmazza/date/20080417 ?
HTH,
Glen
2008-06-15 Mohammad Shamsi wrote:
> Hi,
>
> I just found cxf 2.0.4-incubator in maven repositories, how can i access
> 2.1 with maven 2 ?
>
Hello,
I am trying to get the Aegis databinding to work with the JAXRS front-end
but haven't been successful yet. There is no documentation on this
configuration, has anyone been able to get it working? If so, could you
provide an example configuration? I can't seem to get JAXRS to use anythin
http://www.jroller.com/gmazza/date/20080308?
2008-06-16 Autumn Wang wrote:
> I am new to both web services and CXF and I don't know how to get the
> following done with CXF.
>
> I am going to dispatch a thread to poll a database before my web service to
> serve the client. So I would like to kno
The stuff with the DestinationFactory and Conduits I took from from the docs
at http://cwiki.apache.org/CXF20DOC/local-transport.html (the section on
simple front end). It does seem to enable local:\\ access, but at the
expense of http:\\ access.
I'm using the simple front end. Maybe this is the
Great! Tks Dan. I will use @WebParam for that...
--
Fernando Dourado
Arquitetura de Sistemas
BV-Sistemas :: Votorantim Finanças
-Mensagem original-
De: Daniel Kulp [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 18 de junho de 2008 16:19
Para: users@cxf.apache.org
Assunto: Re: Using
On Jun 13, 2008, at 3:13 PM, Fernando Dourado wrote:
Hi all. My application must receive a sessionId information in soap
header.
Looking in mailist archive, I found this solution:
@WebMethod
public IdentifierPK add(@WebParam Customer c) {
...
}
Change to this:
@WebMethod
public Identifier
Hmm. not really sure.
In a way, it's related to https://issues.apache.org/jira/browse/
CXF-1654 because if the contexts were available, you could add the
header to the context. You could write an interceptor that adds the
header, but that's a bit more complex.
If the wsdl's soap bi
On Jun 16, 2008, at 7:39 AM, javian wrote:
Hi,
are there any news on this issue? In Jira the issue is still open. Is
somebody working on it?
Not yet.I mentioned it in my note about ideas for 2.2:
http://www.nabble.com/Ideas-for-2.2-to17985028.html
Dan
Thanks,
Juergen
marcelo
Any chance either of you could zip up a small project that shows the
problem with a small readme or something that explains how to run it
and send it to me to look at?
Dan
On Jun 17, 2008, at 7:29 AM, Bilel wrote:
Hey
I have the same issue, my code works fine in Eclipse, but I got this
Did some snooping... The RI seems to have the same problem:
http://forums.java.net/jive//message.jspa?messageID=268876
And they mention its a bug in the JDK:
https://jaxp.dev.java.net/issues/show_bug.cgi?id=46
The workaround seems to be to use the latest 1.6 JDK or get the latest
sun jaxp p
Thanks for your suggestion. AttachmentOutInterceptor does show mtom-enabled is
false. I made it work by adding message.put("mtom-enabled", true) in the
handleMessage() method in my interceptor. It is odd that I have to do it this
way, but it does work.
Thanks,
Boxiong
- Original Message -
Hi,
looks like the same problem i have. But my response is invalid also
according to soapUI validation.
I'm not using any additional interceptors, only default cxfServlet,
default bus config etc, without security, attachments etc. and I'm using
jaxWS+jaxB
This is response, which is problem in
Very strange. The message is definitely valid.
Could questions:
1) Do you have any SAAJ type handlers/interceptors on the chain (jaxws
SOAPHandler, ws-security things, etc...)?
2) I noticed you have a xerces jar... can you try removing that and
seeing if the JDK built-in parser will wor
On Jun 17, 2008, at 9:15 PM, Boxiong Ding wrote:
I have a service that imports large data. On server side, I followed
the MTOM doc (http://cwiki.apache.org/CXF20DOC/mtom.html) to enable
mtom and use DataHandler. And I can transfer file with no problem.
Now I want to test my service on clie
This is much easier with 2.1, so stick with that...
As you surmised, by default, the runtime only knows about the types
that are references in the generated code from the wsdl. One
solution is to add imports in the wsdl to import the other schemas and
regenerate.
The other option i
Hi
Hi,
I have a service with a GET method that accepts 2 parameters.
(/setPageLayout/{navItemUid}/{layoutUid}/). When I try to access the service
specifying only one parameter, the operation is getting identified. However,
when I call the service with no parameters specified, I get an error mes
Ok, sure, that can be fixed.
In meantime, the simplest workaround is to copy and paste the existing JSONProvider, update it to pass the correct properties to the
constructor, or possibly have the factory bean injected through spring, and then register the custom provider through
jaxrs:providers
On Jun 18, 2008, at 11:35 AM, Sergey Beryozkin wrote:
Just would like to clarify :
Do you expect that the bean with id 'jsonOutputFactory' is to be
used as a org.codehaus.jettison.mapped.MappedXMLOutputFactory
instance ?
At the moment, no jaxrs:properties are checked. But that can be
fi
Hi
Sorry if this is obvious, but I can't find an answer. Spring 2.5, CXF
2.1, Jettison 1.0.1.
It's ok, not obvious to me at all :-)
I've got a SOAP and a REST service both being configured in Spring..
REST works for XML, but I get an "Invalid JSON namespace" error if I
try to use JSON. I've
> 2) Figure out how to get woodstox properly configured as the parser.
> I really don't know how to do that other than to find suns jar and
remove it.
For JDK-1.6.0_04 the stream parser impl is in the JRE rt.jar, so you
can't get
rid of it, however, this impl can be overidden simply by includin
I checked. BeanTypeInfo.java requires at least a 'bean' get method. If you
wanted to be like jaxb and look at 'naked' fields, someone would need to
write more code in this area.
On Wed, Jun 18, 2008 at 8:55 AM, Benson Margulies <[EMAIL PROTECTED]>
wrote:
> You only need .aegis.xml files if you wa
My Problem is:
I am to create a webservice. I'm currently using CXF 2.1, but that doesnt
seem to be the point, I also tried 2.0.6 and 2.0.7. with no different
outcome.
I have the WSDL and some XSD files defining the main request and response
messages. Thing is, the WSDL only defines 2 elements,
Yes that worked. Thanks.
For anybody else that comes across this same problem, here is a code snippet
that solved the problem:
ClientProxyFactoryBean factory = new ClientProxyFactoryBean();
factory.setServiceClass(serviceClass);
factory.setAddress("local://" + serviceName);
factory.setDataBindin
On Jun 18, 2008, at 9:38 AM, Sergey Beryozkin wrote:
Hi,
If so then I'd assuem it's something which needs to be fixed in a
jaxws asm processor, as this method
Response getApplicationConfiguration(@PathParam("id") String id,
@Context SecurityContext sc);
is unlikely to be part of what
Hi,
If so then I'd assuem it's something which needs to be fixed in a jaxws asm
processor, as this method
Response getApplicationConfiguration(@PathParam("id") String id,
@Context SecurityContext sc);
is unlikely to be part of whatever interface the JAX-WS endpoint supports ?
Dan, what d
You only need .aegis.xml files if you want to customize the behavior of the
standard mapping objects.
If you like what the standard mappings do by default, you don't need
.aegis.xml.
The only alternative customization mechanism is to write your own Java
mapping classes.
On Wed, Jun 18, 2008 at 8
Sorry for the spam, but I have another question:
Is the .aegis.xml file necessary to process the
(un)marshalling? Or is it only a way to customize the mapping when one
wants to?
More concretely, would I have to generate a .aegis.xml file for each
class I want to (un)marshal?
Regards,
Mickael
Download Day is here!
Set a Guinness World Record
Enjoy a Better Web http://www.spreadfirefox.com/en-US/worldrecord/
--
sincerely yours
M. H. Shamsi
I don't know the answer, but I'll look into it and get back to you.
On Wed, Jun 18, 2008 at 7:47 AM, Mickael Istria <[EMAIL PROTECTED]>
wrote:
> I took a look at this example, and I think Aegis is ok for my needs.
> Thanks a lot!
>
> However, I have some questions (that are in fact the same quest
I took a look at this example, and I think Aegis is ok for my needs.
Thanks a lot!
However, I have some questions (that are in fact the same question from
several points of view):
- Are getters and setters necessary? Or does it use reflection to set
the fields properties? Can we use it on objec
Please look at org.apache.cxf.aegis.standalone.StandaloneReadTest. It only
reads.
Then read the javadoc for org.apache.cxf.aegis.AegisWriter. Note that Aegis
has no concept of a root element, so your code has to choose the QName for
the element. Passing null to the Type parameter will cause Aegis
I'd also appreciate though if you could please post a simple example.
For ex, the task is to serialize a class x.y.Foo into the output stream,
how one can do ?
Same for the deserialization
Thanks, Sergey
The recent refactor of Aegis was intended to allow this sort of thing. Keep
in mind, ho
Yes, I do.
John Baker
--
Web SSO
IT Infrastructure
Deutsche Bank London
URL: http://websso.cto.gt.intranet.db.com
"Sergey Beryozkin" <[EMAIL PROTECTED]>
18/06/2008 12:04
Please respond to
users@cxf.apache.org
To
cc
Subject
Re: Roles and permissions
Hi
I'm confused by this stacktrace
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2
counts of IllegalAnnotationExceptions
javax.ws.rs.core.SecurityContext is an interface, and JAXB can't handle
interfaces.
this problem is related to the following location:
Hi
I'm confused by this stack trace
> Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2
> counts of IllegalAnnotationExceptions
> javax.ws.rs.core.SecurityContext is an interface, and JAXB can't handle
> interfaces.
>this problem is related to the following locati
The recent refactor of Aegis was intended to allow this sort of thing. Keep
in mind, however, that there's no code generator.
For now, all I can recommend is that you read the source.
Start with three classes:
org.apache.cxf.aegis.AegisContext, and then the stream reader and writer in
the same p
It helped. Thank you very much for quick answer.
dkulp wrote:
>
>
> This looks like an older version of microsofts stuff. Thus, the
> chunking might be causing an issue.I would try turning off the
> chunking.
>
> Instructions for various ways to do that are at:
> http://cwiki.apache
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2
counts of IllegalAnnotationExceptions
javax.ws.rs.core.SecurityContext is an interface, and JAXB can't handle
interfaces.
this problem is related to the following location:
at javax.ws.rs.core.SecurityCo
I'm sorry, it's a lack of the docs...
Please use the SecurityContext from a jaxrs package
javax.ws.rs.core
Hope it will work
Cheers, Sergey
- Original Message -
From: "John-M Baker" <[EMAIL PROTECTED]>
To:
Cc:
Sent: Wednesday, June 18, 2008 10:13 AM
Subject: Re: Roles and permission
Hello,
I would like to use Aegis to generate XML from objects, and vice-versa.
In fact, I would like to use CXF instead of JaxB to do marshalling and
unmarshalling. I want the same kind of results as explained at
http://cwiki.apache.org/CXF20DOC/aegis-databinding.html#AegisDatabinding-Class%3C
Sergey,
Using @Context SecurityContext sc didn't work:
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2
counts of IllegalAnnotationExceptions
org.apache.cxf.security.SecurityContext is an interface, and JAXB can't
handle interfaces.
this problem is related to the followin
Thanks,
That worked.
Sergey Beryozkin wrote:
>
> Hi
>
> You can do
>
> new
> WebApplicationException(Response.status(...).entity(formatErrorMessageAsNeeded()).build())
>
>
> Once ExceptionMapper providers are supported, one'll be able to
>
> throw custom exceptions from the application c
Hi,
Is there any more documentation on this? Or some examples? Or is it as
simple as:
public void myMethod(String param1, String param2, @Context
SecurityContext sc) {
..
}
John Baker
--
Web SSO
IT Infrastructure
Deutsche Bank London
URL: http://websso.cto.gt.intranet.db.com
"Ser
Hi,
I have a service with a GET method that accepts 2 parameters.
(/setPageLayout/{navItemUid}/{layoutUid}/). When I try to access the service
specifying only one parameter, the operation is getting identified. However,
when I call the service with no parameters specified, I get an error message
47 matches
Mail list logo