Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
 
<project>
...
  <properties>
    ...
	<cxf-version> 2.0.7</cxf-version>
    ...
  </properties>
...
</project>

Implementing generated ExampleService.java

We must implement our service in java. In our example, it's HelloImpl.java

No Format

package com.mycompany.hello;

import javax.jws.WebService;
import javax.xml.ws.Holder;

import com.mycompany.hello.types.SayHello;
import com.mycompany.hello.types.SayHelloResponse;

@WebService(serviceName = "HelloService", targetNamespace = "http://mycompany.com/hello", endpointInterface = "com.mycompany.hello.Hello")
public class HelloImpl implements Hello {

    public void sayHello(Holder<String> name)
        throws UnknownWordFault
    {
        if (name.value == null || name.value.length() == 0) {
            com.mycompany.hello.types.UnknownWordFault fault = new com.mycompany.hello.types.UnknownWordFault();
            throw new UnknownWordFault(null, fault);
        }
 
      name.value = "Hi " + name;
    }

}

Adding org.apache.cxf plugin

...