[
https://issues.apache.org/jira/browse/RAMPART-305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12893546#action_12893546
]
Herwig David commented on RAMPART-305:
--------------------------------------
Hi Thilina,
I have tried to add the PolicyReference to the <binding> section in the wsdl
file.
1) <wsp:PolicyReference URI="#AsymmetricBindingPolicy"/>
------------------------------------------------------------------------------------
This leads to the following RuntimeException in the Web Service:
2010-07-29 10:01:54,138 [http-8080-Processor24] ERROR
org.apache.axis2.transport.http.AxisServlet - Malformed uri:
AsymmetricBindingPolicy
java.lang.RuntimeException: Malformed uri: AsymmetricBindingPolicy
at
org.apache.neethi.PolicyReference.getRemoteReferedElement(PolicyReference.java:162)
at
org.apache.neethi.PolicyReference.getRemoteReferencedPolicy(PolicyReference.java:176)
at org.apache.neethi.PolicyReference.normalize(PolicyReference.java:112)
at org.apache.axis2.util.PolicyUtil.getMergedPolicy(PolicyUtil.java:290)
at
org.apache.axis2.description.AxisBindingMessage.calculateEffectivePolicy(AxisBindingMessage.java:290)
at
org.apache.axis2.description.AxisBindingMessage.getEffectivePolicy(AxisBindingMessage.java:223)
at
org.apache.axis2.context.MessageContext.getEffectivePolicy(MessageContext.java:1585)
at org.apache.rampart.RampartMessageData.<init>(RampartMessageData.java:202)
2) <wsp:PolicyReference
URI="http://edv156-wskome.medical-intern.com/policies/P1"/>
------------------------------------------------------------------------------------------------------
This leads to a NullPointerException in the Web Client when calling the Web
Service:
java.lang.NullPointerException
at
org.apache.rampart.builder.BindingBuilder.getSignatureBuider(BindingBuilder.java:248)
at
org.apache.rampart.builder.AsymmetricBindingBuilder.doSignature(AsymmetricBindingBuilder.java:626)
at
org.apache.rampart.builder.AsymmetricBindingBuilder.doSignBeforeEncrypt(AsymmetricBindingBuilder.java:413)
at
org.apache.rampart.builder.AsymmetricBindingBuilder.build(AsymmetricBindingBuilder.java:93)
at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:147)
at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:64)
at org.apache.axis2.engine.Phase.invoke(Phase.java:318)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:251)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:416)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:402)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at
com.kohlpharma.ws7x4.WS7X4AssortmentOrderStub.getList(WS7X4AssortmentOrderStub.java:193)
at client.TestClient.doRequest(TestClient.java:152)
Thanks and regards,
Herwig
> If Rampart detects a security error a HTML page is send to the client instead
> of a SOAP fault
> ---------------------------------------------------------------------------------------------
>
> Key: RAMPART-305
> URL: https://issues.apache.org/jira/browse/RAMPART-305
> Project: Rampart
> Issue Type: Bug
> Components: rampart-core
> Affects Versions: 1.4
> Environment: Axis2-1.5..1 is installed as web app under Tomcat 5.5.28
> and uses Rampart 1.4.
> Running on Windows XP
> Reporter: Herwig David
> Assignee: Ruchith Udayanga Fernando
> Attachments: axis2.log, request.txt, response.txt, services.xml,
> WS7X4AssortmentOrder.wsdl
>
>
> If I call a web service with wrong security data rampart correctly detects
> that 'The signature or decryption was invalid'. That's fine.
> Unfortunately I get a NullPointerException when returning to the client
> afterwards.
> Is there a way to just send the SOAP fault back to the client instead of
> sending a HTML page?
> Is this related to issue RAMPART-164?
> I've attached the log file, the wsdl file and messages send between client
> and server.
> Thanks and regards,
> Herwig
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.