Re: Is there any way to customise schema namespaces with java2wsdl?

2007-08-27 Thread Adrian Trenaman
Yup, Kudos to Roman Roelofsen for dreaming this one up! Cheers, Ade. Jim Ma-3 wrote: Great! Ade. It's artful hackery . -Jim Adrian Trenaman wrote: Hi Jim, Just to follow up on this - I had a go at providing a skeleton Java package with the package-info.java(.class) in place:

Why does Service need the WSDL again when using classes generated from WSDL?

2007-08-27 Thread Per Olesen
Hi, I use the cxf-codegen-plugin maven plugin to generate java classes for a wsdl of mine. I then use the generated service like this: new FooService(wdlUrl, serviceQname).getFoo().bar(bleech) But why does the FooService actually need the wsdlUrl again? I can see it resolves it. I thought,

Re: Why does Service need the WSDL again when using classes generated from WSDL?

2007-08-27 Thread Per Olesen
So, to try and answer my own question (and you might very well correct me here, if I am wrong :-)) But why does the FooService actually need the wsdlUrl again? I can see it resolves it. I thought, that when i chose the path of generating classes from WSDL to java, I had done all the wsdl

Re: Schema-First Development with CXF

2007-08-27 Thread Eric Miles
Daniel, I posted this exact same question last week to the mailing list but have not received a response on it yet. I am receiving the exact same error as you. I attempted to look for the namespace parser that extracts the schemaLocation but couldn't find one. Hopefully I just couldn't find it

geronimo-javamail_1.4_spec-1.0-M1 bugs

2007-08-27 Thread nuka
Hello, I hava a big problem with geronimo-javamail_1.4_spec-1.0-M1 for my cxf web services project. I need to migrate geronimo-javamail to javamail of sun. As this migration is not possible due to a bug I've splitted geronimo-javamail into two new jars - one containing only javax/mail/...

Re: geronimo-javamail_1.4_spec-1.0-M1 bugs

2007-08-27 Thread nuka
When split geronimo-javamail jar into two jars and replace the first one with the one of sun web services don't work anymore. Web services traces show the inbound message but there is an error when parsing this message saying something like missing soap version dkulp wrote: Nuka,

Re: geronimo-javamail_1.4_spec-1.0-M1 bugs

2007-08-27 Thread nuka
This is the trace Invoking getName... 27 août 2007 17:55:11 org.apache.cxf.phase.PhaseInterceptorChain doIntercept INFO: Interceptor has thrown exception, unwinding now org.apache.cxf.binding.soap.SoapFault: null is not a valid SOAP version. at

Re: geronimo-javamail_1.4_spec-1.0-M1 bugs

2007-08-27 Thread Daniel Kulp
This error is probably hiding a bigger issue. Any chance of a tcpdump/wireshark log of the response?Most likely, this is a server side error and the response coming back is not a soap message at all. It's probably html (with no namespace thus the null is not a valid soap version

Re: geronimo-javamail_1.4_spec-1.0-M1 bugs

2007-08-27 Thread nuka
The server is on my computer. The problem is that if I am using geronimo-javamail_1.4_spec-1.0.jar (the original) it's work. dkulp wrote: This error is probably hiding a bigger issue. Any chance of a tcpdump/wireshark log of the response?Most likely, this is a server side error

Re: geronimo-javamail_1.4_spec-1.0-M1 bugs

2007-08-27 Thread nuka
This is the inbound message. There is no outbound message in the server traces. nuka wrote: The server is on my computer. The problem is that if I am using geronimo-javamail_1.4_spec-1.0.jar (the original) it's work. dkulp wrote: This error is probably hiding a bigger

Re: geronimo-javamail_1.4_spec-1.0-M1 bugs

2007-08-27 Thread nuka
INFO: Find registry server-registry.xml at classpath resource 27 ao¹t 2007 17:52:06 org.apache.catalina.startup.Catalina start INFO: Server startup in 36081 ms 27 ao¹t 2007 17:55:11 org.apache.cxf.interceptor.LoggingInInterceptor handleMess age INFO: Inbound Message

Re: Aegis binding and property/fiels removal

2007-08-27 Thread Dan Diephouse
Hi Guillaume This is a little bit tricky, but doable I think. Step 1: Write your own TypeCreator which initializes a MyBeanType with your own BeanTypeInfo. BeanTypeInfos provides metadata about how to map beans to xml. public class MyTypeCreator extends DefaultTypeCreator { @Override

Re: How to define which properties to expose per class using simple server

2007-08-27 Thread Dan Diephouse
Probably the easiest way is to add an @IgnoreProperty annotation to the property. Or you can supply an XML mapping file for your bean as well. mapping files are named after your bean - so something along the lines of MyBean.aegis.xml if your bean is named MyBean. They reside on the classpath in

Re: Simple front-end and xs:anyType

2007-08-27 Thread Dan Diephouse
Hi Jacob, You may have to turn on xsi:type writing for aegis. If you're using the API, it'll probably look something like this: ServerFactoryBean sf ... MapString, Object props = new HashMapString, Object(); props.put(AegisDatabinding.WRITE_XSI_TYPE_KEY, true); sf.setProperties(props); Or in

Re: Why does Service need the WSDL again when using classes generated from WSDL?

2007-08-27 Thread Daniel Kulp
Per, Technically, JAX-WS doesn't need the WSDL again at runtime if you don't want it. However, it does require a bit of extra configuration. The main use of grabbing the wsdl at runtime is to grab the live soap:address location. Basically, you could publish a static wsdl at a known

RE: Aegis binding and property/fiels removal

2007-08-27 Thread Benson Margulies
I tried something like this once in an effort to take control of namespace prefix selection. I failed. However, it looks here as if the protocol facilitates what you want here, unlike (sadly) what I wanted. -Original Message- From: Dan Diephouse [mailto:[EMAIL PROTECTED] Sent: Monday,

Re: Simple front-end and xs:anyType

2007-08-27 Thread Jacob Marcus
Thanks Dan! I have got it work. I notice one interesting thing though. If I send a Date from the client, it is getting converted to an XMLGregorianCalendarImpl at the server side. I see that there is an existing JIRA issue open on this. (https://issues.apache.org/jira/browse/CXF-369) I changed

Acegi Security with CXF

2007-08-27 Thread Kaleb Walton
Does anyone have an example of authenticating with Acegi Security using a Simple Server? I'd like to pass the authentication token as easily and securely as possible - http://www.vorburger.ch/blog1/2006/10/propagating-acegis-security-context-in.html suggests passing it in the SOAP headers.

NullPointerException when ?wsdl url contains extra parameters.

2007-08-27 Thread Ray Krueger
I opened bug CXF-948 for this, but anyway; here's the problem. Deploying CXF via the CXFServlet, you will get a NullPointerException when your URL contains extra parameters... This URL http://localhost:8181/ws/soap/CurrencyExchange?wsdlusername=TESTpassword=password Causes this stack trace...

Re: Acegi Security with CXF

2007-08-27 Thread Ray Krueger
This might seem like an odd answer, but you can also look at how Spring-WS does it... http://static.springframework.org/spring-ws/site/reference/html/security.html On 8/27/07, Kaleb Walton [EMAIL PROTECTED] wrote: Does anyone have an example of authenticating with Acegi Security using a

Generated wsdl in XFire Versus CXF

2007-08-27 Thread Jacob Marcus
Hi all, I notice that in CXF, the xsd elements for method names have a type attribute. This was not the case in XFire. Here is an example of what I am talking about. My question is, is there a way to get CXF to spit out wsdl exactly as XFire? Thanks, Jacob XFire == xsd:element

Re: Acegi Security with CXF

2007-08-27 Thread Fred Dushin
I don't know a lot about acegi, but if you are only talking about propagating a WS-Security UnsernameToken through a SOAP wss:Security header, then yes, CXF is perfectly capable of doing this. Note, however, that you will need to add some code on the consuming side of the message to