Web Service response does not match the schema of the returned SDO 
-------------------------------------------------------------------

                 Key: TUSCANY-1557
                 URL: https://issues.apache.org/jira/browse/TUSCANY-1557
             Project: Tuscany
          Issue Type: Bug
            Reporter: Jean-Sebastien Delfino
             Fix For: Java-SCA-Next


To see the problem, monitor the HTTP traffic returned by the itest/wsdlless 
SDOWSDLTestCase.

This test case exercises the AccountService.createAccount and getAccountReport 
methods, both returning SDOs, described by the XSD inlined in that wsdl: 
http://svn.apache.org/repos/asf/incubator/tuscany/java/sca/itest/wsdlless/src/main/resources/wsdl/AccountService.wsdl

The test Web service returns the following XML, incorrect as not compliant with 
the XSD at all (attributes instead of elements, incorrect namespace, references 
to commonj.sdo in the XML).

<?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/";?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
<soapenv:Body>
<_ns_:getAccountReportResponse 
xmlns:_ns_="http://accountdata.services.account.bigbank/xsd";>
<return xmlns="http://accountdata.services.account.bigbank/xsd"; 
xmlns:p0="commonj.sdo" xmlns:p1="http://www.bigbank.com/account"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="p1:AccountReport">
<accountSummaries xmlns="" accountNumber="123" accountType="checking" 
balance="1000.0"/>
<accountSummaries xmlns="" accountNumber="456" accountType="savings" 
balance="2000.0"/>
</return>
</_ns_:getAccountReportResponse>
</soapenv:Body>
</soapenv:Envelope>

and

<?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/";?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
<soapenv:Body>
<_ns_:createAccountResponse 
xmlns:_ns_="http://accountdata.services.account.bigbank/xsd";>
<return xmlns="http://accountdata.services.account.bigbank/xsd"; 
xmlns:p0="commonj.sdo" xmlns:p1="http://www.bigbank.com/account"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="p1:CustomerProfileData">
<firstName xmlns="">petra</firstName>
<lastName xmlns="">A</lastName>
<address xmlns="">home</address>
<email xmlns="">[EMAIL PROTECTED]</email>
<loginID xmlns="">petra</loginID>
<password xmlns="">ant</password>
<id xmlns="">1</id>
</return>
</_ns_:createAccountResponse>
</soapenv:Body>
</soapenv:Envelope>


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to