This is attachdeploy.wsdd from the samples\attachments that came with Axis
1.1 RC1.

I don't have the WSDL, that is what I'm trying to generate.  See my initial
message for the error I get when trying to generate the WSDL.

<!-- 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="urn:EchoAttachmentsService" >
  
    <service name="urn: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.JAFDataHandlerDeserializerFactory
"
        languageSpecificType="java:javax.activation.DataHandler"
qname="ns1:DataHandler"
        
serializer="org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory"
        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
        />
   </service>
</deployment>


Thanks,
Paul


-----Original Message-----
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 1:21 PM
To: [EMAIL PROTECTED]
Subject: RE: EchoAttachmentsService wsdl generation error


Can you copy and paste the WSDL into an email for us?
At the very least can you show us the WSDL statements where
"urn:EchoAttachmentsService" is used?
Can you also send us the wsdd?

The error is occurring because the WSDL processor is trying to to figure out
what "urn:EchoAttachmentsService" is. It seems to think that urn: is a
namespace prefix, and it can't find a namespace definition for it (e.g.
<xmlns:urn="someURI"). I suspect that you don't intend to use urn: as a
namespace, and that in fact urn:EchoAttachmentsService is a URI. So there's
probably an error in the WSDL file. Perhaps urn:EchoAttachmentsService is
the targetNamespace for the WSDL? (keep in mind that the targetNamespace is
not the same thing at the location (URL) of the WSDL file)

Anne

> -----Original Message-----
> From: Paul Knepper [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 06, 2003 1:16 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: EchoAttachmentsService wsdl generation error
>
>
> Right now its running on a server behind our corporate firewall.
>
> This is a non-modfied deployment of the axis 1.1 RC1.  So its the
> same stuff
> for that downloadable version.
>
> All I did was use the attachdeploy.wsdd to deploy it.
>
>
> -----Original Message-----
> From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 06, 2003 10:09 AM
> To: [EMAIL PROTECTED]
> Subject: RE: EchoAttachmentsService wsdl generation error
>
>
> Paul,
>
> Can you give us a pointer to the WSDL?
>
> It appears that the system views urn: as a namespace prefix, and it can't
> find a namespace declaration for the urn namespace. I suspect
> that the urn:
> is actually the scheme for a URI (e.g. the target namespace for the WSDL
> file) rather than a namespace prefix. Keep in mind that you can't
> resolve a
> urn: uri. If that's the URI of your WSDL file, you can't link it. You'll
> need to give it a resolvable URL -- (i.e., the actual location of the WSDL
> file).
>
> Anne
>
> > -----Original Message-----
> > From: Paul Knepper [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, March 06, 2003 12:05 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: EchoAttachmentsService wsdl generation error
> >
> >
> >
> > I get the following error when I select the (wsdl) link from the service
> > listing page.  The EchoAttachmentsService actual is running and
> the client
> > can connect and everything works fine.  I tried deploying without
> > the "urn:"
> > namespace but it didn't make any difference when trying the wsdl link.
> > Thanks for any help.
> > -Paul
> >
> >
> > AXIS error
> > Sorry, something seems to have gone wrong... here are the details:
> >
> > Fault - ; nested exception is:
> >     WSDLException: faultCode=OTHER_ERROR: Can&apos;t find prefix for
> > &apos;urn:EchoAttachmentsService&apos;. 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&apos;t
> find prefix
> > for &apos;urn:EchoAttachmentsService&apos;. Namespace prefixes
> must be set
> > on the Definition object using the addNamespace(...) method.:
> >  faultActor:
> >  faultNode:
> >  faultDetail:
> >
>

Reply via email to