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 "Hugues Malphettes (JIRA)" <ji...@apache.org> on 2010/01/20 10:04:56 UTC
[jira] Created: (AXIS2-4608)
org.apache.axis2.builder.BuilderUtil#buildsoapMessage: HTTP Binding with
GET assumes that inner elements are qualified.
org.apache.axis2.builder.BuilderUtil#buildsoapMessage: HTTP Binding with GET assumes that inner elements are qualified.
-----------------------------------------------------------------------------------------------------------------------
Key: AXIS2-4608
URL: https://issues.apache.org/jira/browse/AXIS2-4608
Project: Axis2
Issue Type: Bug
Components: kernel
Affects Versions: 1.6, 1.5.1
Reporter: Hugues Malphettes
When invoking a WSDL with GET with this URL http://localhost:8080/crm/services/mashups/ws/test.xws/Test?New_Input=20091010
and where the schema of the WSDL is using non-qualified elements, the soap message generated uses qualified element.
Here is a more complete example:
<xs:schema attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="file://services/mashups/ws/test.xws">
<xs:complexType name="Exception">
<xs:sequence>
<xs:element minOccurs="0" name="Exception__" nillable="true" type="xs:anyType"/>
</xs:sequence>
</xs:complexType>
<xs:element name="Exception">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="Exception__" nillable="true" type="ns:Exception"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Test">
<xs:complexType>
<xs:sequence>
<xs:element form="unqualified" name="New_Input" type="xs:date"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="TestResponse" type="xs:date"/>
</xs:schema>
The soap message generated by org.apache.axis2.builder.BuilderUtil#buildsoapMessage
is for example:
<axis2ns1:Test xmlns:axis2ns1="file://services/mashups/ws/test.xws">
<axis2ns1:Input1>
foo
</axis2ns1:Input1>
<axis2ns1:Input2>
bar
</axis2ns1:Input2>
</axis2ns1:Test>
It should be:
<axis2ns1:Test xmlns:axis2ns1="file://services/mashups/ws/test.xws">
<Input1>
foo
</Input1>
<Input2>
bar
</Input2>
</axis2ns1:Test>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (AXIS2-4608)
org.apache.axis2.builder.BuilderUtil#buildsoapMessage: HTTP Binding with
GET assumes that inner elements are qualified.
Posted by "Hugues Malphettes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-4608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hugues Malphettes updated AXIS2-4608:
-------------------------------------
Attachment: AXIS2-4608-basic-workaround.patch
This patch fixes the issue when the attribute form="unqualified" is specified on the inner-element.
Trying to come up with a patch that fixes the issue when the form of the element is specified on the schema alone:
<xs:schema elementFormDefault="unqualified"
Please let me know if you expect to fix this bug directly on the XmlSchema API so that getQName() takes ointo account the XmlSchemaForm directly.
> org.apache.axis2.builder.BuilderUtil#buildsoapMessage: HTTP Binding with GET assumes that inner elements are qualified.
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4608
> URL: https://issues.apache.org/jira/browse/AXIS2-4608
> Project: Axis2
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.6, 1.5.1
> Reporter: Hugues Malphettes
> Attachments: AXIS2-4608-basic-workaround.patch
>
>
> When invoking a WSDL with GET with this URL http://localhost:8080/crm/services/mashups/ws/test.xws/Test?New_Input=20091010
> and where the schema of the WSDL is using non-qualified elements, the soap message generated uses qualified element.
> Here is a more complete example:
> <xs:schema attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="file://services/mashups/ws/test.xws">
> <xs:complexType name="Exception">
> <xs:sequence>
> <xs:element minOccurs="0" name="Exception__" nillable="true" type="xs:anyType"/>
> </xs:sequence>
> </xs:complexType>
> <xs:element name="Exception">
> <xs:complexType>
> <xs:sequence>
> <xs:element minOccurs="0" name="Exception__" nillable="true" type="ns:Exception"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="Test">
> <xs:complexType>
> <xs:sequence>
> <xs:element form="unqualified" name="New_Input" type="xs:date"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="TestResponse" type="xs:date"/>
> </xs:schema>
> The soap message generated by org.apache.axis2.builder.BuilderUtil#buildsoapMessage
> is for example:
> <axis2ns1:Test xmlns:axis2ns1="file://services/mashups/ws/test.xws">
> <axis2ns1:Input1>
> foo
> </axis2ns1:Input1>
> <axis2ns1:Input2>
> bar
> </axis2ns1:Input2>
> </axis2ns1:Test>
> It should be:
> <axis2ns1:Test xmlns:axis2ns1="file://services/mashups/ws/test.xws">
> <Input1>
> foo
> </Input1>
> <Input2>
> bar
> </Input2>
> </axis2ns1:Test>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.