[ 
https://issues.apache.org/jira/browse/TUSCANY-1557?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jean-Sebastien Delfino reopened TUSCANY-1557:
---------------------------------------------


Reopening as this JIRAs give more information about the problem and how to 
reproduce it. I'm happy to link them to the umbrella TUSCANY-1544 issue.

I don't agree with postponing the resolution of the JIRA to after 0.99, as 
complying with a known XMLschema is the point of using a Web Service binding.

With respect to your comment that the current test case does not fail, that's 
because it does not check that the data flowing on the wire is correct. The 
test case is insufficient and should be changed to perform that checking. I 
described in the JIRA how to see that there is actually a problem.

> 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
>          Components: Java SCA Axis Binding Extension
>            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