You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Chinthana Danapala (JIRA)" <ax...@ws.apache.org> on 2005/05/18 05:52:25 UTC

[jira] Updated: (AXISCPP-652) NilValuesTest failing

     [ http://issues.apache.org/jira/browse/AXISCPP-652?page=all ]

Chinthana Danapala updated AXISCPP-652:
---------------------------------------

    Attachment: BeanParamWriter.java

This problem occurs due to the changes i have made for support "all" construct. I have made the corrections and now seem to be fine. I have attached the BeanParamWriter.java file for the document type.
Now with this changes I have test the NilValuesTest and soap messages are follows.

sending...............

<?xml version='1.0' encoding='utf-8' ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<ns1:myOperation xmlns:ns1="http://complextype.test.apache.org">
<ns1:aType><ns1:field1 xsi:nil="true"></ns1:field1>
<ns1:field2 xsi:nil="true"></ns1:field2>
<ns1:field3 xsi:nil="true"></ns1:field3>
</ns1:aType>
</ns1:myOperation>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

recieved...............

<?xml version='1.0' encoding='utf-8' ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<ns1:myOperationResponse xmlns:ns1="http://complextype.test.apache.org">
<result>true</result>
</ns1:myOperationResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>



> NilValuesTest failing
> ---------------------
>
>          Key: AXISCPP-652
>          URL: http://issues.apache.org/jira/browse/AXISCPP-652
>      Project: Axis-C++
>         Type: Bug
>     Reporter: Adrian Dick
>     Assignee: Dushshantha Chandradasa
>  Attachments: BeanParamWriter.java
>
> The NilValuesTest has just started failing in the automated daily test run.
> The nillable entries are no longer present in the SOAP request:
> --snip--
>  <SOAP-ENV:Body>
>  <ns1:myOperation xmlns:ns1="http://complextype.test.apache.org">
>  <ns1:aType></ns1:aType>
>  </ns1:myOperation>
> --snip--
> For the purposes of this testcase the correct message must contain these element, with the attribute xsi:nil="true", as shown below:
> --snip--
>  <SOAP-ENV:Body>
>  <ns1:myOperation xmlns:ns1="http://complextype.test.apache.org">
>  <ns1:aType><ns1:field1 xsi:nil="true"></ns1:field1>
>  <ns1:field2 xsi:nil="true"></ns1:field2>
>  <ns1:field3 xsi:nil="true"></ns1:field3>
>  </ns1:aType>
>  </ns1:myOperation>
> --snip--
> Looking at the CVS change history between this test passing and failing, I have identified the following file changes in WSDL2Ws
> - taking a quick look it isn't clear to me if these are the direct cause of the problem, or whether the generated stubs are now using a slightly different API containing the problem.
> ws-axis/c/src/wsdl/org/apache/axis/wsdl/symbolTable/CElementDecl.java
> ws-axis/c/src/wsdl/org/apache/axis/wsdl/symbolTable/CSchemaUtils.java
> ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/BeanParamWriter.java
> ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/info/AttributeInfo.java
> ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/info/ElementInfo.java
> ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/ParamWriter.java
> ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WSDL2Ws.java

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira