Hi !
I'm trying to make a webservice which uses http binding and post. I wrote
the wsdl (see below), and I tried to generate the classes with wsdl2java
(java org.apache.axis.wsdl.WSDL2Java -a t.wsdl). It gives no error, but it
generates an empty class (see below).
Can anybody help me ?
Thanx
Balazs
The t.wsdl :
<definitions name="Definitions"
targetNamespace="query-webservice.terminus"
xmlns:tns="query-webservice.terminus"
xmlns:typens="query-types.terminus"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns="http://schemas.xmlsoap.org/wsdl/"
elementFormDefault="qualified">
<!-- type defs-->
<types>
<xsd:schema targetNamespace="query-types.terminus"
xmlns="query-types.terminus"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<!-- base types -->
<xsd:simpleType name="longNameType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="250"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="contextIDType">
<xsd:restriction base="xsd:ID">
<xsd:pattern value="cont_[0-9]+"/>
</xsd:restriction>
</xsd:simpleType>
<!--complex types -->
<xsd:complexType name="contextType">
<xsd:annotation>
<xsd:documentation xml:lang="en">
For more information check TBLCONTEXT
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="id" type="contextIDType" minOccurs="1"
maxOccurs="1"/>
<xsd:element name="Name" type="longNameType" minOccurs="1"
maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="contextListType">
<xsd:sequence>
<xsd:element name="Context" type="contextType" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="ContextListElement" type="contextListType"/>
</xsd:schema>
</types>
<!-- message declns -->
<message name="Test"/>
<message name="ContextListResponse">
<part name="Body" element="typens:ContextListElement"/>
</message>
<!-- port type declns -->
<portType name="Terminus_Web_Port">
<operation name="getContextList">
<input message="tns:Test"/>
<output message="tns:ContextListResponse"/>
</operation>
</portType>
<!-- binding declns -->
<binding name="TerminusWebPOST" type="tns:Terminus_Web_Port">
<http:binding verb="POST"/>
<operation name="getContextList">
<http:operation location="getContextList"/>
<input>
<mime:content type="application/x-www-form-urlencoded"/>
</input>
<output>
<mime:mimeXml part="Body" />
</output>
</operation>
</binding>
<!-- service decln -->
<service name="Axelero_Terminus_Web">
<port name="Terminus_Web_Port" binding="tns:TerminusWebPOST">
<http:address
location="http://localhost/axis/services/Terminus_Web/"/>
</port>
</service>
</definitions>
And the generated class:
/**
* Axelero_Terminus_Web.java
*
* This file was auto-generated from WSDL
* by the Apache Axis WSDL2Java emitter.
*/
package terminus.query_webservice;
public interface Axelero_Terminus_Web extends javax.xml.rpc.Service {
}