That is what the dynamic wsdl generation facilities of Axis/Jboss.net use and what I was thinking about initially, too.
Hoever, you should consider that the wsdl file will spawn over several web services (ejb+war) only one of them is hit over a particular transport (and hence msgcontext properties) and you would have to adjust the other entries (for which you have no transport information) as well to get a valid wsdl ... CGJ > -----Urspr�ngliche Nachricht----- > Von: Thomas Diesler [mailto:[EMAIL PROTECTED] > Gesendet: Samstag, 22. November 2003 17:33 > An: [EMAIL PROTECTED] > Betreff: RE: [JBoss-dev] WebServer: howto obtain the host and > port generically > > > It is much simpler than that, with RPCProvider.generateWSDL > you get a MessageContext that actually contains all the info > we need to do the mapping. It contains a (large) bag of > random things - axis comment: 'in case somebody needs it'. > > I thought, I share this one :-) > > -thomas > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Jung , Dr. Christoph > Sent: Freitag, 21. November 2003 10:38 > To: '[EMAIL PROTECTED]' > Subject: AW: [JBoss-dev] WebServer: howto obtain the host and > port generically > > > Hi, > > > -----Urspr�ngliche Nachricht----- > > Von: Thomas Diesler (E-mail) [mailto:[EMAIL PROTECTED] > > Gesendet: Freitag, 21. November 2003 10:13 > > An: [EMAIL PROTECTED] > > Betreff: [JBoss-dev] WebServer: howto obtain the host and > > port generically > > > > > > Hi all, > > > > during webservice deployment the WSDL file may specify a dummy port > > location. When feeding back the deployed WSDL I would like > to (must) > > tweak the port location such that it reflects the actual URL the > > webservice is available at. > > You may want to have a look at the servlet > spec/implementation. From its initialisation on, any servlet > (including our jboss.net transport servlets > org.jboss.net.axis.server.AxisServiceServlet and > org.jboss.net.ws4ee.server.WebInvokerServlet) has access to > its javax.servlet.ServletConfig and hence its > javax.servlet.ServletContext which, to my knowledge, will > provide these bits of information. > > Since AxisServiceServlet is quasi-static to the webservice > deployments, registering such data centrally (like in the > org.jboss.net.axis.service.AxisService indexed with a > transport protocol id "http" or so) should not be a problem. > > When it comes to the WebInvokerServlets, this could be a > problem of the start order since servlet.init(config) will be > called after > JSR109Deployer.start() ... maybe we should implement the > patching lazily such that the servlets register in the > ServiceImplBean upon init(), but WSDL patching is not done > until all related deployments have been started and the first > WSDL request is done? > > CGJ > ########################################### > > This message has been scanned by F-Secure Anti-Virus for > Microsoft Exchange. For more information, connect to http://www.F-Secure.com/ ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development ########################################### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/ ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
