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

Keith Roberts commented on AXIS2-5573:
--------------------------------------

Sorry about that, I figured since the issue was already fixed in Axiom that 
this would be a slam dunk to simply upgrade the version in axis2.

I'm using the default JDK7 stax implementation.  

The failure that occurs is exactly the exception shown in the axiom bug 
description.  This occurs during parsing of the request, and returns a soap 
fault to the client.

Here is a sample schema.  The wsdl contains a service with "ServiceRequest" as 
the request
<xs:schema xmlns:tns="myNamespace" xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
targetNamespace="myNamespace" elementFormDefault="unqualified">

        <xs:element name="ServiceRequest">
                <xs:complexType>
                        <xs:sequence>
                               <xs:element name="someElement" type="xs:string"/>
                        </xs:sequence>
                </xs:complexType>
        </xs:element>


When running that through wsdl.exe, and making the service call, it calls it 
like this

<ServiceRequest xmlns="myNamespace" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
   <someElement xmlns="">value</someElement>
</ServiceRequest>

The xmlns="" is what breaks axiom 1.2.13

                
> web service calls with empty namespace elements fail in 1.6.2
> -------------------------------------------------------------
>
>                 Key: AXIS2-5573
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5573
>             Project: Axis2
>          Issue Type: Bug
>          Components: om
>    Affects Versions: 1.6.2
>         Environment: any
>            Reporter: Keith Roberts
>
> Axiom 1.2.13 introduced a bug where elements like this <element xmlns=""> 
> return null for the namespace and fail
> https://issues.apache.org/jira/browse/AXIOM-441
> This is fixed in Axiom 1.2.14, but this broke any service call to Axis2 1.6.2 
> that calls with elements like that.
> I dropped in the Axis2-axiom jars (1.2.12) from 1.6.1, and the calls started 
> working.
> This occurred when using .net wsdl.exe to make calls to a service where the 
> schema states elementFormDefault="unqualified"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to