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] Commented: (AXISCPP-1018) Array in structure is empty
Date Thu, 01 Feb 2007 05:56:05 GMT

    [ https://issues.apache.org/jira/browse/AXISCPP-1018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12469338
] 

nadir amra commented on AXISCPP-1018:
-------------------------------------

Martin, the AXIS engine is expecting:

<phoneBookEntries>
   <item>
   </item>

    <item>
    </item>
</phoneBookEntries>

I am inclined to close this issue as a user error, unless you think otherwise?

> Array in structure is empty
> ---------------------------
>
>                 Key: AXISCPP-1018
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1018
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: WinXP
>            Reporter: Martin Hillmeier
>            Priority: Blocker
>
> My webservice returns a structure that contains an array of structures.
> I use AXIS-C (wsdl2ws-Tool generated classes) to acces this webservice. 
> But always when retrieving the array it's size is 0.
> If the webservice function directly returns an array of structures (not included in another
structure) it works fine.
> Is there a bug in AXIS-C or do I something wrong when accessing the array data.
> I tried it with the latest SVN source (2007-01-29).
> I use the following code to read an object of type " WSPhoneBookEntryListWrapper" from
webservice.
> This object contains an array of "WSPhoneBookEntry" items.
> When I execute the following code, "size" is always 0 although the webservice has filled
> the array with elements.
> WSPhoneBookEntryListWrapper* pPhonebookList = webservice->listPhoneBookPrivate();
> ArrayOf_tns2_WSPhoneBookEntry* list = pPhonebookList->getphoneBookEntries();
> WSPhoneBookEntry_Array* pPhonebookArray = list->getitem();
> int size;
> WSPhoneBookEntry** phonebookEntry = pPhonebookArray->get(size);
> Thanks
> Martin
> Here is my wsdl:
>   <?xml version="1.0" encoding="UTF-8" ?> 
> - <wsdl:definitions targetNamespace="http://webservices.teamfon.teamware.com" xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://webservices.teamfon.teamware.com" xmlns:intf="http://webservices.teamfon.teamware.com"
xmlns:tns1="http://business.phonebook.webservices.teamfon.teamware.com" xmlns:tns2="http://phonebook.webservices.teamfon.teamware.com"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> - <!-- 
> WSDL created by Apache Axis version: 1.3
> Built on Oct 05, 2005 (05:23:37 EDT)
>   --> 
> - <wsdl:types>
> - <schema elementFormDefault="qualified" targetNamespace="http://webservices.teamfon.teamware.com"
xmlns="http://www.w3.org/2001/XMLSchema">
>   <import namespace="http://phonebook.webservices.teamfon.teamware.com" /> 
>   <import namespace="http://business.phonebook.webservices.teamfon.teamware.com" />

> - <element name="listPhoneBookPrivate">
> - <complexType>
> - <sequence>
>   <element name="i" type="xsd:int" /> 
>   </sequence>
>   </complexType>
>   </element>
> - <element name="listPhoneBookPrivateResponse">
> - <complexType>
> - <sequence>
>   <element name="listPhoneBookPrivateReturn" type="tns1:WSPhoneBookEntryListWrapper"
/> 
>   </sequence>
>   </complexType>
>   </element>
> - <complexType name="ArrayOf_tns2_WSPhoneBookEntry">
> - <sequence>
>   <element maxOccurs="unbounded" minOccurs="0" name="item" type="tns2:WSPhoneBookEntry"
/> 
>   </sequence>
>   </complexType>
>   </schema>
> - <schema elementFormDefault="qualified" targetNamespace="http://phonebook.webservices.teamfon.teamware.com"
xmlns="http://www.w3.org/2001/XMLSchema">
>   <import namespace="http://business.phonebook.webservices.teamfon.teamware.com" />

>   <import namespace="http://webservices.teamfon.teamware.com" /> 
> - <complexType name="WSPhoneBookEntry">
> - <sequence>
>   <element name="address1" nillable="true" type="xsd:string" /> 
>   <element name="address2" nillable="true" type="xsd:string" /> 
>   <element name="bereichID" type="xsd:int" /> 
>   <element name="city" nillable="true" type="xsd:string" /> 
>   <element name="company" nillable="true" type="xsd:string" /> 
>   <element name="customerID" type="xsd:int" /> 
>   <element name="displayAs" nillable="true" type="xsd:string" /> 
>   <element name="firstname" nillable="true" type="xsd:string" /> 
>   <element name="lastname" nillable="true" type="xsd:string" /> 
>   <element name="notes" nillable="true" type="xsd:string" /> 
>   <element name="phoneBookID" type="xsd:int" /> 
>   <element name="phoneNr" nillable="true" type="xsd:string" /> 
>   <element name="postalCode" nillable="true" type="xsd:string" /> 
>   </sequence>
>   </complexType>
>   </schema>
> - <schema elementFormDefault="qualified" targetNamespace="http://business.phonebook.webservices.teamfon.teamware.com"
xmlns="http://www.w3.org/2001/XMLSchema">
>   <import namespace="http://phonebook.webservices.teamfon.teamware.com" /> 
>   <import namespace="http://webservices.teamfon.teamware.com" /> 
> - <complexType name="WSPhoneBookEntryListWrapper">
> - <sequence>
>   <element name="phoneBookEntries" nillable="true" type="impl:ArrayOf_tns2_WSPhoneBookEntry"
/> 
>   <element name="testString" nillable="true" type="xsd:string" /> 
>   </sequence>
>   </complexType>
>   </schema>
>   </wsdl:types>
> - <wsdl:message name="listPhoneBookPrivateRequest">
>   <wsdl:part element="impl:listPhoneBookPrivate" name="parameters" /> 
>   </wsdl:message>
> - <wsdl:message name="listPhoneBookPrivateResponse">
>   <wsdl:part element="impl:listPhoneBookPrivateResponse" name="parameters" /> 
>   </wsdl:message>
> - <wsdl:portType name="WS_Teamfon">
> - <wsdl:operation name="listPhoneBookPrivate">
>   <wsdl:input message="impl:listPhoneBookPrivateRequest" name="listPhoneBookPrivateRequest"
/> 
>   <wsdl:output message="impl:listPhoneBookPrivateResponse" name="listPhoneBookPrivateResponse"
/> 
>   </wsdl:operation>
>   </wsdl:portType>
> - <wsdl:binding name="WS_TeamfonSoapBinding" type="impl:WS_Teamfon">
>   <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"
/> 
> - <wsdl:operation name="listPhoneBookPrivate">
>   <wsdlsoap:operation soapAction="" /> 
> - <wsdl:input name="listPhoneBookPrivateRequest">
>   <wsdlsoap:body use="literal" /> 
>   </wsdl:input>
> - <wsdl:output name="listPhoneBookPrivateResponse">
>   <wsdlsoap:body use="literal" /> 
>   </wsdl:output>
>   </wsdl:operation>
>   </wsdl:binding>
> - <wsdl:service name="WS_TeamfonService">
> - <wsdl:port binding="impl:WS_TeamfonSoapBinding" name="WS_Teamfon">
>   <wsdlsoap:address location="http://localhost:8080/teamfonweb/services/WS_Teamfon"
/> 
>   </wsdl:port>
>   </wsdl:service>
>   </wsdl:definitions>

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


Mime
View raw message