You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by tog <gu...@gmail.com> on 2007/05/09 21:35:04 UTC
Aegis binding: What am I doing wrong ?
I have the small following test:
package com.acme.test;
public class serviceClass {
String sayHello(String name){
return "Hello " + name;
}
}
with:
package com.acme.test;
import org.apache.cxf.aegis.databinding.AegisDatabinding;
import org.apache.cxf.frontend.ServerFactoryBean;
import org.apache.cxf.aegis.databinding.AegisServiceConfiguration;
public class server {
public static void main(String[] args) {
ServerFactoryBean sf = new ServerFactoryBean();
sf.setServiceClass(serviceClass.class);
sf.setAddress("http://localhost:8080/service");
sf.getServiceFactory().setDataBinding(new AegisDatabinding());
sf.getServiceFactory().getServiceConfigurations().add(0, new
AegisServiceConfiguration());
sf.create();
}
}
This looks quite correct with respect to the cxf users' guide. But the wsdl
I got looks quite weierd.
I am using cxf-2.0-RC ! Does anyone have an idea of what I am doing wrong ?
Cheers
Guillaume
Re: Aegis binding: What am I doing wrong ?
Posted by tog <gu...@gmail.com>.
done
https://issues.apache.org/jira/browse/CXF-648
On 5/11/07, Dan Diephouse <da...@envoisolutions.com> wrote:
>
> Anything particularly weird about it? Feel free to create a JIRA issue
> with
> the WSDl and I'll take a look...
> - Dan
>
> On 5/9/07, tog <gu...@gmail.com> wrote:
> >
> > I have the small following test:
> >
> > package com.acme.test;
> > public class serviceClass {
> > String sayHello(String name){
> > return "Hello " + name;
> > }
> > }
> >
> > with:
> >
> > package com.acme.test;
> > import org.apache.cxf.aegis.databinding.AegisDatabinding;
> > import org.apache.cxf.frontend.ServerFactoryBean;
> > import org.apache.cxf.aegis.databinding.AegisServiceConfiguration;
> > public class server {
> > public static void main(String[] args) {
> > ServerFactoryBean sf = new ServerFactoryBean();
> > sf.setServiceClass(serviceClass.class);
> > sf.setAddress("http://localhost:8080/service");
> > sf.getServiceFactory().setDataBinding(new AegisDatabinding());
> > sf.getServiceFactory().getServiceConfigurations().add(0, new
> > AegisServiceConfiguration());
> > sf.create();
> > }
> > }
> >
> > This looks quite correct with respect to the cxf users' guide. But the
> > wsdl
> > I got looks quite weierd.
> > I am using cxf-2.0-RC ! Does anyone have an idea of what I am doing
> wrong
> > ?
> >
> > Cheers
> > Guillaume
> >
>
>
>
> --
> Dan Diephouse
> Envoi Solutions
> http://envoisolutions.com | http://netzooid.com/blog
>
Re: Aegis binding: What am I doing wrong ?
Posted by Dan Diephouse <da...@envoisolutions.com>.
Anything particularly weird about it? Feel free to create a JIRA issue with
the WSDl and I'll take a look...
- Dan
On 5/9/07, tog <gu...@gmail.com> wrote:
>
> I have the small following test:
>
> package com.acme.test;
> public class serviceClass {
> String sayHello(String name){
> return "Hello " + name;
> }
> }
>
> with:
>
> package com.acme.test;
> import org.apache.cxf.aegis.databinding.AegisDatabinding;
> import org.apache.cxf.frontend.ServerFactoryBean;
> import org.apache.cxf.aegis.databinding.AegisServiceConfiguration;
> public class server {
> public static void main(String[] args) {
> ServerFactoryBean sf = new ServerFactoryBean();
> sf.setServiceClass(serviceClass.class);
> sf.setAddress("http://localhost:8080/service");
> sf.getServiceFactory().setDataBinding(new AegisDatabinding());
> sf.getServiceFactory().getServiceConfigurations().add(0, new
> AegisServiceConfiguration());
> sf.create();
> }
> }
>
> This looks quite correct with respect to the cxf users' guide. But the
> wsdl
> I got looks quite weierd.
> I am using cxf-2.0-RC ! Does anyone have an idea of what I am doing wrong
> ?
>
> Cheers
> Guillaume
>
--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog