Skip to content

Commit

Permalink
CXF-8834: "Operation [{.../wsdl}Issue] already exists" when calling J…
Browse files Browse the repository at this point in the history
…axWsServerFactoryBean.create() for SecurityTokenService (#1616)
  • Loading branch information
reta authored Jan 4, 2024
1 parent 4ce6edd commit 39109f0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ RequestSecurityTokenResponseCollectionType issue(
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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

This file was deleted.

0 comments on commit 39109f0

Please sign in to comment.