小编Lju*_*vit的帖子

不同 URL 上的多个 Spring WS 端点

我正在使用 Spring Boot,就像示例中的https://spring.io/guides/gs/having-web-service/ WS 端点通过MessageDispatcher 在 /ws/* 上公开:

@Bean
public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext) {
    MessageDispatcherServlet servlet = new MessageDispatcherServlet();
    servlet.setApplicationContext(applicationContext);
    servlet.setTransformWsdlLocations(true);
    return new ServletRegistrationBean(servlet, "/ws/*");
} 
Run Code Online (Sandbox Code Playgroud)

我想在不同的 URL 上有 2 个端点。那可能吗?

spring spring-ws

5
推荐指数
0
解决办法
340
查看次数

apache cxf客户端初始化缓慢

我正在使用wsdl2java生成的类和此代码:

MyService f = new MyService();
MyServicePortType type = f.getMyServicePortType();
Run Code Online (Sandbox Code Playgroud)

这些呼叫中的每个呼叫都需要30秒。这是为什么?

java apache soap cxf

4
推荐指数
1
解决办法
2221
查看次数

标签 统计

apache ×1

cxf ×1

java ×1

soap ×1

spring ×1

spring-ws ×1