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

                 Key: TUSCANY-3699
                 URL: https://issues.apache.org/jira/browse/TUSCANY-3699
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Samples
    Affects Versions: Java-SCA-1.6
            Reporter: Simon Nash
            Assignee: Simon Nash
             Fix For: Java-SCA-1.6.1


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to