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 "Robert Lazarski (Jira)" <ji...@apache.org> on 2020/04/06 14:00:02 UTC

[jira] [Comment Edited] (AXIS2-5981) AXIS2 1.7.9 lower cases element name in ServiceClient object sendReceive() method

    [ https://issues.apache.org/jira/browse/AXIS2-5981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17076353#comment-17076353 ] 

Robert Lazarski edited comment on AXIS2-5981 at 4/6/20, 1:59 PM:
-----------------------------------------------------------------

For my own axis2 projects since 2005 I've always defined a namespace, I don't remember when it became mandatory but anyways try coding a namespace in the form of:

"http://mycompany.com/myservice"

The namespace doesn't have to be a valid FQDN or even match the service name. Just be consistent on both the client and server sides.

There are code examples and unit tests in the source code. Can you simply add a namespace following the docs?


was (Author: robertlazarski):
For my own axis2 projects since 2005 I've always defined a namespace, I don't remember when it became mandatory but anyways try coding a namespace in the form of.

"http://mycompany.com/myservice"

The namespace doesn't have to be a valid FQDN or even match the service name. Just be consistent on both the client and server sides. 

There are code examples and unit tests in the source code. Can you simple add a namespace following the docs?

> AXIS2 1.7.9 lower cases element name in ServiceClient object sendReceive() method
> ---------------------------------------------------------------------------------
>
>                 Key: AXIS2-5981
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5981
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.7.9
>         Environment: Windows 10 Enterprise Build 10.0.18363
>            Reporter: Steve Schaefer
>            Priority: Major
>
> I've upgraded from AXIS2 1.3 to 1.7.9 and the call to my SOAP service stopped working. It's returning the exception "org.apache.axis2.AxisFault: while trying to invoke the method org.apache.axiom.om.OMElement.getText() of a null object loaded from local variable 'runidNode'". I can see that I'm passing the mixed case runID into the sendReceive() method but the SOAP service is receiving it all lower case? I get the same error if I call the service from Postman with all lowercase "runid" element.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org