wstool generating unknown type
peterbuus Jun 9, 2006 7:36 AMI am running 4.0.4GA wstools in <wsdl-java> mode in order to generate client side stubs.
The resulting stubs refers an instance of an unknown class arrayCoordinate
public class Array
{
protected java.lang.String arrayType;
protected arrayCoordinate offset;
protected java.lang.String id;
protected java.net.URI href;
protected javax.xml.soap.SOAPElement[] _any;
public Array(){}
public Array(java.lang.String arrayType, arrayCoordinate offset, java.lang.String id, java.net.URI href, javax.xml.soap.SOAPElement[] _any){
etc etc etc
Does anybody know the cause of this?
My wsdl is as follows
<?xml version="1.0" encoding="utf-8"?> <definitions xmlns:tns="http://localhost/" xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12enc="http://www.w3.org/2002/06/soap-encoding" xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://localhost/"> <types xmlns:tns="http://localhost/" xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12enc="http://www.w3.org/2002/06/soap-encoding" xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/"> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:stns="java:dk.certifikat.pid.webservices" elementFormDefault="qualified" attributeFormDefault="qualified" targetNamespace="java:dk.certifikat.pid.webservices"> <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"> </xsd:import> <xsd:complexType name="ArrayOfPIDReply"> <xsd:complexContent> <xsd:restriction xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" base="soapenc:Array"> <xsd:attribute xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" ref="soapenc:arrayType" wsdl:arrayType="stns:PIDReply[]"> </xsd:attribute> </xsd:restriction> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="ArrayOfPIDRequest"> <xsd:complexContent> <xsd:restriction xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" base="soapenc:Array"> <xsd:attribute xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" ref="soapenc:arrayType" wsdl:arrayType="stns:PIDRequest[]"> </xsd:attribute> </xsd:restriction> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="PIDReply"> <xsd:sequence> <xsd:element type="xsd:string" name="CPR" minOccurs="1" nillable="true" maxOccurs="1"> </xsd:element> <xsd:element type="xsd:string" name="PID" minOccurs="1" nillable="true" maxOccurs="1"> </xsd:element> <xsd:element type="xsd:string" name="id" minOccurs="1" nillable="true" maxOccurs="1"> </xsd:element> <xsd:element type="xsd:string" name="redirURL" minOccurs="1" nillable="true" maxOccurs="1"> </xsd:element> <xsd:element type="xsd:string" name="statusCode" minOccurs="1" nillable="true" maxOccurs="1"> </xsd:element> <xsd:element type="xsd:string" name="statusTextDK" minOccurs="1" nillable="true" maxOccurs="1"> </xsd:element> <xsd:element type="xsd:string" name="statusTextUK" minOccurs="1" nillable="true" maxOccurs="1"> </xsd:element> </xsd:sequence> </xsd:complexType> <xsd:complexType name="PIDRequest"> <xsd:sequence> <xsd:element type="xsd:string" name="CPR" minOccurs="1" nillable="true" maxOccurs="1"> </xsd:element> <xsd:element type="xsd:string" name="PID" minOccurs="1" nillable="true" maxOccurs="1"> </xsd:element> <xsd:element type="xsd:string" name="b64Cert" minOccurs="1" nillable="true" maxOccurs="1"> </xsd:element> <xsd:element type="xsd:string" name="id" minOccurs="1" nillable="true" maxOccurs="1"> </xsd:element> <xsd:element type="xsd:string" name="serviceId" minOccurs="1" nillable="true" maxOccurs="1"> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:schema> </types> <message name="testConnection"> <part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="intVal"> </part> </message> <message name="testConnectionResponse"> <part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="result"> </part> </message> <message name="pid"> <part xmlns:partns="java:dk.certifikat.pid.webservices" type="partns:ArrayOfPIDRequest" name="pIDRequests"> </part> </message> <message name="pidResponse"> <part xmlns:partns="java:dk.certifikat.pid.webservices" type="partns:ArrayOfPIDReply" name="result"> </part> </message> <message name="test"> </message> <message name="testResponse"> </message> <portType name="pidwsPort"> <operation name="testConnection"> <input message="tns:testConnection"> </input> <output message="tns:testConnectionResponse"> </output> </operation> <operation name="pid"> <input message="tns:pid"> </input> <output message="tns:pidResponse"> </output> </operation> <operation name="test"> <input message="tns:test"> </input> <output message="tns:testResponse"> </output> </operation> </portType> <binding type="tns:pidwsPort" name="pidwsPort"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"> </soap:binding> <operation name="testConnection"> <soap:operation style="rpc" soapAction=""> </soap:operation> <input> <soap:body namespace="http://localhost/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"> </soap:body> </input> <output> <soap:body namespace="http://localhost/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"> </soap:body> </output> </operation> <operation name="pid"> <soap:operation style="rpc" soapAction=""> </soap:operation> <input> <soap:body namespace="http://localhost/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"> </soap:body> </input> <output> <soap:body namespace="http://localhost/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"> </soap:body> </output> </operation> <operation name="test"> <soap:operation style="rpc" soapAction=""> </soap:operation> <input> <soap:body namespace="http://localhost/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"> </soap:body> </input> <output> <soap:body namespace="http://localhost/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"> </soap:body> </output> </operation> </binding> <service name="pidws"> <port name="pidwsPort" binding="tns:pidwsPort"> <soap:address location="https://test.pid.certifikat.dk:443/pidwsv2/pidws"> </soap:address> </port> </service> </definitions>