Hi Kumar, Luciano, et. al.

There is an issue with the WSDD file of EchoAttachmentsService in axis
sample. The namespace declaration is missing for the type mapping. That
is why you see the following exception: 
"Namespace prefixes must be set on the Definition"

Please try the attached WSDD file and see if it works for you. I
modified the original WSDD file from axis samples and it is working fine
for me now. But as I mentioned in my last email, the axis generated WSDL
will not contain the attachment information in the <binding>. But that
does not mean that the deployment is incorrect.

Start of wsdd file
------------------

   <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"
xmlns:ns1="http://schemas.xmlsoap.org/soap/encoding/"/>
       </operation>

  <typeMapping
deserializer="org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFac
tory"
        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
        qname="ns1:DataHandler"
 
serializer="org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory
"
        languageSpecificType="java:javax.activation.DataHandler" 
        xmlns:ns1="http://schemas.xmlsoap.org/soap/encoding/"/>

   </service>

--------------------------
end of wsdd file


Hope this helps.

Best regards,
Shrikant Wagh
QA Lead, HPP/Eprofile, HP

For those who are interested in Web Services testing:
-----------------------------------------------------
I found that WebServiceTester from Optimyz software is a very good tool
for testing any types of web services, and I'm great fan of this tool.
It supports all types of web services, and all simple and complex types
and it very usable than any other tool in the market I ever
used/evaluated. It automatically generates the SOAP requests and invokes
the intended web services. It can perform functional, regression and
load testing of web services. Result analysis and status reporting is
just wonderful.  I'll highly recommend this tool for testing web
services, saves lots of time and efforts in testing web services. For
more information visit http://www.optimyz.com.

DISCLAIMER
================================================================
THESE ARE MY PERSONAL VIEWS/OPINIONS AND DOES NOT REPRESENT HP, AND THE
INFORMATION PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
THE I/HP BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
INFORMATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
=================================================================

-----Original Message-----
From: Nair Kumar [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 25, 2004 9:50 AM
To: '[EMAIL PROTECTED]'
Subject: RE: EchoAtttachment sample

Luciano,

My understanding was that axis generates the wsdl automatically when
viewed
from the browser using the url.

Am I missing something ?

-thanks,
  Kumar

> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]
> Sent: Wednesday, February 25, 2004 12:11 AM
> To:   [EMAIL PROTECTED]
> Subject:      RE: EchoAtttachment sample
> 
> Hi Nair, 
> I managed to run the sample. 
> You should carefully read the readme file inside the
/samples/attachments
> folder 
> (expecially the CLASSPATH part). 
> The wsdl is missing from the folder and therefore it cannot be
deployed 
> on the server. This is why you get that error. Remember that in 
> order to deploy a webservice you need at least the WSDD but not the 
> WSDL. 
> You can try to generate the WSDL against the EchoAttachmentService
class. 
> 
> Luciano 
> 
> -----Original Message----- 
> From: Nair Kumar [ <mailto:[EMAIL PROTECTED]>] 
> Sent: Wednesday 25 February 2004 07:03 
> To: [EMAIL PROTECTED] 
> Subject: EchoAtttachment sample 
> 
> 
> Has anyone tried the EchoAttachment sample under the samples folder of

> axis1.1? 
> 
> After I deploy this sample, when I try to view the corresponding wsdl
from
> 
> the browser using the url 
> "
<http://localhost:8080/axis/services/urn:EchoAttachmentsService?wsdl>"  
> 
> I get the error  
> 
> Fault - ; nested exception is: WSDLException: faultCode=OTHER_ERROR: 
> Can&apos;t find prefix for &apos;urn:ClaimStatus&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:ClaimStatus&apos;. Namespace prefixes must
be
> set 
> on the Definition object using the addNamespace(...) method.:
faultActor: 
> faultNode: faultDetail: 
> 
> 
> Has anyone tried this sample? Also has anyone tried to generate the
wsdl 
> from the browser? 
> 
> Any help would be appreciated. 
> 
> -thanks, 
>   Kumar 
> 
> 
> This electronic message transmission, including any attachments,
contains 
> information from PacifiCare Health Systems Inc. which may be
confidential
> or 
> privileged. The information is intended to be for the use of the
> individual or 
> entity named above. If you are not the intended recipient, be aware
that
> any 
> disclosure, copying, distribution or use of the contents of this
> information 
> is prohibited.  
> If you have received this electronic transmission in error, please
notify
> the 
> sender immediately by a "reply to sender only" message and destroy all

> electronic and hard copies of the communication, including
attachments. 
> 
> 
>  
> 
> Any e-mail message from the European Central Bank (ECB) is sent in
good
> faith but shall neither be binding nor construed as constituting a
> commitment by the ECB except where provided for in a written
agreement.
> This e-mail is intended only for the use of the recipient(s) named
above.
> Any unauthorised disclosure, use or dissemination, either in whole or
in
> part, is prohibited.
> If you have received this e-mail in error, please notify the sender
> immediately via e-mail and delete this e-mail from your system.
> 
> 

This electronic message transmission, including any attachments,
contains
information from PacifiCare Health Systems Inc. which may be
confidential or
privileged. The information is intended to be for the use of the
individual or
entity named above. If you are not the intended recipient, be aware that
any
disclosure, copying, distribution or use of the contents of this
information
is prohibited.  
If you have received this electronic transmission in error, please
notify the
sender immediately by a "reply to sender only" message and destroy all
electronic and hard copies of the communication, including attachments.


Reply via email to