Me again, attached schema and wsdl are written by myself and validating successfully against various tools. May be some code snippets I'v used are not processible by Axis. But I'v no idea what it is. Generated classes TypeOrderSex and TypeNameWithno are not compilable. Please, could someone take a look at it?
Thanks a lot Michael Michael Hagedorn wrote: >Hi All, > >code generation terminates successfully but generated code is invalid. >Apparently something goes wrong with generated base classes. > >[javac] ...\TypeNameWithno.java:18: Object() in java.lang.Object cannot >be applied to (java.lang.String) >[javac] super(_value); >[javac] ^ > >Do I miss something within my attached schema definition? > >Thanks in advance >Michael > >
<?xml version="1.0" encoding="UTF-8"?> <definitions name="xpTransportService" targetNamespace="http://xp.mynamespace/xpTransportService.wsdl" xmlns:xpws="http://xp.mynamespace/xpTransportService.wsdl" xmlns:xpts="http://xp.mynamespace/xpTransportService.xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns="http://xp.mynamespace/xpTransportService" xmlns="http://schemas.xmlsoap.org/wsdl/"> <!-- XP-Transport-Service Types --> <types> <schema targetNamespace="http://xp.mynamespace/xpTransportService.xsd" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:include schemaLocation="xpTS.xsd" /> </schema> </types> <!-- XP-Transport-Service Messages --> <message name="orderMsgReq"> <part name="msgParams" type="xpts:orderReqDataType" /> </message> <message name="orderMsgRsp"> <part name="msgParams" type="xpts:orderRspDataType" /> </message> <!-- XP-Transport-Service Operations/Port --> <portType name="xpTransportServiceSoap"> <operation name="order"> <input message="xpws:orderMsgReq" /> <output message="xpws:orderMsgRsp" /> </operation> </portType> <!-- XP-Transport-Service SOAP-Binding --> <binding name="xpTransportServiceSoap" type="xpws:xpTransportServiceSoap"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> <operation name="order"> <soap:operation /> <input> <soap:body use="literal" /> </input> <output> <soap:body use="literal" /> </output> </operation> </binding> <!-- XP-Transport-Service SOAP-Services --> <service name="xpTransportService"> <port name="xpTransportServiceSoap" binding="xpws:xpTransportServiceSoap"> <soap:address location="http://localhost:8080/xpws/services/xpTransportServiceSoap" /> </port> </service> </definitions>
<?xml version="1.0" encoding="UTF-8"?> <xs:schema targetNamespace="http://xp.mynamespace/xpTransportService.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xpts="http://xp.mynamespace/xpTransportService.xsd" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" elementFormDefault="qualified" version="2006-01-10"> <xs:element name="order" type="xpts:type.order" /> <xs:complexType name="dataSignThenEncryptType"> <xs:sequence> <xs:element name="dataEncKey" type="xs:anyType" /> <xs:element name="dataEncData" type="xpts:dataSignType" /> </xs:sequence> </xs:complexType> <xs:complexType name="dataSignType"> <xs:sequence> <xs:element name="dsigKeyInfo" type="xs:anyType" /> <xs:element name="signature" type="xs:anyType"> </xs:element> <xs:element name="signedXpData"> <xs:complexType> <xs:choice> <xs:element name="order" type="xpts:type.order" /> </xs:choice> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="transportReqType"> <xs:sequence> <xs:element name="userId" type="xs:string" /> </xs:sequence> </xs:complexType> <xs:complexType name="transportRspType"> <xs:sequence> <xs:element name="status" type="xs:string" /> </xs:sequence> </xs:complexType> <xs:complexType name="transportHeaderType"> <xs:sequence> <xs:element name="processTag" type="xs:string" /> </xs:sequence> </xs:complexType> <xs:complexType name="transportRecvDataType"> <xs:sequence> <xs:element name="header" type="xpts:transportHeaderType" /> <xs:element name="dataSig" type="xpts:dataSignType" /> </xs:sequence> </xs:complexType> <xs:complexType name="transportSendDataType"> <xs:sequence> <xs:element name="header" type="xpts:transportHeaderType" /> <xs:element name="dataSigEnc" type="xpts:dataSignThenEncryptType" /> </xs:sequence> </xs:complexType> <xs:complexType name="type.order"> <xs:sequence> <xs:element name="sex"> <xs:simpleType> <xs:union memberTypes="xpts:type.sex"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="-" /> </xs:restriction> </xs:simpleType> </xs:union> </xs:simpleType> </xs:element> <xs:element name="name" maxOccurs="4" type="xpts:type.name.withno"> </xs:element> </xs:sequence> </xs:complexType> <xs:simpleType name="type.rowno"> <xs:restriction base="xs:short"> <xs:minInclusive value="1" /> <xs:maxInclusive value="5" /> </xs:restriction> </xs:simpleType> <xs:simpleType name="type.sex"> <xs:restriction base="xs:string"> <xs:enumeration value="F" /> <xs:enumeration value="M" /> </xs:restriction> </xs:simpleType> <xs:complexType name="type.name.withno"> <xs:simpleContent> <xs:extension base="xpts:char.letter"> <xs:attribute name="rowno" type="xpts:type.rowno" use="required" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:simpleType name="char.letter"> <xs:restriction base="xs:string"></xs:restriction> </xs:simpleType> <xs:complexType name="orderSoapData"> <xs:choice> <xs:element name="orderReqData" type="xpts:orderReqDataType" /> <xs:element name="orderRspData" type="xpts:orderRspDataType" /> </xs:choice> </xs:complexType> <xs:complexType name="orderReqDataType"> <xs:sequence> <xs:element name="orderData" type="xpts:transportSendDataType" /> </xs:sequence> </xs:complexType> <xs:complexType name="orderRspDataType"> <xs:sequence> <xs:element name="orderResponse" type="xpts:transportRspType" /> </xs:sequence> </xs:complexType> </xs:schema>
