Hi all Now I wrote code like
import javax.xml.soap.*; public class Doc1 { public SOAPMessage getDoc(SOAPMessage sm) { return sm; } } Try to Access wsdl using web browser (http://127.0.0.1:8080/axis/Doc1.jws?wsdl) But it display following error AXIS error Sorry, something seems to have gone wrong... here are the details: Fault - ; nested exception is: WSDLException: faultCode=OTHER_ERROR: Can't find prefix for 'http://soap.xml.javax'. 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 'http://soap.xml.javax'. Namespace prefixes must be set on the Definition object using the addNamespace(...) method.: faultActor: faultNode: faultDetail: Also I try to run axis provided attachment samples same error was occur Please some one know why is that explain me Thanks and regards G J A Priyanjith -----Original Message----- From: Asanka Priyanjitih Sent: Wednesday, March 17, 2004 10:06 AM To: '[EMAIL PROTECTED]' Subject: RE: How to write Document Style web services Hi Senthil Thanks for u r help If u have some example program please sent it to me Thanks & Regards G J A Priyanjith -----Original Message----- From: Senthil_KM [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 9:41 AM To: [EMAIL PROTECTED] Subject: RE: How to write Document Style web services Document style web servcie Client side ----------- Say u have an xml document need to send this to the servcie Creat a SOAPBodyElement [] array and place the root of the XML document in it. Send this as a parameter when you call the web servcie using Call.invoke(param) where param is an Object [] = new Object [] {array} where array the SOAPBodyElement [] In your servcie side. -------------------- Ur method signature shud be Public Element [] getDoc(Element []) Now her ein the Element [] u have the root element of the doc you have sent from the client side U can get access the document onc eu have the root element The wsdd --------- In place of provider="java:RPC" change it to provider="java:MSG" and style="document" And then deply u r webservice using this wsdd!! Rgds senthil -----Original Message----- From: Asanka Priyanjitih [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 9:02 AM To: [EMAIL PROTECTED] Subject: How to write Document Style web services Hi All Who knows? What is process of writing Document style web services and how we can publish this web services to Tomcat application server. Please send me to how to do that Thanks & regards G J A Priaynjith