Discussion:
[jboss-user] [JBoss Web Services] - ABSOLUTE HELL Calling .Net SSL Webservice from JBOSS 6
Chris Walters
2013-01-23 23:31:14 UTC
Permalink
Chris Walters [https://community.jboss.org/people/cdubsoulrebel] created the discussion

"ABSOLUTE HELL Calling .Net SSL Webservice from JBOSS 6"

To view the discussion, visit: https://community.jboss.org/message/793901#793901

--------------------------------------------------------------
I'm having utter hell calling a secure  .Net based web service over SSL from a JBOSS 6 app. Following is the warning and error that's output to my logfile:

*WARN  [org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl] (SMSSetupService-WorkerThread) No assertion builder for type { http://schemas.xmlsoap.org/ws/2005/07/securitypolicy http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}TransportBinding registered.*
*ERROR (SMSSetupService-WorkerThread) Exception during iteration.: javax.xml.ws.soap.SOAPFaultException: None of the policy alternatives can be satisfied.*
    at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:146) [:2.3.1]
    at $Proxy295.listAccounts2(Unknown Source)    at com.ECNGateway.listAccounts(ECNGateway.java:17) [:]
Caused by: org.apache.cxf.ws.policy.PolicyException: None of the policy alternatives can be satisfied.
    at org.apache.cxf.ws.policy.EndpointPolicyImpl.chooseAlternative(EndpointPolicyImpl.java:166) [:2.3.1]
    at org.apache.cxf.ws.policy.EndpointPolicyImpl.finalizeConfig(EndpointPolicyImpl.java:146) [:2.3.1]
    at org.apache.cxf.ws.policy.EndpointPolicyImpl.initialize(EndpointPolicyImpl.java:142) [:2.3.1]

Following is the policy section of the WSDL:

<wsp:Policy wsu:Id="SoapEndPoint_policy"><wsp:ExactlyOne><wsp:All><sp:TransportBinding><wsp:Policy><sp:TransportToken><wsp:Policy><sp:HttpsToken RequireClientCertificate="false"/></wsp:Policy></sp:TransportToken><sp:AlgorithmSuite><wsp:Policy><sp:Basic256/></wsp:Policy></sp:AlgorithmSuite><sp:Layout><wsp:Policy><sp:Strict/></wsp:Policy></sp:Layout></wsp:Policy></sp:TransportBinding></wsp:All></wsp:ExactlyOne></wsp:Policy>

Can anyone out there offer any guidance in helping me towards a solution ?  I've had no luck thus far in what I've found on various message boards. Thanks.

- CW
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/793901#793901]

Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]
Chris Walters
2013-01-25 16:40:53 UTC
Permalink
Chris Walters [https://community.jboss.org/people/cdubsoulrebel] created the discussion

"Re: ABSOLUTE HELL Calling .Net SSL Webservice from JBOSS 6"

To view the discussion, visit: https://community.jboss.org/message/794345#794345

--------------------------------------------------------------
The solution posed http://stackoverflow.com/questions/12072500/apache-cxf-none-of-the-policy-alternatives-can-be-satisfied here worked for me. Not sure how or why it worked but it worked. I'll do some research into the JaxWsProxyFactory class to see if I can make sense out of why this approach worked.

- CW
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/794345#794345]

Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]
Loading...