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 "Martin Hillmeier (JIRA)" <ax...@ws.apache.org> on 2007/01/31 09:49:05 UTC

[jira] Created: (AXISCPP-1018) Array in structure is empty

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


[jira] Commented: (AXISCPP-1018) Array in structure is empty

Posted by "Martin Hillmeier (JIRA)" <ax...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/AXISCPP-1018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12468962 ] 

Martin Hillmeier commented on AXISCPP-1018:
-------------------------------------------

SOAP message:


<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<soapenv:Body>
		<listPhoneBookPrivateResponse xmlns="http://webservices.teamfon.teamware.com">
			<listPhoneBookPrivateReturn>
				<phoneBookEntries>
					<phoneBookEntries>
						<address1 xsi:nil="true"/>
						<address2 xsi:nil="true"/>
						<bereichID>0</bereichID>
						<city>Entenhausen</city>
						<company>DD Enterprises</company>
						<customerID>0</customerID>
						<displayAs xsi:nil="true"/>
						<firstname>Dagobert</firstname>
						<lastname>Duck</lastname>
						<notes xsi:nil="true"/>
						<phoneBookID>166</phoneBookID>
						<phoneNr>45</phoneNr>
						<postalCode xsi:nil="true"/>
					</phoneBookEntries>
					<phoneBookEntries>
						<address1 xsi:nil="true"/>
						<address2 xsi:nil="true"/>
						<bereichID>0</bereichID>
						<city>Entenhausen</city>
						<company xsi:nil="true"/>
						<customerID>0</customerID>
						<displayAs xsi:nil="true"/>
						<firstname>Donald</firstname>
						<lastname>Duck</lastname>
						<notes xsi:nil="true"/>
						<phoneBookID>165</phoneBookID>
						<phoneNr>90</phoneNr>
						<postalCode xsi:nil="true"/>
					</phoneBookEntries>
					<phoneBookEntries>
						<address1 xsi:nil="true"/>
						<address2 xsi:nil="true"/>
						<bereichID>0</bereichID>
						<city>Entenhausen</city>
						<company xsi:nil="true"/>
						<customerID>0</customerID>
						<displayAs xsi:nil="true"/>
						<firstname>Micky</firstname>
						<lastname>Maus</lastname>
						<notes xsi:nil="true"/>
						<phoneBookID>182</phoneBookID>
						<phoneNr>7885</phoneNr>
						<postalCode xsi:nil="true"/>
					</phoneBookEntries>
				</phoneBookEntries>
				<testString>Tiger</testString>
			</listPhoneBookPrivateReturn>
		</listPhoneBookPrivateResponse>
	</soapenv:Body>
</soapenv:Envelope>


> 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


[jira] Closed: (AXISCPP-1018) Array in structure is empty

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

nadir amra closed AXISCPP-1018.
-------------------------------

    Resolution: Invalid

I believe the problem is with the response being returned.  If not, please reopen and document your reasoning.

> 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


[jira] Commented: (AXISCPP-1018) Array in structure is empty

Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
    [ 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


[jira] Commented: (AXISCPP-1018) Array in structure is empty

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

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

Can you also attach soap response?  You can use TCPMon at http://ws.apache.org/commons/tcpmon/download.cgi

> 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