hi Stepan, Thank you VERY much for your help !
The problem was solved by changing the namespace 'tns1' to 'apachesoap'. I think it is a bug of this sample, because the 'tns1' is written in the deploy.wsdd file. BTW: the namespace 'apachesoap' references to 'http://xml.apache.org/xml-soap', by the page is not found. Is it a namespace defined inside the axis implementation? Thanks again ! - sukie ----- Original Message ----- From: "Stepan Kalichkin" <[EMAIL PROTECTED]> To: "itsu sukie" <[EMAIL PROTECTED]> Sent: Tuesday, June 06, 2006 7:25 PM Subject: -- Why there is No DataHandler definition in wsdl? > 1. Check you CLASSPATH for org.apache.axis.wsdl.WSDL2Java > my output is: > echo $AXISCLASSPATH > /srv/www/tomcat5/base/webapps/axis/WEB-INF/lib/axis.jar:/srv/www/tomcat5/bas e/webapps/axis/WEB-INF/lib//commons-discovery-0.2.jar:/srv/www/tomcat5/base/ webapps/axis/WEB-INF/lib//commons-logging-1.0.4.jar:/srv/www/tomcat5/base/we bapps/axis/WEB-INF/lib//jaxrpc.jar:/srv/www/tomcat5/base/webapps/axis/WEB-IN F/lib//saaj.jar:/srv/www/tomcat5/base/webapps/axis/WEB-INF/lib//log4j-1.2.8. jar:/srv/www/tomcat5/base/webapps/axis/WEB-INF/lib//mail.jar:/srv/www/tomcat 5/base/webapps/axis/WEB-INF/lib//wsdl4j-1.5.1.jar:/srv/www/tomcat5/base/weba pps/axis/WEB-INF/lib//jaf-1.0.2.jar > > It must include implementation of javax.activation lib. jaf-1.0.2.jar in my > case. > > 2. check your wsdl > it should like this > > > ........ > <definitions name="urn:ProductsFetcher" > targetNamespace="urn:Products" > xmlns:tns="urn:Products" > xmlns:java="http://xml.apache.org/axis/wsdd/providers/java" > xmlns:type_ns="urn:Products" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" > xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" > xmlns:apachesoap="http://xml.apache.org/xml-soap" > xmlns="http://schemas.xmlsoap.org/wsdl/"> > > > .......... > <xsd:complexType name="ArrayOfDocuments"> > <xsd:complexContent> > <xsd:restriction base="soapenc:Array"> > <xsd:attribute ref="soapenc:arrayType" > arrayType="apachesoap:DataHandler[]"/> > </xsd:restriction> > </xsd:complexContent> > </xsd:complexType> > ............. > or some stuff suitable for your case > So DataHandler should be in apachesoap namespace. > > P.S. If it'll help for you please submit it in axis-user mail list. > > Stepan. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
