On Fri, 2005-04-08 at 23:26, Shantanu Sen wrote: > I am trying to test an EJB stateless session bean that I want to > expose as a web service deployed in WebSpehere 6.0 App Server. > I am also adding a handler and the relevant tags in the session bean > are as follows: > > * @wsee.handler > * name="TestCardHandler" > * handler-class="mytestpackage.MyHandler" > * display-name="TestHandler" > > XDoclet generates the webservices.xml with the following fragment for > handlers: > > <handler> > <handler-name>TestCardHandler</handler-name> > <handler-class>mytestpackage.MyHandler</handler-class> > <!-- init paramter should go here --> > <soap-header xmlns:local="">local:</soap-header> > <soap-role></soap-role>
The missing values (i.e. the contents of the xmlns:local attribute, the value which should follow the local:, and the contents of the soap-role element) are generated from the soap-header-namespace-uri, soap-header-local-part and soap-role parameters on the @wsee.handler tag, which you don't appear to have. Andrew. -- > <!-- init parameters are still lacking --> > </handler> > > > When I try to deploy this in WebSphere 6.0 App Server, using their web > deployment tool, I get > the following error > > [4/8/05 12:33:04:781 PDT] 00000029 WSModels E WSWS1000E: Error: > Wrapped exception > org.xml.sax.SAXParseException: The value of the attribute > "prefix="xmlns",localpart="local",rawname="xmlns:local"" is invalid. > Prefixed namespace bindings may not be empty. > at > org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown > Source) > at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown > Source) > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > Source) > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > Source) > at > org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanAttribute(Unknown > Source) > at > org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown > Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown > Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown > Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) > at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) > at javax.xml.parsers.DocumentBuilder.parse(Unknown Source) > at > com.ibm.wtp.internal.emf.xml.util.DOMUtilities.loadDocument(DOMUtilities.java:506) > > When I removed the following section, it went past this problem. > > <soap-header xmlns:local="">local:</soap-header> > <soap-role></soap-role > > Is this a known bug? If so, what is the bug#? > > Thanks, > > Shantanu Sen ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user