Sensitivity to the wsdl class java class

In wsdl, I have 2 types, the same name, different cases: LoginResponse and LOGINRESPONSE.

If I use xfire to generate java classes, it generates only one class, LoginResponse, dropping LOGINRESPONSE.

How do I get around this?

<s:element name="LoginResponse">
    <s:complexType>
      <s:sequence>
        <s:element minOccurs="0" maxOccurs="1" name="LoginResult" type="tns:LOGINRESPONSE" />
      </s:sequence>
    </s:complexType>
  </s:element>

  <s:complexType name="LOGINRESPONSE">
    <s:attribute name="Message" type="s:string" />
    <s:attribute name="Token" type="s:string" />
    <s:attribute name="DataFormat" type="s:string" />
    <s:attribute name="Header" type="s:boolean" use="required" />
    <s:attribute name="Suffix" type="s:boolean" use="required" />
  </s:complexType>
+3
source share
1 answer

Names declared in WSDL are indeed case sensitive, and it is legal to use names that differ only in their case. However, this should be a bad idea:

  • , . ( , Java-, acat acat . ?)

  • WSDL , WSDL (, Visual Basic, , ), , . WSDL, , .

- - WSDL, , .., .

+1

Source: https://habr.com/ru/post/1756309/


All Articles