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 "Dushshantha Chandradasa (JIRA)" <ax...@ws.apache.org> on 2005/04/18 11:43:47 UTC

[jira] Created: (AXISCPP-623) Support for the construct any

Support for the construct any
-----------------------------

         Key: AXISCPP-623
         URL: http://issues.apache.org/jira/browse/AXISCPP-623
     Project: Axis-C++
        Type: Bug
  Components: Basic Architecture  
    Versions: 1.6 Alpha    
 Environment: All
    Reporter: Dushshantha Chandradasa


Axis C++ doesn't support the Construct Any.

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


[jira] Issue Comment Edited: (AXISCPP-623) Support for the WSDL construct "all"

Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/AXISCPP-623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12615410#action_12615410 ] 

nadiramra edited comment on AXISCPP-623 at 7/21/08 1:40 PM:
-------------------------------------------------------------

The solution was to put all-group processing in a loop.  

In addition, checks are made to ensure that there is one and only one element from the all group.  If not, an exception is thrown.

In addition, at the end of the processing, an attempt is made to verify that all elements in the all group have been processed (except for nillable  or optional elements).   

Changes have been put under SVN revision 678552
(http://svn.apache.org/viewvc?view=rev&revision=678552). This revision also included changes to fix AXISCPP-888.

      was (Author: nadiramra):
    The solution was to put all-group processing in a loop.  

In addition, checks are made to ensure that there is one and only one element from the all group.  If not, an exception is thrown.

In addition, at the end of the processing, an attempt is made to verify that all elements in the all group have been processed (except for nillable  or optional elements).   

Changes have been put under SVN revision 678552
(http://svn.apache.org/viewvc?view=rev&revision=678552).
  
> Support for the WSDL construct "all"
> ------------------------------------
>
>                 Key: AXISCPP-623
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-623
>             Project: Axis-C++
>          Issue Type: New Feature
>          Components: WSDL processing - RPC
>    Affects Versions: 1.5 Final
>         Environment: All
>            Reporter: Dushshantha Chandradasa
>            Assignee: nadir amra
>             Fix For: current (nightly)
>
>         Attachments: AllConstructTest.wsdl
>
>
> Axis C++ doesn't support the WSDL construct "all".

-- 
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Resolved: (AXISCPP-623) Support for the WSDL construct "all"

Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/AXISCPP-623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

nadir amra resolved AXISCPP-623.
--------------------------------

       Resolution: Fixed
    Fix Version/s: current (nightly)

The solution was to put all-group processing in a loop.  

In addition, checks are made to ensure that there is one and only one element from the all group.  If not, an exception is thrown.

In addition, at the end of the processing, an attempt is made to verify that all elements in the all group have been processed (except for nillable  or optional elements).   

Changes have been put under SVN revision 678552
(http://svn.apache.org/viewvc?view=rev&revision=678552).

> Support for the WSDL construct "all"
> ------------------------------------
>
>                 Key: AXISCPP-623
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-623
>             Project: Axis-C++
>          Issue Type: New Feature
>          Components: WSDL processing - RPC
>    Affects Versions: 1.5 Final
>         Environment: All
>            Reporter: Dushshantha Chandradasa
>            Assignee: nadir amra
>             Fix For: current (nightly)
>
>         Attachments: AllConstructTest.wsdl
>
>
> Axis C++ doesn't support the WSDL construct "all".

-- 
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Updated: (AXISCPP-623) Support for the WSDL construct "all"

Posted by "Chinthana Danapala (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-623?page=all ]

Chinthana Danapala updated AXISCPP-623:
---------------------------------------

    Attachment: AllConstructTest.wsdl

this WSDL can use to test for the construct "all". This is a document type WSDL file.

> Support for the WSDL construct "all"
> ------------------------------------
>
>          Key: AXISCPP-623
>          URL: http://issues.apache.org/jira/browse/AXISCPP-623
>      Project: Axis-C++
>         Type: New Feature
>   Components: WSDL processing
>     Versions: 1.5 Final
>  Environment: All
>     Reporter: Dushshantha Chandradasa
>  Attachments: AllConstructTest.wsdl
>
> Axis C++ doesn't support the WSDL construct "all".

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


[jira] Closed: (AXISCPP-623) Support for the WSDL construct "all"

Posted by "Dushshantha Chandradasa (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-623?page=all ]
     
Dushshantha Chandradasa closed AXISCPP-623:
-------------------------------------------


Support for WSDL construct 'all' implemented and four tests are in place. Thanks Chinthana for fixing this.

> Support for the WSDL construct "all"
> ------------------------------------
>
>          Key: AXISCPP-623
>          URL: http://issues.apache.org/jira/browse/AXISCPP-623
>      Project: Axis-C++
>         Type: New Feature
>   Components: WSDL processing - RPC
>     Versions: 1.5 Final
>  Environment: All
>     Reporter: Dushshantha Chandradasa
>     Assignee: Dushshantha Chandradasa
>  Attachments: AllConstructTest.wsdl
>
> Axis C++ doesn't support the WSDL construct "all".

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


[jira] Commented: (AXISCPP-623) Support for the WSDL construct "all"

Posted by "Chinthana Danapala (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-623?page=comments#action_63752 ]
     
Chinthana Danapala commented on AXISCPP-623:
--------------------------------------------

There are two kinds of changes that we have to looking in to this.

    1. WSDL tool changes
    2. DeSerializer changes.

1.) WSDL tool

   1.1 How to decide if we have an "all" construct in WSDL? 

   1.2 When we come crosses "all" construct generate the code accordingly. Changes should be in DeSerialization part of the complex types. 

2.) DeSerializer

   2.1 Decide minOccurs 0 or 1.
	If 1 then get (use current code.)
	If 0 then check & get 

   2.2 Check & get
       Here there are 3 possible changes.

          1.We can have a list of element stored and can compare with the pulled one and select the matched one.
          E.g.
          List		  Pulled one
          A		     B
          B-->
          C
          D
          Here we sellect the B from the list.
          But in this option have additional check logic in generated code for each element. Also have to change current DeSerializer code. 

          2.Also we can go element in sequence order and if it is not matched with pulled one then go to next. But here need to figure out how to recover pulled element.

          3.Passer peak ahead.
            Can we look ahead (without pulling) what element is the next?

            Advantage of this is can keep the current DeSerializer code as it is.
            Still additional check logic will be in generated code.



> Support for the WSDL construct "all"
> ------------------------------------
>
>          Key: AXISCPP-623
>          URL: http://issues.apache.org/jira/browse/AXISCPP-623
>      Project: Axis-C++
>         Type: New Feature
>   Components: WSDL processing
>     Versions: 1.5 Final
>  Environment: All
>     Reporter: Dushshantha Chandradasa
>  Attachments: AllConstructTest.wsdl
>
> Axis C++ doesn't support the WSDL construct "all".

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


[jira] Updated: (AXISCPP-623) Support for the WSDL construct "all"

Posted by "Samisa Abeysinghe (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-623?page=all ]

Samisa Abeysinghe updated AXISCPP-623:
--------------------------------------

           type: New Feature  (was: Bug)
        Version: 1.5 Final
                     (was: 1.6 Alpha)
      Component: WSDL processing
                     (was: Basic Architecture)
    Fix Version:     (was: 1.6 Alpha)

> Support for the WSDL construct "all"
> ------------------------------------
>
>          Key: AXISCPP-623
>          URL: http://issues.apache.org/jira/browse/AXISCPP-623
>      Project: Axis-C++
>         Type: New Feature
>   Components: WSDL processing
>     Versions: 1.5 Final
>  Environment: All
>     Reporter: Dushshantha Chandradasa

>
> Axis C++ doesn't support the WSDL construct "all".

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


[jira] Assigned: (AXISCPP-623) Support for the WSDL construct "all"

Posted by "Dushshantha Chandradasa (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-623?page=all ]

Dushshantha Chandradasa reassigned AXISCPP-623:
-----------------------------------------------

    Assign To: Dushshantha Chandradasa

> Support for the WSDL construct "all"
> ------------------------------------
>
>          Key: AXISCPP-623
>          URL: http://issues.apache.org/jira/browse/AXISCPP-623
>      Project: Axis-C++
>         Type: New Feature
>   Components: WSDL processing - RPC
>     Versions: 1.5 Final
>  Environment: All
>     Reporter: Dushshantha Chandradasa
>     Assignee: Dushshantha Chandradasa
>  Attachments: AllConstructTest.wsdl
>
> Axis C++ doesn't support the WSDL construct "all".

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


[jira] Resolved: (AXISCPP-623) Support for the WSDL construct "all"

Posted by "Dushshantha Chandradasa (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-623?page=all ]
     
Dushshantha Chandradasa resolved AXISCPP-623:
---------------------------------------------

    Resolution: Fixed

> Support for the WSDL construct "all"
> ------------------------------------
>
>          Key: AXISCPP-623
>          URL: http://issues.apache.org/jira/browse/AXISCPP-623
>      Project: Axis-C++
>         Type: New Feature
>   Components: WSDL processing - RPC
>     Versions: 1.5 Final
>  Environment: All
>     Reporter: Dushshantha Chandradasa
>  Attachments: AllConstructTest.wsdl
>
> Axis C++ doesn't support the WSDL construct "all".

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


[jira] Assigned: (AXISCPP-623) Support for the WSDL construct "all"

Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/AXISCPP-623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

nadir amra reassigned AXISCPP-623:
----------------------------------

    Assignee: nadir amra

> Support for the WSDL construct "all"
> ------------------------------------
>
>                 Key: AXISCPP-623
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-623
>             Project: Axis-C++
>          Issue Type: New Feature
>          Components: WSDL processing - RPC
>    Affects Versions: 1.5 Final
>         Environment: All
>            Reporter: Dushshantha Chandradasa
>         Assigned To: nadir amra
>         Attachments: AllConstructTest.wsdl
>
>
> Axis C++ doesn't support the WSDL construct "all".

-- 
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Updated: (AXISCPP-623) Support for the WSDL construct "all"

Posted by "Samisa Abeysinghe (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-623?page=all ]

Samisa Abeysinghe updated AXISCPP-623:
--------------------------------------

        Summary: Support for the WSDL construct "all"  (was: Support for the construct any)
    Description: Axis C++ doesn't support the WSDL construct "all".  (was: Axis C++ doesn't support the Construct Any.)
    Fix Version: 1.6 Alpha

> Support for the WSDL construct "all"
> ------------------------------------
>
>          Key: AXISCPP-623
>          URL: http://issues.apache.org/jira/browse/AXISCPP-623
>      Project: Axis-C++
>         Type: Bug
>   Components: Basic Architecture
>     Versions: 1.6 Alpha
>  Environment: All
>     Reporter: Dushshantha Chandradasa
>      Fix For: 1.6 Alpha

>
> Axis C++ doesn't support the WSDL construct "all".

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


[jira] Reopened: (AXISCPP-623) Support for the WSDL construct "all"

Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-623?page=all ]

nadir amra reopened AXISCPP-623:
--------------------------------

      Assignee:     (was: Dushshantha Chandradasa)
             
I am reopening this issue because I do not think xsd:all is supported correctly. 

Testing against the Google API, the result is described by the WSDL as follows:


      <xsd:complexType name="GoogleSearchResult">
        <xsd:all>
          <xsd:element name="documentFiltering"           type="xsd:boolean"/>
          <xsd:element name="searchComments"              type="xsd:string"/>
          <xsd:element name="estimatedTotalResultsCount"  type="xsd:int"/>
          <xsd:element name="estimateIsExact"             type="xsd:boolean"/>
          <xsd:element name="resultElements"              type="typens:ResultElementArray"/>
          <xsd:element name="searchQuery"                 type="xsd:string"/>
          <xsd:element name="startIndex"                  type="xsd:int"/>
          <xsd:element name="endIndex"                    type="xsd:int"/>
          <xsd:element name="searchTips"                  type="xsd:string"/>
          <xsd:element name="directoryCategories"         type="typens:DirectoryCategoryArray"/>
          <xsd:element name="searchTime"                  type="xsd:double"/>
        </xsd:all>
      </xsd:complexType>

However, the result returned by the web service is not in the sequence given above ( xsd:all all the data to be returned in any order) and thus invoking the stub fails unless one goes into the various deserializers in the generated code and moves the code around to match the returned data. 

Here is the response returned by the web service:

<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:doGoogleSearchResponse xmlns:ns1="urn:GoogleSearch" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xsi:type="ns1:GoogleSearchResult">
<directoryCategories xmlns:ns2="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:Array" ns2:arrayType="ns1:DirectoryCategory[0]">
</directoryCategories>
<documentFiltering xsi:type="xsd:boolean">false</documentFiltering>
<endIndex xsi:type="xsd:int">1</endIndex>
<estimateIsExact xsi:type="xsd:boolean">false</estimateIsExact>
<estimatedTotalResultsCount xsi:type="xsd:int">577000000</estimatedTotalResultsCount>
<resultElements xmlns:ns3="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:Array" ns3:arrayType="ns1:ResultElement[1]">
<item xsi:type="ns1:ResultElement">
<URL xsi:type="xsd:string">http://www.ibm.com/</URL>
<cachedSize xsi:type="xsd:string">25k</cachedSize>
<directoryCategory xsi:type="ns1:DirectoryCategory">
<fullViewableName xsi:type="xsd:string"></fullViewableName>
<specialEncoding xsi:type="xsd:string"></specialEncoding>
</directoryCategory>
<directoryTitle xsi:type="xsd:string"></directoryTitle>
<hostName xsi:type="xsd:string"></hostName>
<relatedInformationPresent xsi:type="xsd:boolean">true</relatedInformationPresent>
<snippet xsi:type="xsd:string">The &lt;b&gt;IBM&lt;/b&gt; corporate home page, entry point to information about &lt;b&gt;IBM&lt;/b&gt; products and&lt;br&gt;  services.</snippet>
<summary xsi:type="xsd:string"></summary>
<title xsi:type="xsd:string">&lt;b&gt;IBM&lt;/b&gt; Corporation</title>
</item>
</resultElements>
<searchComments xsi:type="xsd:string"></searchComments>
<searchQuery xsi:type="xsd:string">ibm</searchQuery>
<searchTime xsi:type="xsd:double">0.244935</searchTime>
<searchTips xsi:type="xsd:string"></searchTips>
<startIndex xsi:type="xsd:int">1</startIndex>
</return>
</ns1:doGoogleSearchResponse>

</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

> Support for the WSDL construct "all"
> ------------------------------------
>
>                 Key: AXISCPP-623
>                 URL: http://issues.apache.org/jira/browse/AXISCPP-623
>             Project: Axis-C++
>          Issue Type: New Feature
>          Components: WSDL processing - RPC
>    Affects Versions: 1.5 Final
>         Environment: All
>            Reporter: Dushshantha Chandradasa
>         Attachments: AllConstructTest.wsdl
>
>
> Axis C++ doesn't support the WSDL construct "all".

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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Commented: (AXISCPP-623) Support for the WSDL construct "all"

Posted by "Samisa Abeysinghe (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-623?page=comments#action_63134 ]
     
Samisa Abeysinghe commented on AXISCPP-623:
-------------------------------------------

http://www.w3schools.com/schema/el_all.asp is a useful reference.

> Support for the WSDL construct "all"
> ------------------------------------
>
>          Key: AXISCPP-623
>          URL: http://issues.apache.org/jira/browse/AXISCPP-623
>      Project: Axis-C++
>         Type: Bug
>   Components: Basic Architecture
>     Versions: 1.6 Alpha
>  Environment: All
>     Reporter: Dushshantha Chandradasa
>      Fix For: 1.6 Alpha

>
> Axis C++ doesn't support the WSDL construct "all".

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