You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Martin Hillmeier (JIRA)" <ax...@ws.apache.org> on 2007/02/05 13:30:11 UTC
[jira] Created: (AXIS-2623) Possible error in SOAP-message while
returning structure which contains an arary of structures
Possible error in SOAP-message while returning structure which contains an arary of structures
----------------------------------------------------------------------------------------------
Key: AXIS-2623
URL: https://issues.apache.org/jira/browse/AXIS-2623
Project: Axis
Issue Type: Bug
Components: Serialization/Deserialization
Affects Versions: 1.4
Environment: WIN XP
Reporter: Martin Hillmeier
Priority: Critical
My webservice returns a structure that contains an array of structures (in function "listPhoneBookPrivate()").
The returned structure is of type "WSPhoneXXBookEntryListWrapper".
This structure contains an array with elements of type "WSPhoneBookEntry".
(The SOAP-message and the wsdl are appended at the end of this description)
I think the SOAP-message should look like:
.....
<listPhoneBookPrivateReturn>
<phoneBookEntries>
<item>
......
</item>
<item>
......
</item>
</phoneBookEntries>
<testString></testString>
</listPhoneBookPrivateReturn>
....
But the SOAP-message returned by the webservice looks like as follows:
<?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> <!-- I think it should be "item" -->
<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>90@idefix.teamfon.de</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>08942700514</phoneNr>
<postalCode xsi:nil="true"/>
</phoneBookEntries>
</phoneBookEntries>
<testString>Hund Katze Maus</testString>
</listPhoneBookPrivateReturn>
</listPhoneBookPrivateResponse>
</soapenv:Body>
</soapenv:Envelope>
*********************************************************************************
The corresponding 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.4
Built on Apr 22, 2006 (06:55:48 PDT)
-->
- <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 />
</element>
- <element name="listPhoneBookPrivateResponse">
- <complexType>
- <sequence>
<element name="listPhoneBookPrivateReturn" type="tns1:WSPhoneXXBookEntryListWrapper" />
</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="WSPhoneXXBookEntryListWrapper">
- <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-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org