Hi everybody!!! I am a newbie about axis. I made up two simple web services and now I want made an upload file samples. I try to use:
[COOKBOOK] Using DataHandler to Send Attachments to a Service you can find it on: http://marc.theaimsgroup.com/?l=axis-user&m=104975049624088&w=2 and http://www.bii.a-star.edu.sg/seg/fileTransfer.html when I compile client all is ok but when I run it I obtain: java.lang.NoClassDefFoundError: javax/xml/namespace/QName at javax.xml.rpc.encoding.XMLType.<clinit>(XMLType.java:26) at sendFile.sendData(sendFile.java:59) at sendFile.main(sendFile.java:76) Exception in thread "main" Finished executing What's the matter? On the server side I have to use .jws file because with wsdd I don't manage to view wsdl: 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: but this is a secondary problem. P.S. Sorry for my english but I'm just a poor Italian student ~~~~~~~~~~~~~~~ Rudi Verago [vLAiN] [EMAIL PROTECTED] ~~~~~~~~~~~~~~~
