Results 1 to 2 of 2

Thread: Loading XSD from Jar file

  1. #1
    Join Date
    Jun 2007
    Posts
    7

    Default Loading XSD from Jar file

    Hi,

    I am new to spring IDE and recently installed spring IDE 2.0 with my Eclipse 3.3. I am developing CXF web service application which uses its specific namespaces and XSD into the spring application context. The XSDs are located within the CXF jar file. Please see the following code snippets.

    Code:
    <beans xmlns="http://www.springframework.org/schema/beans"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:jaxws="http://cxf.apache.org/jaxws"
          xmlns:soap="http://cxf.apache.org/bindings/soap"
          xsi:schemaLocation="
    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
    http://cxf.apache.org/bindings/soap http://cxf.apache.org/schemas/configuration/soap.xsd
    http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
    
        <jaxws:endpoint
            id="hello_world"       
            implementor="demo.hw.server.GreeterImpl"
            wsdlLocation="WEB-INF/wsdl/hello_world.wsdl"
            address="/hello_world">
            <jaxws:features>
                <bean class="org.apache.cxf.feature.LoggingFeature"/>
            </jaxws:features>
        </jaxws:endpoint>
    </beans>
    Could someone tell me as to how can I configure Spring IDE so that it finds the XSD from jar file and helpful in editing the application context.

    Thanks,
    Durga

  2. #2
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    Hi,

    you can manually configure Eclipse to know about the XSD. The procedure is described here. That gives you code completion of XML elements defined in the XSD.

    To get full-featured editing and validation support you need to add a Eclipse plugin. See here.

    HTH

    Christian
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •