schema first development

2007-08-24 Thread Eric Miles
Hi all. I'm attempting to upgrade my current XFire 1.2.6 service to CXF 2.0.1 and having a few speed bumps. First off, we're doing schema first development with JAXB and using Spring for our container. For CXF, I hope to use Spring's namespace support and this is where one of my problems lie. I

Re: schema first development

2007-08-24 Thread Eric Miles
hat's the case, how do I display my schema in a dynamically generated WSDL? Thanks, Eric On Fri, 2007-08-24 at 09:51 -0400, Eric Miles wrote: > Hi all. I'm attempting to upgrade my current XFire 1.2.6 service to CXF > 2.0.1 and having a few speed bumps. First off, we&

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

Re: Schema-First Development with CXF

2007-08-27 Thread Eric Miles
Dan, Thanks for the follow up. Any idea when 2.0.2 will be released? Thanks! Eric On Mon, 2007-08-27 at 18:22 -0400, Dan Diephouse wrote: > Hi Daniel (and Eric who is hopefully still listening), > > I've just fixed this problem in SVN. The problem was I added capabilities to > do this from th

Re: Schema-First Development with CXF

2007-08-28 Thread Eric Miles
Dan, I tried this and for some reason my service isn't being registered. Here are snippets of what I have: Spring config: com/kronos/taws/services/mobile/MobileService.xsd

Re: Schema-First Development with CXF

2007-08-28 Thread Eric Miles
Dan, On the heels of the trouble I'm having with the suggestion below, I decided to give the 2.1 snapshot version a try with the fixed Spring namespace support. This actually does register my service and I can view the WSDL. However, the behavior is not as I expected. In XFire 1.2.6, when I gav

Re: Method level authentication?

2007-08-28 Thread Eric Miles
If you're using Spring and WSS4J, I'd also recommend looking at Acegi. We're using Acegi's method interceptor along with method level annotations to secure web services based on role and other custom granted authorities. It's a fairly easy solution once you WSS4J and Acegi hooked together. On Tue

Re: Schema-First Development with CXF

2007-08-30 Thread Eric Miles
Any feedback on this question? On Tue, 2007-08-28 at 10:02 -0400, Eric Miles wrote: > Dan, > > On the heels of the trouble I'm having with the suggestion below, I > decided to give the 2.1 snapshot version a try with the fixed Spring > namespace support. This actually does

Re: Schema-First Development with CXF

2007-09-04 Thread Eric Miles
pecify the schema location, the definition does not > actually appear in the WSDL. Any ideas on what may be causing this? > > Regards, > > Daniel. > > > > On 8/30/07, Eric Miles <[EMAIL PROTECTED]> wrote: > > > > Any feedback on this question? > &g

xfire to cxf upgrade, additional wrapping body elements?

2007-09-10 Thread Eric Miles
I'm testing our upgrade from XFire 1.2.6 to CXF 2.1-SNAPSHOT and it seems there is some additional wrapping of the message body requests and responses for our services. Under XFire, a request coming from the XFire client libraries (XFireProxyFactory using JaxbServiceFactory) looks like such: http

Re: xfire to cxf upgrade, additional wrapping body elements?

2007-09-10 Thread Eric Miles
> This is because you've specified "document" style on the ServiceBean > inside xfire. Try adding this annotation to your service impl: > > @SOAPBinding(parameterStyle=ParameterStyle.BARE) > > This will tell CXF not to operate in wrapped mode, but in > d

Re: xfire to cxf upgrade, additional wrapping body elements?

2007-09-11 Thread Eric Miles
nt inside . In > this case, CXF will look at the WSDL to see how to build the service > model internally. > > Cheers, > - Dan > > Eric Miles wrote: > > Dan, > > > > I thought this might have to do with document vs wrapped, however I have > > spec

Re: xfire to cxf upgrade, additional wrapping body elements?

2007-09-12 Thread Eric Miles
WSDL to the client proxy. I think this > can be done via the element inside . In > this case, CXF will look at the WSDL to see how to build the service > model internally. > > Cheers, > - Dan > > Eric Miles wrote: > > Dan, > > > > I thought this might ha

Re: xfire to cxf upgrade, additional wrapping body elements?

2007-09-14 Thread Eric Miles
Resending this, anyone with any idea? On Wed, 2007-09-12 at 08:38 -0400, Eric Miles wrote: > Not sure why, but this email keeps getting bounced by the apache spam > software, so I'm not going to able to attach code nor copy and paste... > > Sorry, my first response wasn't

Re: CXF+ACEGI + Anybody out there?

2007-09-17 Thread Eric Miles
Dan, What sort of solution are you looking for? We are using an Acegi/Spring/CXF implementation at our company where we are using WS-Security and Acegi for authentication and AOP/Acegi for authorization. We could be interested in contributing. Thanks, Eric On Tue, 2007-09-18 at 00:15 +0200, D

RE: contract-first with only xsd

2007-09-18 Thread Eric Miles
ations drive it all? > > -Original Message- > From: Eric Miles [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 18, 2007 10:00 AM > To: cxf-user@incubator.apache.org > Subject: Re: contract-first with only xsd > > Los, > > It is just as easy to define contract f

Re: contract-first with only xsd

2007-09-18 Thread Eric Miles
Los, It is just as easy to define contract first, without having to create a WSDL. For our project, we create our XSDs, generate stubs with JAXB, create our endpoint implementations (we use annotations), and wire it all up with Spring. CXF takes care of the WSDL generation. It really is easy.

Re: contract-first with only xsd

2007-09-18 Thread Eric Miles
Here's just a quick sample. I'm not stating this is the proper or correct way to do anything. However, this is how we are currently using CXF. The CXF guys can provide you with better direction on how you SHOULD be creating your services. They might tell you this approach is a bad approach. Eri

RE: contract-first with only xsd

2007-09-18 Thread Eric Miles
suppose that would be using the JaxMe plugin. > > I see there are other toolkits as well to do this. Anyone care to > comment on those? > > I guess I was wondering if there was a tool to take the type info, the > annotations, etc, all in one shot? > > -----Original Message--

Re: CXF+ACEGI + Anybody out there?

2007-09-18 Thread Eric Miles
XF. Specifically, if I remember correctly from the > solutions that I've seen, the WS-Security integration in particular > takes an extra bit of coding. Would be very happy to include your > contributions. > Cheers, > - Dan > > Eric Miles wrote: > > Dan, > > >

Re: CXF+ACEGI + Anybody out there?

2007-09-18 Thread Eric Miles
Actually, here is the code. Attached is the WSS4J callback class and the CXF interceptor that uses the Acegi authentication manager for authentication. Pretty simple and straight forward. If you look at the callback handler, you can see my comment regarding the WSS4J engine. I do have one conce

Re: Schema-First Development with CXF

2007-09-19 Thread Eric Miles
AIL PROTECTED]> wrote: > > > > Hi Eric, > > > > I'll do some more digging into this today - I lost track of the thread. > > Provided you aren't too frustrated with me/us, I'll see if I can't dig out > > the problem and get things working for

Re: CXF+ACEGI + Anybody out there?

2007-09-21 Thread Eric Miles
We started some discussion the other day about CXF+Acegi out there the other day, but hadn't seen anything since. Any discussion after I sent the source code or my findings with integrating the two? On Tue, 2007-09-18 at 11:18 -0400, Eric Miles wrote: > Actually, here is the code. Att

Re: contract-first with only xsd

2007-09-28 Thread Eric Miles
Dan, I do not do any schema validation so I can't help you on this one. Someone more experienced with JAXB and CXF is going to have to respond. Eric On Thu, 2007-09-27 at 18:40 +0200, Daniel Dienhardt wrote: > Thanks for that nice example, > > I tried to enable schema validation, but it did not

Re: contract-first with only xsd

2007-10-01 Thread Eric Miles
Yeah, that's a bug that is fixed in CXF 2.0.2. Upgrade to that version and you should be good. On Mon, 2007-10-01 at 06:54 -0700, gdprao wrote: > Hi, > > I have tried contract-first XSD approach in my service. I have generated > JAXB mappings from the XSD and used them in my service. The servi

Re: Ensuring CXF soap is behind SSL

2008-02-05 Thread Eric Miles
If you're using Spring and Acegi, you could use a secure channel filter. On Tue, 2008-02-05 at 12:44 -0500, [EMAIL PROTECTED] wrote: > I want to make sure any messages not encrypted with SSL are rejected by the > CXF container. What configuration is neccessary for this? > > I've tried setting t

Services documentation

2008-02-21 Thread Eric Miles
All, I know the WSDL is to service as a documentation tool to identify what services are available and how to connect them, but I'm looking for something a little more that I could hand over to clients. I was looking at a couple of tools that take the WSDL and generate some javadoc like documenta

Re: Services documentation

2008-02-21 Thread Eric Miles
it's way over to CXF? If so, how does one go about doing this? Thanks again, Eric On Thu, 2008-02-21 at 12:22 -0500, Eric Miles wrote: > All, > > I know the WSDL is to service as a documentation tool to identify what > services are available and how to connect them, bu