title: What to put in default wsdl2java implementation?
body: <p>I'm trying to implement a SOAP Web Service that generates a SOAP message for managing Address Book entries. The SOAP API is from Blackboard ConnectTxt and provides a single service -&quot;addressbook&quot; to maintain address book entries. This service permits developers to request additions, updates and deletes to an address book by creating an appropriate SOAP message.</p>
  <p>Using Apache CXF 2.6.1 I've generated objects from their <a href="http://www.txttools.co.uk/connectors/soap/addressbook/txttoolsAddressbook.wsdl" rel="nofollow noreferrer">WSDL</a> and a default impl (below)</p>
  <pre><code>@javax.jws.WebService(
                        serviceName = &quot;TxttoolsAddressbookServiceService&quot;,
                        portName = &quot;TxttoolsAddressbookServicePort&quot;,
                        targetNamespace = &quot;http://www.txttools.co.uk/connectors/soap/addressbook/definitions&quot;,
                        wsdlLocation = &quot;file:/C:/Users/me/Workspaces/work/bbtxttools/src/main/resources/wsdl/txttoolsAddressbook.wsdl&quot;,
                        endpointInterface = &quot;uk.co.txttools.connectors.soap.addressbook.definitions.TxttoolsAddressbookService&quot;)
                        
  public class TxttoolsAddressbookServiceImpl implements TxttoolsAddressbookService {
  
      private static final Logger LOG = Logger.getLogger(TxttoolsAddressbookServiceImpl.class.getName());
  
      /* (non-Javadoc)
       * @see uk.co.txttools.connectors.soap.addressbook.definitions.TxttoolsAddressbookService#addressbook(uk.co.txttools.connectors.soap.addressbook.schemas.AddressbookRequest  addressbookRequest )*
       */
      public uk.co.txttools.connectors.soap.addressbook.schemas.AddressbookResponse addressbook(uk.co.txttools.connectors.soap.addressbook.schemas.AddressbookRequest addressbookRequest) { 
          LOG.info(&quot;Executing operation addressbook&quot;);
          System.out.println(addressbookRequest);
          try {
              uk.co.txttools.connectors.soap.addressbook.schemas.AddressbookResponse _return = null;
              return _return;
          } catch (java.lang.Exception ex) {
              ex.printStackTrace();
              throw new RuntimeException(ex);
          }
      }
  
  }
  </code></pre>
  <p>The addressbook method simply returns an empty response. I'm baffled as to what should go in here. I would have expected to code some DAOs to provide data but the method appears to do nothing. I'm obviously missing a trick somewhere. The AddressBookService is included:</p>
  <pre><code>    @WebService(targetNamespace = &quot;http://www.txttools.co.uk/connectors/soap/addressbook/definitions&quot;, name = &quot;TxttoolsAddressbookService&quot;)
  @XmlSeeAlso({uk.co.txttools.connectors.soap.addressbook.schemas.ObjectFactory.class})
  @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
  public interface TxttoolsAddressbookService {
  
      @WebResult(name = &quot;AddressbookResponse&quot;, targetNamespace = &quot;http://www.txttools.co.uk/connectors/soap/addressbook/schemas&quot;, partName = &quot;AddressbookResponse&quot;)
      @WebMethod(operationName = &quot;Addressbook&quot;)
      public uk.co.txttools.connectors.soap.addressbook.schemas.AddressbookResponse addressbook(
          @WebParam(partName = &quot;AddressbookRequest&quot;, name = &quot;AddressbookRequest&quot;, targetNamespace = &quot;http://www.txttools.co.uk/connectors/soap/addressbook/schemas&quot;)
          uk.co.txttools.connectors.soap.addressbook.schemas.AddressbookRequest addressbookRequest
      );
  }
  </code></pre>
  <p>Any suggestions would be appreciated.</p>
  <p>Andrew</p>