schemaLocation attribute for swaRef namespace 
"http://ws-i.org/profiles/basic/1.1/xsd";  is wrongly removed 
-----------------------------------------------------------------------------------------------------------

                 Key: CXF-4095
                 URL: https://issues.apache.org/jira/browse/CXF-4095
             Project: CXF
          Issue Type: Bug
          Components: JAXB Databinding
    Affects Versions: 2.5.2, 2.4.6
         Environment: The schemaLocation for swaRef namespace is wrongly 
removed in the wsdl generated from class:

@WebService
public interface AddNumbers {
    @WebMethod
    int addNumbers(@WebParam
                   @XmlAttachmentRef
                   DataHandler body);
}

This schema is expected:

<xs:schema version="1.0" targetNamespace="http://attachment.apache.org/"; 
xmlns:tns="http://attachment.apache.org/"; 
xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:swaRef="http://ws-i.org/profiles/basic/1.1/xsd";>

  <xs:import namespace="http://ws-i.org/profiles/basic/1.1/xsd"; 
schemaLocation="http://ws-i.org/profiles/basic/1.1/swaref.xsd"/>
  <xs:element name="addNumbers" type="tns:addNumbers"/>

  <xs:element name="addNumbersResponse" type="tns:addNumbersResponse"/>

  <xs:complexType name="addNumbers">
    <xs:sequence>
      <xs:element name="arg0" type="swaRef:swaRef" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="addNumbersResponse">
    <xs:sequence>
      <xs:element name="return" type="xs:int"/>
    </xs:sequence>
  </xs:complexType>
</xs:schema>
            Reporter: jimma
            Assignee: jimma
             Fix For: 2.4.7, 2.5.3, 2.6




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to