Hello.  I am trying to use the service create method and am getting the
following compile error:

 

compile:

    [javac] Compiling 1 source file to
C:\IONA\Fuse20\cxf20\samples\hello_world\

build\classes

    [javac]
C:\IONA\Fuse20\cxf20\samples\hello_world\src\demo\hw\client\Client.j

ava:58: incompatible types

    [javac] found   : javax.xml.ws.Service

    [javac] required: org.apache.hello_world_soap_http.SOAPService

    [javac]             SOAPService ss = Service.create(SERVICE_NAME);

 

I am not sure what is wrong.  Here is the snippet of code:

 

public final class Client {

 

   private static final QName SERVICE_NAME 

        = new QName("http://apache.org/hello_world_soap_http";,
"SOAPService");

    private Client() {

    } 

    public static void main(String args[]) throws Exception {

      //       System.out.println("Enter a service to use");

                  SOAPService ss = Service.create(SERVICE_NAME);

.............

 

It is with FUSE 2.0.  I am rebuilding the hello world demo client
without the WSDL.  Any ideas?

 

THANK YOU.

************************************

Michelle L. Davis

Reply via email to