Whoops. I was wrong about removing the "address" attribute-- it still doesn't work in the CXFServlet if the address attribute is removed from the config. Doh.
-Chris -----Original Message----- From: Christopher Moesel [mailto:[EMAIL PROTECTED] Sent: Monday, April 30, 2007 12:46 PM To: [email protected]; [EMAIL PROTECTED] Subject: RE: Defining an Endpoint for Standalone AND Webapp Use Sure thing: https://issues.apache.org/jira/browse/CXF-617 Thanks, Chris -----Original Message----- From: Daniel Kulp [mailto:[EMAIL PROTECTED] Sent: Monday, April 30, 2007 12:17 PM To: [email protected] Subject: Re: Defining an Endpoint for Standalone AND Webapp Use On Monday 30 April 2007 12:09, Christopher Moesel wrote: > UPDATE: I've found that if I leave the "address" attribute out of the > jaxws:endpoint configuration, it then defaults to sensible values > (from the wsdl binding?) for both standalone and CXFServlet > deployments. > > Which leads to a question: > > Is there a way to make the standalone deployment be portable? Right > now, it looks like the hostname is hardcoded in the wsdl or config > file. If I choose localhost, then the soap:address in the wsdl is > indeed "localhost". If I choose a real servername, however, then if I > run it from a different server, I need to modify the config/wsdl > myself. The CXFServlet, on the other hand, dynamically changes the > soap:address based on the incoming request URI for the WSDL... The code to do the address modification needs to also occur for the Jetty based server code as well. It currently only works for the servlet stuff. Can you file a bug for that? Dan > > -Chris > > > > -----Original Message----- > From: Christopher Moesel [mailto:[EMAIL PROTECTED] > Sent: Monday, April 30, 2007 11:20 AM > To: [email protected] > Subject: Defining an Endpoint for Standalone AND Webapp Use > > Hello All, > > I would like my CXF service to be able to run standalone or within a > web container, depending on the environment... I am using Spring to > do my configuring. My problem is this: > > In the <jaxws:endpoint> config tag, the "address" attribute means > different things depending on how the service is deployed: > > - In a standalone deployment, it wants the full address with protocol > Ex. address=http://localhost:8080/MyService/services/MyService1 > > - Using CXFServlet, it wants the address relative to the servlet > mapping Ex. (with servlet mapping to /services/*) > address="/MyService1" > > This isn't a super huge big deal, but it looks like I'm going to need > to create a separate config file for each deployment type, and they'll > only differ in the "address" attribute. Is there another way? > > -Chris -- J. Daniel Kulp Principal Engineer IONA P: 781-902-8727 C: 508-380-7194 [EMAIL PROTECTED] http://www.dankulp.com/blog
