hello i've a Simple WSDL in wich i describe a service that accepts a string in input and give an ID in output.
My original WSDL was more complex, this is only an example... ------------------------------------------------------ <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="http://localhost:8080/ws/services/SimpleService" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://localhost:8080/ws/services/SimpleService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <wsdl:types/> <wsdl:message name="SimpleRequest"> <wsdl:part name="SimpleRequest" type="xsd:string"/> </wsdl:message> <wsdl:message name="SimpleResponse"> <wsdl:part name="SimpleResponse" type="xsd:ID"/> </wsdl:message> <wsdl:portType name="SimpleServicePort"> <wsdl:operation name="Verify"> <wsdl:input message="impl:SimpleRequest" name="VerifyRequest"/> <wsdl:output message="impl:SimpleResponse" name="VerifyResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="SimpleServiceSoapBinding" type="impl:SimpleServicePort"> <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="Verify"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="VerifyRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/ws/services/SimpleService" use="encoded"/> </wsdl:input> <wsdl:output name="VerifyResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/ws/services/SimpleService" use="encoded"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="SimpleService"> <wsdl:port binding="impl:SimpleServiceSoapBinding" name="SimpleService"> <wsdlsoap:address location="http://localhost:8080/ws/services/SimpleService"/> </wsdl:port> </wsdl:service> </wsdl:definitions> ------------------------------------- When i try to generate code with WSDL2Java the response is : ------------------------------------- [root@localhost root]# java org.apache.axis.wsdl.WSDL2Java Simple.wsdl java.io.IOException: The XML Schema type 'ID' is not currently supported. at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:478) at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:384) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:371) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:358) at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:243) at java.lang.Thread.run(Thread.java:536) ------------------------------------------------------ I'm using axis-1.0 Roberto -- Roberto Bertaccini - Web Designer SysNet - Via Digione, 8 - 27100 Pavia (ITALY) Cell : 0339 - 7344356 Home : 02 - 45489192 Fax : 02 - 700403771 E-mail : [EMAIL PROTECTED]