Hi all, I have a web service witch has complex types defined in a <type> element and I want to read these types using WSDL4J or WSIF. This is a part of my code (these are my APIs: axis_1.3, wsdl4j_1.5.2, wsif_2.0.1_IB3. I use a Linux Slackware kernel 2.4.26):
WSDLFactory factory; factory = new WSIFWSDLFactoryImpl(); WSDLReader reader = factory.newWSDLReader(); reader.setFeature("javax.wsdl.verbose", true); reader.setFeature("javax.wsdl.importDocuments", true); Definition def = wsdlReader.readWSDL(<URI for WSDL>); System.out.println("WSDL Definition: + def); //List elemSchema = new ArrayList(); //Parser.getAllSchemaTypes(def, elemSchema, null); But element is always null, as you can see in this stdout: WSDL Definition: Definition: name=null targetNamespace=urn:it.service.catalogo Types: SchemaExtensibilityElement ({http://www.w3.org/2001/XMLSchema}schema): required=null element=[schema: null] Message: name={urn:it.service.catalogo}getProdottoResponse Part: name=getProdottoReturn typeName={http://DefaultNamespace}Prodotto Message: name={urn:it.service.catalogo}getProdottoRequest Part: name=in0 typeName={http://DefaultNamespace}Prodotto PortType: name={urn:it.service.catalogo}Catalogo Operation: name=getProdotto parameterOrder=[in0] style=REQUEST_RESPONSE Input: name=getProdottoRequest Message: name={urn:it.service.catalogo}getProdottoRequest Part: name=in0 typeName={http://DefaultNamespace}Prodotto Output: name=getProdottoResponse Message: name={urn:it.service.catalogo}getProdottoResponse Part: name=getProdottoReturn typeName={http://DefaultNamespace}Prodotto Binding: name={urn:it.service.catalogo}CatalogoSoapBinding PortType: name={urn:it.service.catalogo}Catalogo Operation: name=getProdotto parameterOrder=[in0] style=REQUEST_RESPONSE Input: name=getProdottoRequest Message: name={urn:it.service.catalogo}getProdottoRequest Part: name=in0 typeName={http://DefaultNamespace}Prodotto Output: name=getProdottoResponse Message: name={urn:it.service.catalogo}getProdottoResponse Part: name=getProdottoReturn typeName={http://DefaultNamespace}Prodotto BindingOperation: name=getProdotto BindingInput: name=getProdottoRequest SOAPBody ({http://schemas.xmlsoap.org/wsdl/soap/}body): required=null use=encoded encodingStyles=[http://schemas.xmlsoap.org/soap/encoding/] namespaceURI=urn:it.service.catalogo BindingOutput: name=getProdottoResponse SOAPBody ({http://schemas.xmlsoap.org/wsdl/soap/}body): required=null use=encoded encodingStyles=[http://schemas.xmlsoap.org/soap/encoding/] namespaceURI=urn:it.service.catalogo SOAPOperation ({http://schemas.xmlsoap.org/wsdl/soap/}operation): required=null soapActionURI= SOAPBinding ({http://schemas.xmlsoap.org/wsdl/soap/}binding): required=null transportURI=http://schemas.xmlsoap.org/soap/http style=rpc Service: name={urn:it.service.catalogo}CatalogoService Port: name=Catalogo Binding: name={urn:it.service.catalogo}CatalogoSoapBinding PortType: name={urn:it.service.catalogo}Catalogo Operation: name=getProdotto parameterOrder=[in0] style=REQUEST_RESPONSE Input: name=getProdottoRequest Message: name={urn:it.service.catalogo}getProdottoRequest Part: name=in0 typeName={http://DefaultNamespace}Prodotto Output: name=getProdottoResponse Message: name={urn:it.service.catalogo}getProdottoResponse Part: name=getProdottoReturn typeName={http://DefaultNamespace}Prodotto BindingOperation: name=getProdotto BindingInput: name=getProdottoRequest SOAPBody ({http://schemas.xmlsoap.org/wsdl/soap/}body): required=null use=encoded encodingStyles=[http://schemas.xmlsoap.org/soap/encoding/] namespaceURI=urn:it.service.catalogo BindingOutput: name=getProdottoResponse SOAPBody ({http://schemas.xmlsoap.org/wsdl/soap/}body): required=null use=encoded encodingStyles=[http://schemas.xmlsoap.org/soap/encoding/] namespaceURI=urn:it.service.catalogo SOAPOperation ({http://schemas.xmlsoap.org/wsdl/soap/}operation): required=null soapActionURI= SOAPBinding ({http://schemas.xmlsoap.org/wsdl/soap/}binding): required=null transportURI=http://schemas.xmlsoap.org/soap/http style=rpc SOAPAddress ({http://schemas.xmlsoap.org/wsdl/soap/}address): required=null locationURI=http://localhost:8080/axis/services/Catalogo binding qname: {urn:it.service.catalogo}CatalogoSoapBinding I have tried to implement this code using WSIF API (WISFFactoryImpl and WSIFUtils), but i have recived the same output. Do you know why this is happening? If anyone could help me, I would be very grateful. Thanks a lot Luca "Un oceano di silenzio scorre lento senza centro nè principio..." (F. Battiato). ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]