This is an automated email from the ASF dual-hosted git repository.
reta pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/main by this push:
new 39109f0742 CXF-8834: "Operation [{.../wsdl}Issue] already exists" when
calling JaxWsServerFactoryBean.create() for SecurityTokenService (#1616)
39109f0742 is described below
commit 39109f07422b4d5bc82a168aabb678f8b84dab41
Author: Andriy Redko <[email protected]>
AuthorDate: Wed Jan 3 20:29:52 2024 -0500
CXF-8834: "Operation [{.../wsdl}Issue] already exists" when calling
JaxWsServerFactoryBean.create() for SecurityTokenService (#1616)
---
.../sts/provider/SecurityTokenService.java | 2 +-
.../sts/provider/SecurityTokenServiceImplTest.java | 13 +++++++--
.../provider/SecurityTokenServiceProviderTest.java | 31 ----------------------
3 files changed, 12 insertions(+), 34 deletions(-)
diff --git
a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/sts/provider/SecurityTokenService.java
b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/sts/provider/SecurityTokenService.java
index 15cd32abde..bde97d55c9 100644
---
a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/sts/provider/SecurityTokenService.java
+++
b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/sts/provider/SecurityTokenService.java
@@ -73,7 +73,7 @@ public interface SecurityTokenService {
partName = "response")
@Action(input =
"http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue",
output =
"http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTRC/IssueFinal")
- @WebMethod(operationName = "Issue")
+ @WebMethod(operationName = "IssueSingle")
RequestSecurityTokenResponseType issueSingle(
@WebParam(partName = "request",
name = "RequestSecurityToken",
diff --git
a/rt/ws/security/src/test/java/org/apache/cxf/ws/security/sts/provider/SecurityTokenServiceImplTest.java
b/rt/ws/security/src/test/java/org/apache/cxf/ws/security/sts/provider/SecurityTokenServiceImplTest.java
index bb03169827..b9774141ef 100644
---
a/rt/ws/security/src/test/java/org/apache/cxf/ws/security/sts/provider/SecurityTokenServiceImplTest.java
+++
b/rt/ws/security/src/test/java/org/apache/cxf/ws/security/sts/provider/SecurityTokenServiceImplTest.java
@@ -19,12 +19,21 @@
package org.apache.cxf.ws.security.sts.provider;
+import org.apache.cxf.endpoint.Server;
+import org.apache.cxf.jaxws.JaxWsServerFactoryBean;
+import org.apache.cxf.transport.local.LocalTransportFactory;
+
import org.junit.Test;
public class SecurityTokenServiceImplTest {
-
@Test
- public void doTest() {
+ public void testCreateService() {
+ final JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
+ factory.setServiceBean(new SecurityTokenServiceImpl());
+ factory.setAddress("local://SecurityTokenService");
+ factory.setTransportId(LocalTransportFactory.TRANSPORT_ID);
+ final Server server = factory.create();
+ server.destroy();
}
}
diff --git
a/rt/ws/security/src/test/java/org/apache/cxf/ws/security/sts/provider/SecurityTokenServiceProviderTest.java
b/rt/ws/security/src/test/java/org/apache/cxf/ws/security/sts/provider/SecurityTokenServiceProviderTest.java
deleted file mode 100644
index eebd36b582..0000000000
---
a/rt/ws/security/src/test/java/org/apache/cxf/ws/security/sts/provider/SecurityTokenServiceProviderTest.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.cxf.ws.security.sts.provider;
-
-import org.junit.Test;
-
-public class SecurityTokenServiceProviderTest {
-
- @Test
- public void doTest() {
-
- }
-
-}