axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Merz (JIRA)" <>
Subject [jira] Commented: (AXIS-2413) .NET interop: response documents still contain xmlns="" (inconsistent with WSDL)
Date Tue, 21 Feb 2006 06:42:25 GMT
    [ ] 

Michael Merz commented on AXIS-2413:

It looks like a case statement should be added to use the default namespace if the elementFormDefault
is qualified and the namespace is an empty string -- instead of actually adding the "" (empty
string) namespace to the element.

> .NET interop: response documents still contain xmlns="" (inconsistent with WSDL)
> --------------------------------------------------------------------------------
>          Key: AXIS-2413
>          URL:
>      Project: Apache Axis
>         Type: Bug
>     Versions: 1.2.1, 1.3
>     Reporter: Michael Merz

> While the WSDL is generated correctly (since bug #1935 has been fixed), there is a problem
with the actual XML response generated by the Axis Web Service:
> The WSDL:
> <wsdl:types>
> <schema elementFormDefault="qualified" targetNamespace=""
>   <complexType name="ArrayOf_xsd_string">
>     <sequence>
>       <element maxOccurs="unbounded" minOccurs="0" name="item" type="xsd:string" />

>     </sequence>
>   </complexType>
>   <complexType name="RSRepairsList">
>     <sequence>
>       <element name="repairs" nillable="true" type="impl:ArrayOf_xsd_string" />

>     </sequence>
>   </complexType>
>   <element name="listReturn" type="impl:RSRepairsList" /> 
> ...
> An XML response document sent by that very service -- and has the wrong namespace (not
compatible with the schema):
> <?xml version="1.0" encoding="UTF-8" ?> 
> <soapenv:Envelope xmlns:soapenv="" xmlns:xsd=""
>   <soapenv:Body>
>     <listReturn xmlns="">
>       <repairs>
>         <item xmlns="">/Library/drt/testcase1003/main</item> 
>         <item xmlns="">/Library/drt/executioncontexttest/main</item> 
>         <item xmlns="">/Library/drt/testcase683/Test_Data_Entry_01</item>

>         <item xmlns="">/Library/drt/testcase794/testflow</item> 
>       </repairs>
>     </listReturn>
>   </soapenv:Body>
> </soapenv:Envelope>
> My use case is to generate a .NET client by pointing Microsoft's wsdl.exe to the URL
of the live service. In accordance with the WSDL, wsdl.exe expects the namespace for item
to be "", the same namespace as for the array. However,
Axis sends the response using namespace="" for "item".
> An easy hack to get this working is to override the automatically generated client with
C# attributes; however, since this means modifying generated code, it really is a hack rather
than a solution.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message