RPC encoded SOAP messages are not supported by Tuscany
------------------------------------------------------

                 Key: TUSCANY-3416
                 URL: https://issues.apache.org/jira/browse/TUSCANY-3416
             Project: Tuscany
          Issue Type: Improvement
    Affects Versions: Java-SCA-2.0-M4
         Environment: SOAP Client v1.6.3.1 on Mac OS X
            Reporter: Alexander Blotny


Using the Soap Client the included calculator sample does not work correctly. 
(using jax-ws everything works)
The problem is that the input parameters are everytime zero or null (in case of 
Strings).
So the calculator always calculates with two zero parameters.

I heard that Tuscany does not support rpc/encoded requests. Maybe it would be 
useful to return an error message instead of using zero or null parameters for 
the service.

Following are the wireshark traces for executing the Calculator example.
In both cases a multiply operation with the parameters 1 and 1 are executed. 
The Soap Client returns 0 as result and the JAX WS Client returns the correct 
result 1.

1. Soap Client

POST /CalculatorService HTTP/1.1
User-Agent: Mac OS X; WebServicesCore (352)
Host: 172.16.83.1
Content-Type: text/xml
Soapaction: 
Content-Length: 615
Connection: close

<?xml version="1.0" encoding="utf-8"?>
  <SOAP-ENV:Envelope
    xmlns:xsd="http://www.w3.org/2001/XMLSchema";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
    SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";>
      <SOAP-ENV:Body>
        <multiply xmlns="http://dosgi.calculator/";>
          <arg0 xsi:type="xsd:double">1</arg0>
          <arg1 xsi:type="xsd:double">1</arg1>
        </multiply>
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Connection: close

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Body><ns2:multiplyResponse
 
xmlns:ns2="http://dosgi.calculator/";><return>0.0</return></ns2:multiplyResponse></soapenv:Body></soapenv:Envelope>

2. JAX WS Client

POST /CalculatorService HTTP/1.1
Content-type: text/xml;charset="utf-8"
Soapaction: ""
Accept: text/xml, multipart/related, text/html, image/gif, image/jpeg, *; q=.2, 
*/*; q=.2
User-Agent: JAX-WS RI 2.1.6 in JDK 6
Host: 172.16.83.1:8086
Connection: keep-alive
Content-Length: 214

<?xml version="1.0" ?><S:Envelope 
xmlns:S="http://schemas.xmlsoap.org/soap/envelope/";><S:Body><ns2:multiply 
xmlns:ns2="http://dosgi.calculator/";><arg0>1.0</arg0><arg1>1.0</arg1></ns2:multiply></S:Body></S:Envelope>HTTP/1.1
 200 OK

Content-Type: text/xml; charset=utf-8
Transfer-Encoding: chunked

108
<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Body><ns2:multiplyResponse
 
xmlns:ns2="http://dosgi.calculator/";><return>1.0</return></ns2:multiplyResponse></soapenv:Body></soapenv:Envelope>
0


-- 
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