Announcement Announcement Module
Collapse
No announcement yet.
Loading XSD from Jar file Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment

    Working...
    X