wso2 / integration-studio

WSO2 Integration Studio is a development environment used to design integration scenarios and develop them.
Apache License 2.0
68 stars 65 forks source link

[EI Tooling] Cannot edit inline XML entry that is put on create #505

Closed abeykoon closed 1 month ago

abeykoon commented 5 years ago

Description: Steps to reproduce

  1. Create a local entry with wsdl below.

  2. Go to editor plane.

Following issues are there.

  1. When loaded, view is reset to inline text entry.
  2. Inline xml entry is one line text box, which is not user friendly. It should display formatted xml.

Capture7

  <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://sample.esb.org" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://sample.esb.org">
   <wsdl:documentation>LicenseServiceProxy</wsdl:documentation>
   <wsdl:types>
       <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://sample.esb.org">
           <xs:element name="renewLicense">
               <xs:complexType>
                   <xs:sequence>
                       <xs:element minOccurs="0" name="vehicleId" nillable="true" type="xs:string"></xs:element>
                       <xs:element minOccurs="0" name="creditCard" nillable="true" type="xs:string"></xs:element>
                   </xs:sequence>
               </xs:complexType>
           </xs:element>
           <xs:element name="renewLicenseResponse">
               <xs:complexType>
                   <xs:sequence>
                       <xs:element minOccurs="0" name="return" nillable="true" type="xs:string"></xs:element>
                   </xs:sequence>
               </xs:complexType>
           </xs:element>
       </xs:schema>
   </wsdl:types>
   <wsdl:message name="renewLicenseRequest">
       <wsdl:part name="parameters" element="ns:renewLicense"></wsdl:part>
   </wsdl:message>
   <wsdl:message name="renewLicenseResponse">
       <wsdl:part name="parameters" element="ns:renewLicenseResponse"></wsdl:part>
   </wsdl:message>
   <wsdl:portType name="LicenseServiceProxyPortType">
       <wsdl:operation name="renewLicense">
           <wsdl:input message="ns:renewLicenseRequest" wsaw:Action="urn:renewLicense"></wsdl:input>
           <wsdl:output message="ns:renewLicenseResponse" wsaw:Action="urn:renewLicenseResponse"></wsdl:output>
       </wsdl:operation>
   </wsdl:portType>
   <wsdl:binding name="LicenseServiceProxySoap11Binding" type="ns:LicenseServiceProxyPortType">
       <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"></soap:binding>
       <wsdl:operation name="renewLicense">
           <soap:operation soapAction="urn:renewLicense" style="document"></soap:operation>
           <wsdl:input>
               <soap:body use="literal"></soap:body>
           </wsdl:input>
           <wsdl:output>
               <soap:body use="literal"></soap:body>
           </wsdl:output>
       </wsdl:operation>
   </wsdl:binding>
   <wsdl:binding name="LicenseServiceProxySoap12Binding" type="ns:LicenseServiceProxyPortType">
       <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"></soap12:binding>
       <wsdl:operation name="renewLicense">
           <soap12:operation soapAction="urn:renewLicense" style="document"></soap12:operation>
           <wsdl:input>
               <soap12:body use="literal"></soap12:body>
           </wsdl:input>
           <wsdl:output>
               <soap12:body use="literal"></soap12:body>
           </wsdl:output>
       </wsdl:operation>
   </wsdl:binding>
   <wsdl:binding name="LicenseServiceProxyHttpBinding" type="ns:LicenseServiceProxyPortType">
       <http:binding verb="POST"></http:binding>
       <wsdl:operation name="renewLicense">
           <http:operation location="renewLicense"></http:operation>
           <wsdl:input>
               <mime:content type="text/xml" part="parameters"></mime:content>
           </wsdl:input>
           <wsdl:output>
               <mime:content type="text/xml" part="parameters"></mime:content>
           </wsdl:output>
       </wsdl:operation>
   </wsdl:binding>
   <wsdl:service name="LicenseServiceProxy">
       <wsdl:port name="LicenseServiceProxyHttpSoap11Endpoint" binding="ns:LicenseServiceProxySoap11Binding">
           <soap:address location="http://10.100.1.128:9764/services/LicenseServiceProxy.LicenseServiceProxyHttpSoap11Endpoint/"></soap:address>
       </wsdl:port>
       <wsdl:port name="LicenseServiceProxyHttpsSoap11Endpoint" binding="ns:LicenseServiceProxySoap11Binding">
           <soap:address location="https://10.100.1.128:9444/services/LicenseServiceProxy.LicenseServiceProxyHttpsSoap11Endpoint/"></soap:address>
       </wsdl:port>
       <wsdl:port name="LicenseServiceProxyHttpSoap12Endpoint" binding="ns:LicenseServiceProxySoap12Binding">
           <soap12:address location="http://10.100.1.128:9764/services/LicenseServiceProxy.LicenseServiceProxyHttpSoap12Endpoint/"></soap12:address>
       </wsdl:port>
       <wsdl:port name="LicenseServiceProxyHttpsSoap12Endpoint" binding="ns:LicenseServiceProxySoap12Binding">
           <soap12:address location="https://10.100.1.128:9444/services/LicenseServiceProxy.LicenseServiceProxyHttpsSoap12Endpoint/"></soap12:address>
       </wsdl:port>
       <wsdl:port name="LicenseServiceProxyHttpEndpoint" binding="ns:LicenseServiceProxyHttpBinding">
           <http:address location="http://10.100.1.128:9764/services/LicenseServiceProxy.LicenseServiceProxyHttpEndpoint/"></http:address>
       </wsdl:port>
       <wsdl:port name="LicenseServiceProxyHttpsEndpoint" binding="ns:LicenseServiceProxyHttpBinding">
           <http:address location="https://10.100.1.128:9444/services/LicenseServiceProxy.LicenseServiceProxyHttpsEndpoint/"></http:address>
       </wsdl:port>
   </wsdl:service>
</wsdl:definitions>
prabushi commented 5 years ago

A parser error comes on Windows while saving the wsdl content.