Forum Discussion

JaredSNIE's avatar
12 years ago

No security action was defined.

Hi SOAP Community,
I am looking for some direction. First off, Let me start off by saying that I have spent days on google before resorting to posting and while I have made progress, I am now reaching out for a little assistance.

Background:
I used SoapUI to connect to a Soap Server. I had to set Keystore and Keystore Password in the SSL Settings Preferences Tab. Once set, I created a New Soap Project, setting a project name and supplying a .wsdl file that was stored on https. SoapUI created the project and I was able to send Soap messages and receive responses. Once it was established that the project worked. I used the SoapUI tools to create the Apache CXF Generated Code. When I run the generated code and try to access the https service, I have issues, I followed the exact same steps for a service that was hosted on a regular http site and everything worked beautifully. It seems it is specifically the security portion that I am having trouble with.

Problem:
On the Https Client, I am getting the error output:

May 16, 2014 1:08:05 PM org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging
WARNING: Interceptor for Test_transfer#{urn:cdc:iisb:2011}connectivityTest has thrown exception, unwinding now
org.apache.cxf.binding.soap.SoapFault: No security action was defined.
at org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor$WSS4JOutInterceptorInternal.handleMessage(WSS4JOutInterceptor.java:184)
at org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor$WSS4JOutInterceptorInternal.handleMessage(WSS4JOutInterceptor.java:134)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:502)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:411)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:314)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:267)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:137)
at com.sun.proxy.$Proxy48.connectivityTest(Unknown Source)
at com.shastanetworks.soapclient.SoapClient.main(SoapClient.java:69)


What I suspect:
I suspect that I need to create a cxf.xml file or some sort of security profile. But I have been searching the net for days now and there are so many people saying so many different things. I have also looked at the CXF example projects that come with the CXF source and binary.
If anyone is able to point me in the correct direction or give me some specific examples that relate directly to this error message I would greatly appreciate it.

Thank you in advance,
Jared
No RepliesBe the first to reply