You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by David Hoffer <dh...@gmail.com> on 2017/08/21 16:53:40 UTC

Missing CXF SOAP services landing/home page with Spring Boot app

I have a war using Spring Boot (normal J2EE war) deployed to Tomcat, I'm
using CXF 3.1.12 for the SOAP services.

The services work fine but there is no CXF generated landing/home page that
lists all the CXF SOAP services.  How can I get this page? (Or if there is
I don't know the URL)

I do not have any web.xml file, all SOAP endpoint configuration is done via
WebServiceConfig class, typical endpoint is like:

@Bean
public TipMessagePortType tipMessagePortType()
{
    return new TipMessageImpl(createEventMsgsFactory());
}

@Bean(name = "tipMessageEndpoint")
public Endpoint tipMessageEndpoint()
{
    SpringEndpointImpl endpoint = new SpringEndpointImpl(bus,
tipMessagePortType());
    endpoint.setWsdlLocation("/wsdl/tipmsg/TipMessage.wsdl");
    endpoint.publish("/TipMessage");
    return endpoint;
}

How can I configure this so there is a CXF home page that lists all the
services?

-Dave

Re: Missing CXF SOAP services landing/home page with Spring Boot app

Posted by David Hoffer <dh...@gmail.com>.
Okay I will give that a try.

I'd like to suggest that CXF document the default value for this on the
website/docs.

Also perhaps change the default to just /services as the root is how it
works when not in a Spring Boot app so assumed it would still be the same.

-Dave

On Mon, Sep 25, 2017 at 9:08 AM, Dennis Kieselhorst <de...@apache.org> wrote:

> > is there a way to change this?  Could I change it to list services at
> > /services ?
>
> You can use the service-list-path configuration attribute for that.
>
> Regards
> Dennis
>

Re: Missing CXF SOAP services landing/home page with Spring Boot app

Posted by Dennis Kieselhorst <de...@apache.org>.
> is there a way to change this?  Could I change it to list services at
> /services ?

You can use the service-list-path configuration attribute for that.

Regards
Dennis

Re: Missing CXF SOAP services landing/home page with Spring Boot app

Posted by David Hoffer <dh...@gmail.com>.
Thanks that does work fine.  Is this path configurable?  I'm using an
application.yml for configuration and currently just use defaults for CXF,
is there a way to change this?  Could I change it to list services at
/services ?

-Dave

On Sat, Sep 2, 2017 at 4:27 AM, Dennis Kieselhorst <de...@apache.org> wrote:

> Hi,
>
> by default services are listed when calling /services/services, no extra
> configuration necessary.
>
> Regards
> Dennis
>

Re: Missing CXF SOAP services landing/home page with Spring Boot app

Posted by Dennis Kieselhorst <de...@apache.org>.
Hi,

by default services are listed when calling /services/services, no extra
configuration necessary.

Regards
Dennis