You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Victor (JIRA)" <ji...@apache.org> on 2015/08/21 13:22:45 UTC
[jira] [Commented] (AXIS2-4264) Empty action not applied in
CommonsHTTPTransportSender
[ https://issues.apache.org/jira/browse/AXIS2-4264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14706557#comment-14706557 ]
Victor commented on AXIS2-4264:
-------------------------------
Hi, is this really fixed?
I still have problems after moving to Axis2 1.6.3.
If I have an empty (not null) soapAction in the MessageContext, then Axis2 doesn't want to use it as is and insist on using the AxisOperation name instead.
I think the problem is line 469 of CommonsHTTPTransportSender, just after querying the MessageContext for the soapAction, the test consider an empty string as not valid.
Am I mistaken? Thanks!
> Empty action not applied in CommonsHTTPTransportSender
> ------------------------------------------------------
>
> Key: AXIS2-4264
> URL: https://issues.apache.org/jira/browse/AXIS2-4264
> Project: Axis2
> Issue Type: Bug
> Components: transports
> Affects Versions: 1.3, 1.4, 1.4.1, 1.5
> Reporter: Alexis Midon
> Assignee: Rich Scheuerle
> Fix For: 1.6.0
>
> Attachments: AXIS2-4264.patch.txt
>
>
> Hello there,
> I'm invoking a service using a ServiceClient, the wsdl operation declares an empty soapAction.
> However the soapActiuon actually sent is "urn:anonOutInOp" which the server refuses. This action is the action the anonymous operation "urn:anonOutInOp" and is set by the ServiceClient.
> Later when CommonsHTTPTransportSender#findSOAPAction [1] is invoked, if the action of the MessageContext is null or empty, the operation action is used. The empty case seems like a bug, because this is the action set in the wsdl and it is not applied.
> This opinion is strengthened by the fact that other senders do not have this behavior.
> The right behavior would be:
> if null ; use the operation action as a default
> if empty ; send an empty soapAction
> Could you confirm please?
> Alexis
> [1] http://is.gd/m0Mt
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org