Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-3699

samples/helloworld-ws-sdo README instructions are wrong and produce incorrect results

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Java-SCA-1.6
    • Java-SCA-1.6.1
    • Java SCA Samples
    • None

    Description

      The helloworld-ws-sdo sample includes a server and a client. These must be run together for the sample to work correctly.

      The README instructions don't mention the server that's part of the sample. Instead, they tell the user to use the helloworld-ws-service sample as the server. This causes problems because the WSDL for helloworld-ws-service isn't compatible with the WSDL for the client in helloworld-ws-sdo. The helloworld-ws-service WSDL expects the person's name to be passesd as a string, and the helloworld-ws-sdo WSDL passes the name as a schema complex type.

      The sample runs despite this mismatch in the WSDLs but the output Isn't correct. The person's name (David Haney) isn't unmarshalled by the server, so instead of returning "Hello David Haney" to the client, the server just returns "Hello".

      If the server in helloworld-ws-sdo is used, the person's name is unmarshalled successfully by the server and the correct string is returned to the client and displayed.

      Attachments

        Activity

          People

            scnash Simon Nash
            scnash Simon Nash
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: