Hello ererybody, I am using AXIS/Java 1.1 and I want to create a new Java client for this service (different from the supplied one). At first, the server (I am using JBoss 3.2.5) gave me this error message under the address 'http://localhost:8080/axis/services/EchoAttachmentsService?wsdl':
************************************************************************ ****************************** Sorry, something seems to have gone wrong... here are the details: Fault - ; nested exception is: WSDLException: faultCode=OTHER_ERROR: Can't find prefix for 'urn:EchoAttachmentsService'. Namespace prefixes must be set on the Definition object using the addNamespace(...) method.: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: WSDLException: faultCode=OTHER_ERROR: Can't find prefix for 'urn:EchoAttachmentsService'. Namespace prefixes must be set on the Definition object using the addNamespace(...) method.: faultActor: faultNode: faultDetail: ************************************************************************ ********************************* After changing the wsdd file for this service to: ************************************************************************ ********************************** <!-- This file can be used to deploy the echoAttachments sample --> <!-- using this command: java org.apache.axis.client.AdminClient attachdeploy.wsdd --> <!-- This deploys the echo attachment service. --> <deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java" xmlns:ns1="EchoAttachmentsService" > <service name="EchoAttachmentsService" provider="java:RPC" > <parameter name="className" value="samples.attachments.EchoAttachmentsService"/> <parameter name="allowedMethods" value="echo echoDir"/> <operation name="echo" returnQName="returnqname" returnType="ns1:DataHandler" > <parameter name="dh" type="ns1:DataHandler"/> </operation> <typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" languageSpecificType="java:javax.activation.DataHandler" qname="ns1:DataHandler" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> </service> </deployment> ************************************************************************ ************************************** I got the wsdl of the service, but the tool WSDL2Java complained about the following: ************************************************************************ ************************************** java.io.IOException: Type CommandInfo is referenced but not defined. at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol Table.java:522) at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:422 ) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav a:408) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav a:393) at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:245) at java.lang.Thread.run(Unknown Source) ************************************************************************ *************************************** Does anyone of you have an idea how to fix this? I need the generated Java files to compare them to those generated for an .NET service in terms of interoperability testing. Thanks in advance! Denis -------------------------------------------------------------------------------------------------- This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is intended for the addressee only. Any unauthorized disclosure, use, dissemination, copying, or distribution of this message or any of its attachments or the information contained in this e-mail, or the taking of any action based on it, is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail and delete this message. --------------------------------------------------------------------------------------------- This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is intended for the addressee only. Any unauthorized disclosure, use, dissemination, copying, or distribution of this message or any of its attachments or the information contained in this e-mail, or the taking of any action based on it, is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail and delete this message. --------------------------------------------------------------------------------------------- This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is intended for the addressee only. Any unauthorized disclosure, use, dissemination, copying, or distribution of this message or any of its attachments or the information contained in this e-mail, or the taking of any action based on it, is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail and delete this message. --------------------------------------------------------------------------------------------- This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is intended for the addressee only. Any unauthorized disclosure, use, dissemination, copying, or distribution of this message or any of its attachments or the information contained in this e-mail, or the taking of any action based on it, is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail and delete this message.