title: Missing SOAP method parameters in generated WSDL using the default Java 1.6 java.xml.ws API
body: <p>I have implemented a simple webservice that has one method that takes a String and returns a message containing the input parameter.</p>
  
  <pre><code>package com.product.mobile.webapp.soap;
  
  import javax.jws.WebMethod;
  import javax.jws.WebParam;
  import javax.jws.WebService;
  import javax.jws.soap.SOAPBinding;
  import javax.jws.soap.SOAPBinding.ParameterStyle;
  import javax.jws.soap.SOAPBinding.Style;
  import javax.jws.soap.SOAPBinding.Use;
  
  @WebService
  @SOAPBinding(style = Style.DOCUMENT, use = Use.LITERAL, parameterStyle = ParameterStyle.WRAPPED)
  public class WSHello {
  
      @WebMethod
      public String sayMyName(@WebParam(name = "name", mode = Mode.IN) String name) {
          return "Hello, ... " + name;
      }
  
  }
  </code></pre>
  
  <p>I'm publishing this endpoint like that:</p>
  
  <pre><code>WSHello wsHello = new WSHello();
  String wsHelloEndpoint = "http://localhost:8080/hello";
  Endpoint.publish(wsHelloEndpoint, wsHello);
  </code></pre>
  
  <p>When I start the application the following WSDL is created and available under <code>http://localhost:8080/hello?wsdl</code></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.2.4-b01. --&gt;&lt;!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.2.4-b01. --&gt;&lt;definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://soap.webapp.mobile.product.at/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://soap.webapp.mobile.product.at/" name="WSHelloService"&gt;
  &lt;types&gt;
  &lt;xsd:schema&gt;
  &lt;xsd:import namespace="http://soap.webapp.mobile.product.at/" schemaLocation="http://localhost:8080/hello?xsd=1"&gt;&lt;/xsd:import&gt;
  &lt;/xsd:schema&gt;
  &lt;/types&gt;
  &lt;message name="sayMyName"&gt;
  &lt;part name="parameters" element="tns:sayMyName"&gt;&lt;/part&gt;
  &lt;/message&gt;
  &lt;message name="sayMyNameResponse"&gt;
  &lt;part name="parameters" element="tns:sayMyNameResponse"&gt;&lt;/part&gt;
  &lt;/message&gt;
  &lt;portType name="WSHello"&gt;
  &lt;operation name="sayMyName"&gt;
  &lt;input wsam:Action="http://soap.webapp.mobile.product.at/WSHello/sayMyNameRequest" message="tns:sayMyName"&gt;&lt;/input&gt;
  &lt;output wsam:Action="http://soap.webapp.mobile.product.at/WSHello/sayMyNameResponse" message="tns:sayMyNameResponse"&gt;&lt;/output&gt;
  &lt;/operation&gt;
  &lt;/portType&gt;
  &lt;binding name="WSHelloPortBinding" type="tns:WSHello"&gt;
  &lt;soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"&gt;&lt;/soap:binding&gt;
  &lt;operation name="sayMyName"&gt;
  &lt;soap:operation soapAction=""&gt;&lt;/soap:operation&gt;
  &lt;input&gt;
  &lt;soap:body use="literal"&gt;&lt;/soap:body&gt;
  &lt;/input&gt;
  &lt;output&gt;
  &lt;soap:body use="literal"&gt;&lt;/soap:body&gt;
  &lt;/output&gt;
  &lt;/operation&gt;
  &lt;/binding&gt;
  &lt;service name="WSHelloService"&gt;
  &lt;port name="WSHelloPort" binding="tns:WSHelloPortBinding"&gt;
  &lt;soap:address location="http://localhost:8080/hello"&gt;&lt;/soap:address&gt;
  &lt;/port&gt;
  &lt;/service&gt;
  &lt;/definitions&gt;
  </code></pre>
  
  <p>At the client side I can access my webservice and also get access to the method <code>sayMyName(String name)</code></p>
  
  <p>My problem is that I can't provide the name parameter to the function at the client. I'm assuming the generated WSDL is wrong since it does not contain the parameter information.</p>
  
  <p>Can someone explain to me what I'm doing wrong here, why does the WSDL contain no parameter argument?</p>