2 Replies Latest reply on Mar 11, 2010 10:49 PM by ffang

    Example <cxf-osgi>, wsdl file format.

    serg_shamany_na

      Good day.

      The deployment of an example of <cxf-osgi> <apache-servicemix-4.2.0-fuse-01-00>

      and a request from the service wsdl I get the wsdl:

       

      <wsdl:types>

      ...

              <xs:complexType name="sayHi">

                  <xs:sequence>

                      <xs:element minOccurs="0" name="arg0" type="xs:string" />

                  </xs:sequence>

              </xs:complexType>

      ...

              <xs:element name="sayHi" nillable="true" type="sayHi" />

      ...

          </xs:schema>

      </wsdl:types>

       

       

      possible to influence the appearance of the wsdl so to get it in a more familiar form?

       

      <wsdl:types>

      ...

          <xsd:element name="sayHi">

              <xsd:complexType>

                  <xsd:sequence>

                      <xsd:element name="sayHi" type="xsd:string"/>

                  </xsd:sequence>

              </xsd:complexType>

          </xsd:element>

      ...

          </xsd:schema>

      </wsdl:types>

       

      Thanks.

        • 1. Re: Example <cxf-osgi>, wsdl file format.
          serg_shamany_na

          Good day.

          How can I get a WSDL file osgi service in this format?

           

          <wsdl:types>

              <xsd:element name="sayHi">

                  <xsd:complexType>

                      <xsd:sequence>

                          <xsd:element name="sayHi" type="xsd:string"/>

                      </xsd:sequence>

                  </xsd:complexType>

              </xsd:element>

          </wsdl:types>

          • 2. Re: Example <cxf-osgi>, wsdl file format.
            ffang

            Hi,

             

            The wsdl schema actually generated from your java code with JAXB implementation IIRC.

            So if you want change the attribute like

            minOccurs="0" name="arg0"

            You MAY add some annotation to the java SEI code, but not exactly remember what kind of annotation can do it.

             

             

            Freeman