Hi Martin, WSDL pasted below.
This was originally generated by Axis2, in the response elements we replaced the name "return" with the desired name, with no effect. Ought this not be the case - should the response use the name defined in the wsdl? Thanks, Alan. <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ns0="http://webservice.test.com/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://webservice.test.com/xsd"> <wsdl:documentation>SearchService</wsdl:documentation> <wsdl:types> <xs:schema xmlns:ns="http://webservice.test.com/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://webservice.test.com/xsd"> <xs:complexType name="Exception"> <xs:sequence> <xs:element minOccurs="0" name="Exception" nillable="true" type="xs:anyType"/> </xs:sequence> </xs:complexType> <xs:element name="DataAccessException"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="DataAccessException" nillable="true" type="ns0:DataAccessException"/> </xs:sequence> </xs:complexType> </xs:element> <xs:complexType name="DataAccessException"> <xs:sequence> <xs:element minOccurs="0" name="message" nillable="true" type="xs:string"/> </xs:sequence> </xs:complexType> <xs:element name="getCourse"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="includeSchedules" type="xs:boolean"/> <xs:element minOccurs="0" name="courseCode" nillable="true" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="getCourseResponse"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="CourseQueryResponse" nillable="true" type="ns0:CourseQueryResponse"/> </xs:sequence> </xs:complexType> </xs:element> <xs:complexType name="CourseQueryResponse"> <xs:sequence> <xs:element maxOccurs="unbounded" minOccurs="0" name="courses" nillable="true" type="ns0:Course"/> </xs:sequence> </xs:complexType> <xs:complexType name="Course"> <xs:sequence> <xs:element minOccurs="0" name="courseCode" nillable="true" type="xs:string"/> <xs:element minOccurs="0" name="courseContent" nillable="true" type="xs:string"/> <xs:element minOccurs="0" name="courseLevel" nillable="true" type="xs:string"/> <xs:element minOccurs="0" name="courseName" nillable="true" type="xs:string"/> <xs:element minOccurs="0" name="durationDays" type="xs:int"/> <xs:element minOccurs="0" name="durationHours" type="xs:int"/> <xs:element minOccurs="0" name="lastUpdate" nillable="true" type="xs:dateTime"/> </xs:sequence> </xs:complexType> <xs:element name="getCoursesByCategory"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="onlyAvailableCourses" type="xs:boolean"/> <xs:element minOccurs="0" name="includeSchedules" type="xs:boolean"/> <xs:element minOccurs="0" name="category" nillable="true" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="getCoursesByCategoryResponse"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="CourseQueryResponse" nillable="true" type="ns0:CourseQueryResponse"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> </wsdl:types> <wsdl:message name="getCoursesByCategoryRequest"> <wsdl:part name="parameters" element="ns0:getCoursesByCategory"/> </wsdl:message> <wsdl:message name="getCoursesByCategoryResponse"> <wsdl:part name="parameters" element="ns0:getCoursesByCategoryResponse"/> </wsdl:message> <wsdl:message name="DataAccessException"> <wsdl:part name="parameters" element="ns0:DataAccessException"/> </wsdl:message> <wsdl:message name="getCourseRequest"> <wsdl:part name="parameters" element="ns0:getCourse"/> </wsdl:message> <wsdl:message name="getCourseResponse"> <wsdl:part name="parameters" element="ns0:getCourseResponse"/> </wsdl:message> <wsdl:portType name="SearchServicePortType"> <wsdl:operation name="getCoursesByCategory"> <wsdl:input message="ns0:getCoursesByCategoryRequest" wsaw:Action="urn:getCoursesByCategory"/> <wsdl:output message="ns0:getCoursesByCategoryResponse" wsaw:Action="urn:getCoursesByCategoryResponse"/> <wsdl:fault message="ns0:DataAccessException" name="DataAccessException" wsaw:Action="urn:getCoursesByCategoryDataAccessException"/> </wsdl:operation> <wsdl:operation name="getCourse"> <wsdl:input message="ns0:getCourseRequest" wsaw:Action="urn:getCourse"/> <wsdl:output message="ns0:getCourseResponse" wsaw:Action="urn:getCourseResponse"/> <wsdl:fault message="ns0:DataAccessException" name="DataAccessException" wsaw:Action="urn:getCourseDataAccessException"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="SearchServiceSOAP11Binding" type="ns0:SearchServicePortType"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> <wsdl:operation name="getCoursesByCategory"> <soap:operation soapAction="urn:getCoursesByCategory" style="document"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> <wsdl:fault name="DataAccessException"> <soap:fault use="literal" name="DataAccessException"/> </wsdl:fault> </wsdl:operation> <wsdl:operation name="getCourse"> <soap:operation soapAction="urn:getCourse" style="document"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> <wsdl:fault name="DataAccessException"> <soap:fault use="literal" name="DataAccessException"/> </wsdl:fault> </wsdl:operation> </wsdl:binding> <wsdl:binding name="SearchServiceSOAP12Binding" type="ns0:SearchServicePortType"> <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> <wsdl:operation name="getCoursesByCategory"> <soap12:operation soapAction="urn:getCoursesByCategory" style="document"/> <wsdl:input> <soap12:body use="literal"/> </wsdl:input> <wsdl:output> <soap12:body use="literal"/> </wsdl:output> <wsdl:fault name="DataAccessException"> <soap12:fault use="literal" name="DataAccessException"/> </wsdl:fault> </wsdl:operation> <wsdl:operation name="getCourse"> <soap12:operation soapAction="urn:getCourse" style="document"/> <wsdl:input> <soap12:body use="literal"/> </wsdl:input> <wsdl:output> <soap12:body use="literal"/> </wsdl:output> <wsdl:fault name="DataAccessException"> <soap12:fault use="literal" name="DataAccessException"/> </wsdl:fault> </wsdl:operation> </wsdl:binding> <wsdl:binding name="SearchServiceHttpBinding" type="ns0:SearchServicePortType"> <http:binding verb="POST"/> <wsdl:operation name="getCoursesByCategory"> <http:operation location="SearchService/getCoursesByCategory"/> <wsdl:input> <mime:content type="text/xml" part="getCoursesByCategory"/> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="getCoursesByCategory"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="getCourse"> <http:operation location="SearchService/getCourse"/> <wsdl:input> <mime:content type="text/xml" part="getCourse"/> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="getCourse"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="SearchService"> <wsdl:port name="SearchServiceSOAP11port_http" binding="ns0:SearchServiceSOAP11Binding"> <soap:address location="http://localhost:8085/axis2/services/SearchService"/> </wsdl:port> <wsdl:port name="SearchServiceSOAP12port_http" binding="ns0:SearchServiceSOAP12Binding"> <soap12:address location="http://localhost:8085/axis2/services/SearchService"/> </wsdl:port> <wsdl:port name="SearchServiceHttpport" binding="ns0:SearchServiceHttpBinding"> <http:address location="http://localhost:8085/axis2/services/SearchService"/> </wsdl:port> </wsdl:service> </wsdl:definitions> Martin Gainty wrote: > > Good Afternoon Al- > > could you display the full wsdl (including any/all implemented > namespaces..) > > Thanks > M- > -- View this message in context: http://www.nabble.com/-Axis2--Customize-%3Creturn%3E-element-in-response-tp16763591p16765007.html Sent from the Axis - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
