If you just want the Java files out of this wsdl. I have a trick. 
Change the locations tns1:DataHandler[] and tns1:DataHandler in the wsdl
to apachesoap:DataHandler[] and apachesoap:DataHandler and run WSDL2Java
you will get the files generated.
All together in 3 locations you would be making the changes, that's it.

Don't ask me how files got generated. I have my own doubts :)

Hope that helps,
Jayachandra

-----Original Message-----
From: Denis Schlesinger [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 08, 2004 5:22 PM
To: [EMAIL PROTECTED]
Subject: Problems with the WSDL of the EchoAttachmentsService sample

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.


Reply via email to