axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nadir amra (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Reopened: (AXISCPP-623) Support for the WSDL construct "all"
Date Wed, 26 Jul 2006 22:41:20 GMT
     [ 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


Mime
View raw message