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

WSDL To Java - document/literal, IN OUT parameter incorectly used as return type.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jbossws-2.0.0
    • None
    • tools-jaxrpc
    • None

      From the JAX-RPC specification: -

      "If there is a single unlisted output part that is not a component of an inout parameter, then it is the return type. Otherwise, the return type is void."

      A WSDL with the following messages: -

      <message name='PhoneBook_lookup'>
      <part element='ns1:lookup' name='lookup'/>
      </message>
      <message name='PhoneBook_lookupResponse'>
      <part element='ns1:lookup' name='lookup'/>
      </message>

      Causes the following method to be generated in the SEI: -

      public java.lang.String lookup(javax.xml.rpc.holders.StringHolder lookup) throws java.rmi.RemoteException;

      The return type should be void.

              darran.lofthouse@redhat.com Darran Lofthouse
              darran.lofthouse@redhat.com Darran Lofthouse
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: