Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-559

Tools produces invalid wsdl on overloaded methods

XMLWordPrintable

      In order to declare per operation configuration elements, tools needs to account for the possibility of an overloaded method.

      The current implementation looks like this:

      <service name="TestService"
      endpoint="org.jboss.test.ws.oneway.OneWayTestService"
      includeSchemaInTypes="true"
      restrictSchemaToTargetNS="true">
      <operation>
      <name>oneWay</name>
      <oneway>true</oneway>
      </operation>
      </service>

      A good solution would be to change it to look something like this:

      <service name="TestService"
      endpoint="org.jboss.test.ws.oneway.OneWayTestService"
      includeSchemaInTypes="true"
      restrictSchemaToTargetNS="true">
      <operation name="oneWay1" oneWay="true" />
      <method name="oneWay" params="String String Integer"/>
      </operation>
      <operation name="oneWay2" oneWay="true" />
      <method name="oneWay" params="Integer Integer Integer"/>
      </operation>
      </service>

      Also there should be a reasonable default if no operation config is specified.

              jgreene@redhat.com Jason Greene
              jgreene@redhat.com Jason Greene
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: