Re: WSDL service-name

2007-07-13 Thread Dan Diephouse
I'm pretty sure that per the JAX-WS spec, the serviceName goes on the impl class regardless. So I think you still need @WebService on the impl and on the interface. Does that answer your question? - Dan On 7/13/07, Benson Margulies <[EMAIL PROTECTED]> wrote: Out of curiosity, if I wanted the p

Re: Trouble with creating RESTful Service deployed to Jetty - need help!

2007-07-13 Thread Jason Mihalick
I just tried the 2.1-incubator-SNAPSHOT and I got this instead of the NPE: "You can not map a URI parameter to a simple type when in unwrapped mode!" The URL I was trying to hit was: http://localhost:8080/iat-services/client-service/clients which works fine in wrapped mode. Which brings me to

RE: Unable to find resolve annotations

2007-07-13 Thread Jiang, Ning (Willem)
Sorry, I pasted the wrong URL. The pom.xml is hosted on the apache sit. The workable url is : http://svn.apache.org/repos/asf/incubator/cxf/trunk/rt/bindings/http/pom.xml Willem. -Original Message- From: Brad O'Hearne [mailto:[EMAIL PROTECTED] Sent: Sat 7/14/2007 0:09 To: cxf-user@incub

RE: Getting the HTTP server off the bus

2007-07-13 Thread Jiang, Ning (Willem)
Hi Benson, It's my fault that I missed something about getting the destination from the transport factory. It is JettyHTTPTransportFactory and not JettyHttpTransportFactory The code should be Bus bus = BusFactory.getDefaultBus(); DestinationFactoryManager dfm = bus.getExtension(Destination

customizing the HTTP transport factory

2007-07-13 Thread Benson Margulies
I set out to replace JettyHTTPTransportFactory with a slightly modified version. So, I wrote the code below. The effect is an NPE when my factory object is asked for its transportIds, of which it has none. When I don't try to set this up, the default transport factory does not get asked for its tr

RE: Getting the HTTP server off the bus

2007-07-13 Thread Benson Margulies
Before I finish the story I started, I see that I could get what I want around here by making a mutant copy of JettyHTTPServerEngine and using it by imposing my own subclass of JettyHTTPServerEngineFactory. So I'm looking around to see where I can configure THAT trick. In XFire, I made a variatio

RE: Getting the HTTP server off the bus

2007-07-13 Thread Benson Margulies
Willem, The recipe in 2.0 looks like: Bus bus = BusFactory.getDefaultBus(); DestinationFactoryManager dfm = bus.getExtension(DestinationFactoryManager.class); JettyHTTPTransportFactory df = (JettyHTTPTransportFactory) dfm.getDestinationFactory("http://cxf.apache.org/transports/ht

Re: Exception loading CXF service in Spring with HTTP Binding

2007-07-13 Thread Brad O'Hearne
I'm appealing to anyone out there who can please help me with this problem. All I'm trying to do is standard configuration of a single service, with a single method, using Http binding, using Spring. If I cannot get this problem resolved soon, as much as I do not want to, I'm going to have to p

Exception loading CXF service in Spring with HTTP Binding

2007-07-13 Thread Brad O'Hearne
I am loading a simple CXF service using Spring, and an HTTP Binding. It is throwing an Exception, which unfortunately is very cryptic, gives me no idea of what the problem is, or how to fix it, and there's not any solution I can find in the documentation or by searching in Google. Does anyone h

RE: WSDL service-name

2007-07-13 Thread Benson Margulies
Out of curiosity, if I wanted the primary source of annotations to be the interface, then the cure would be to put endpointInterface on the interface? > -Original Message- > From: Dan Diephouse [mailto:[EMAIL PROTECTED] > Sent: Friday, July 13, 2007 5:46 PM > To: cxf-user@incubator.apache.

Re: How to configure HTTP-Binding with Spring

2007-07-13 Thread Brad O'Hearne
Thanks for the response. After implementing the code below and working out the associated dependencies, I get the following error, which I find one reference to on Google, but no answers -- Help! The stack trace is below: ERROR [main] (ContextLoader.java:203) - Context initialization failed or

Re: WSDL service-name

2007-07-13 Thread Dan Diephouse
If you take away the serviceFactory.setServiceclass() line I think it'll fix your problem. Effectively you're telling CXF not to look at the @WebService annotation on the NameIndexServiceImpl, which I don't think is what you want to do :-). CXF will automatically introspect the service bean and fi

Re: javascript clients?

2007-07-13 Thread Dan Diephouse
Yeah, our JS stuff only runs in Rhino. I started in on a pure browser solution once, but it fell by the wayside. I would love to see someone actually do such a thing. The CXF code be used as a basis for a generator I would think. We'd definitely welcome contributions in this area ;-) Cheers, - D

Re: CXF and MessageBinding

2007-07-13 Thread Dan Diephouse
Hmmm that does seem to be something that isn't ported yet. I'll try to hack something up though - it should be simple enough that you could even drop it into your project with 2.0. Need to catch a plane in a bit, but maybe I'll have something to report back with after that :-) - Dan On 7/13/07, Z

Re: Problem with CXFServlet - migrating from xfire to CXF

2007-07-13 Thread Scott Archer
It does have it's own application context, but I'm importing the CXF bean definitions as you pasted them below. (I followed the how to on the CXF website). Thanks, Scott On 7/13/07, Dan Diephouse <[EMAIL PROTECTED]> wrote: Hi Scott, I'm going to take a stab in the dark here... Does your appli

Re: How to configure HTTP-Binding with Spring

2007-07-13 Thread Dan Diephouse
This should definitely make its way in the docs, but here is an example from the mailing list earlier: http://apache.org/cxf/binding/http";> Hope that helps, - Dan On 7/13/07, Brad O'Hearne <[EMAIL PROTECTED]> wrote: How do I configure the RES

Re: Exposing methods

2007-07-13 Thread Dan Diephouse
I went ahead and created a JIRA issue for this: https://issues.apache.org/jira/browse/CXF-789 - Dan On 7/13/07, Liu, Jervis <[EMAIL PROTECTED]> wrote: Hi, I actually believe this is a bug in CXF. What happened in CXF is that we first reflect impl class, all methods defined in impl class becom

How to configure HTTP-Binding with Spring

2007-07-13 Thread Brad O'Hearne
How do I configure the RESTful HTTP-binding with Spring, as opposed to the SOAP binding given in the documentation? Thanks, Brad

Re: spring injection with jaxws:endpoint

2007-07-13 Thread Dan Diephouse
I believe this is what you want: Hope that helps :-) - Dan On 7/13/07, Marc Preddie <[EMAIL PROTECTED]> wrote: Hi, I have exposed a web service using cxf using the systex below, and it works fine What I then did was to actully make the service do something (access a database t

Using CXF

2007-07-13 Thread Jacob Marcus
I am an XFire user planning to evaluate CXF for my project. What is the maven dependency for CXF to be used? While using XFire, I had the following dependencies. org.codehaus.xfire xfire-jaxb2 1.2.5 org.codehaus.xfire xfire-s

RE: Getting the HTTP server off the bus

2007-07-13 Thread Benson Margulies
Willem, In 2.0, there is no JettyHttpTransportFactory. There is a JettyHTTPTransportFactory. But it has no getEngine(). ? > -Original Message- > From: Willem Jiang [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 11, 2007 10:35 PM > To: cxf-user@incubator.apache.org > Subject: Re: Get

Need to eliminate use of SOAP for Http-REST

2007-07-13 Thread Brad O'Hearne
Hello, I have followed the instructions in the documentation for RESTful services to with the intention of creating a pure Http-XML service without SOAP. However, when I hit one of my service URL's from a browser (without parameters, just to see what would happen) I get the following:

Re : WSDL generate using url ../EchoService?wsdl

2007-07-13 Thread kurdy_ch-forums
Hi, It work using like: http://localhost:8080/ecm_syn/services/EchoService?wsdl But I still have the question : Is it a good approach to generate wsdl using an url or using tool java2wsdl is better ? Thanks for your advice Willy - Message d'origine De : "[EMAIL PROTECTED]" <[EM

WSDL generate using url ../EchoService?wsdl

2007-07-13 Thread Reinhardt Willy
Hi, I am using Spring (2.0) and I tried XFire and cxf. With xFire I could get wsdl using an url like: http://localhost:8080/ecm_syn/services/EchoService?wsdl I could not find in documentation how to do the same behaviour with cxf. another question is it a good approach to generate wsdl like th

WSDL generate using url ../EchoService?wsdl

2007-07-13 Thread kurdy_ch-forums
Hi, I am using Spring (2.0) and I tried XFire and cxf. With xFire I could get wsdl using an url like: http://localhost:8080/ecm_syn/services/EchoService?wsdl I could not find in documentation how to do the same behaviour with cxf. another question: Is it a good approach to generate wsdl like t

Re: Trouble with creating RESTful Service deployed to Jetty - need help!

2007-07-13 Thread Dan Diephouse
Bizarre... If you had a moment, I improved that line of code post 2.0 and included some better error reporting. Any chance you'd be willing to try out a snapshot quick and let us know if it works correctly? http://incubator.apache.org/cxf/download.html Otherwise I'll take a stab at figuring out w

spring injection with jaxws:endpoint

2007-07-13 Thread Marc Preddie
Hi, I have exposed a web service using cxf using the systex below, and it works fine What I then did was to actully make the service do something (access a database through hibernate), so I wanted to inject my SpringDAO into my service. This is where I get lost I tried the systax belo

Re: Problem with CXFServlet - migrating from xfire to CXF

2007-07-13 Thread Dan Diephouse
Hi Scott, I'm going to take a stab in the dark here... Does your application also have its own application context xml files? If so I think the problem could be that you haven't imported the necessary CXF bean definitions: Let me know if that helps. - Dan On 7/13/0

Re: Unable to find resolve annotations

2007-07-13 Thread Brad O'Hearne
Willem, Thanks for the reply -- unfortunately, I couldn't find what you were referring to in the English text on this site, and I cannot read Chinese characters. :-) Brad Willem Jiang wrote: You can take the http-binding pom.xml as a example: http://willem.bokeland.com/svn.apache.org/repos

WSDL service-name

2007-07-13 Thread Benson Margulies
This annotation is on the implementation class (named NameIndexServiceImpl) @WebService(serviceName = "NameIndex", endpointInterface = "com.basistech.rnm.index.ws.NameIndexService", targetNamespace="urn:com.basistech.rnm.index.ws") This annotation is on the interface (named NameIndexService) @We

Problem with CXFServlet - migrating from xfire to CXF

2007-07-13 Thread Scott Archer
I'm trying to migrate from xfire to CXF. When my application starts up I get the following Exception. I checked the CXFServlet at line 148 and It looks like the problem is actually on line 147. ResourceManager resourceManager = bus.getExtension(ResourceManager.class); This call is returning nul

RE: javascript clients?

2007-07-13 Thread Benson Margulies
We came up with our own attempt at wsdl2js that generates clients that can be run in browsers, and were hoping to retire it. > -Original Message- > From: Jeff Zhang [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 12, 2007 10:13 PM > To: cxf-user@incubator.apache.org > Subject: Re: javascr

Re: http://schemas.xmlsoap.org/soap/http

2007-07-13 Thread Freeman Fang
Hi Marc, If you don't want to use webapp/web.xml, you can start a standlone cxf server with spring context instead of deploying cxf service into servlet container. Cheers Freeman Marc Baumgartner wrote: Hi Freeman, I understand your solution, but is it possible to do it without using the

CXF and MessageBinding

2007-07-13 Thread Zdeněk Vráblík
Hi all, I was reading the feature list and I can't find MessageBinding. Does cxf support MessageBinding? http://xfire.codehaus.org/Message+Binding Thanks. Regards, Zdenek

Re: Generated client to connect to a https ws

2007-07-13 Thread Willem Jiang
Hi, Could you try the trunk version of CXF, I test the below configuration in the trunk, configuredConduit.getTlsClientParameters() is not null and it just is a size of zero list. name="{http://www.google.com/api/adsense/v2}AccountServiceService.http-conduit";> Cheers, Willem. Pirol

Re: Maven java2wsdl plugin error with jaxws

2007-07-13 Thread Cameron Jones
Hi James, That's all good, shouldn't have a problem doing a build. To fix problems with cyclic dependencies i think you can use in the pom dependencies to stop maven from drilling into them. This is something i'd really like to see throughout cxf to reduce the inherent dependencies from the othe

Re:

2007-07-13 Thread Willem Jiang
Just answer the annotations question, CXF has two front-end, one is simple-front-end which do not consume the WebService related annotation , the other is Jaxws-front-end which looks up the annotation. You can specify to use different front-end in you pom.xml :) Cheers, Willem Marc Baumga

Re:

2007-07-13 Thread Freeman Fang
Hi Marc, Your cxf-version is 2.0-incubator-SNAPSHOT, it's a bit out of date, please use 2.1-incubator-SNAPSHOT, Cheers Freeman Marc Baumgartner wrote: Hi Freeman, I am working with maven and I can't find a repository with 2.1 libs. My pom contains these libs: junit

Re: Re:

2007-07-13 Thread Marc Baumgartner
Hi Freeman, I am working with maven and I can't find a repository with 2.1 libs. My pom contains these libs: junit junit 4.1 test log4j

Re:

2007-07-13 Thread Freeman Fang
Hi Marc, The redunadant declaration of address and implementing class is unnecessary, actually the context could be http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:jaxws="http://cxf.apache.org/jaxws"; xsi:schemaLocat

Re: http://schemas.xmlsoap.org/soap/http

2007-07-13 Thread Marc Baumgartner
Hi Freeman, I understand your solution, but is it possible to do it without using the webapp folder / web.xml? I would like to define the hole behaviour of the server in the test itself without a reference other files. Regards, Marc Original-Nachricht Datum: Fri, 13 Jul

Re: Re:

2007-07-13 Thread Marc Baumgartner
Hi Freeman, is it possible to avoid the redunadant declaration of the adress and implementing class? With your example configuration I have to define these parameters twice. Do I really have to define every web service by its own with implementation class and url? Is it not possible that cxf g

Re:

2007-07-13 Thread Freeman Fang
Hi Marc, You can do it like http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:jaxws="http://cxf.apache.org/jaxws"; xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/sche

Re: http://schemas.xmlsoap.org/soap/http

2007-07-13 Thread Freeman Fang
Hi Marc, I believe you can do it similar in CXF. For client side, you can do it like ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[] {"demo/spring/client/client-beans.xml"}); HelloWorld client = (HelloWorld)context.getBean("clien

RE: Generated client to connect to a https ws

2007-07-13 Thread Pirola Davide
Hi Dan & Willem, Thanks for your support! The problem I have is in this peace of code (AbstractHTTPTransportFactory): /** * This static call creates a connection factory based on * the existence of the SSL (TLS) client side configuration. */ static HttpURLConnectionFactory

CORBA-SOAB dynamic bridge using Yoko and CXF

2007-07-13 Thread Lukas Zapletal
Hello, I need to develop a CORBA-SOAP bridge that will integrate into JBoss and dynamically translate CORBA calls to SOAP/HTTP calls and vice versa. I am investigating if I can implement this with Apache CXF and Yoko. My basic idea is simple: JACORB/VISIBROKER <-> YOKO BINDING <-> CXF <-> SOAP/H

RE: Exposing methods

2007-07-13 Thread Liu, Jervis
Hi, I actually believe this is a bug in CXF. What happened in CXF is that we first reflect impl class, all methods defined in impl class become potential candidates for publishing. Then we check interface, if the method under consideration does not exist in the interface, we will fall back to th

Re: http://schemas.xmlsoap.org/soap/http

2007-07-13 Thread Marc Baumgartner
Hi Freeman, thank you for your response. I want to do something like this with xfire: @BeforeTest public void beforeTest(){ serverFactory = new org.springframework.context.support.ClassPathXmlApplicationContext( "classpath:" + SERVER_CONTEXT); cl