Announcement Announcement Module
Collapse
No announcement yet.
Is it hard to integrate WSDLValidationErrorHandler into spring? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is it hard to integrate WSDLValidationErrorHandler into spring?

    Hi all,
    I using metro+spring in my project.


    @SchemaValidation(handler = WSDLValidationErrorHandler.class)
    @WebService(name = "rm", targetNamespace = "http://dev-rm.rssx.hp.com/rm/", endpointInterface = "com.hp.psgit.elements.royalty.app.rm.service. Rm", serviceName = "rm", portName = "rmSOAP")
    public class RmServiceController implements Rm {
    ...........
    }
    I using SchemaValidation annotation to handle wsdl validation.
    Unfortunately,WSDLValidationErrorHandler is not in the spring IOC.
    That mean I can not find any instance what maintained in the IOC.

    Here is the part about How I define the server.
    <wss:binding url="/rm">
    <wss:service>
    <ws:service bean="#rmServiceController">
    <ws:handlers>
    <ref bean="rmHandler" />
    </ws:handlers>
    </ws:service>
    </wss:service>
    </wss:binding>
    <bean id="wSDLValidationErrorHandler"
    class="com.hp.psgit.elements.royalty.validation.WS DLValidationErrorHandler">
    </bean>

    About wSDLValidationErrorHandler
    import com.sun.xml.ws.developer.ValidationErrorHandler;
    public class WSDLValidationErrorHandler extends ValidationErrorHandler {
    .......
    }
    Is there anyway to integrate the wsdlvalidation class into spring configuration file?
    That makes the wsdlvalidation class maintained by spring?

  • #2
    i'm don't know what metro is or this other validator but i think you might be looking for http://static.springsource.org/sprin...r.html#d0e3000

    Comment


    • #3
      I have check the link,but I find that I have no "orders.xsd".
      <property name="schema" value="/WEB-INF/orders.xsd"/>
      What I have is a wsdl,How can I handle this issue?

      Comment


      • #4
        i would convert your wsdl in to a xsd and let spring generate your wsdl at runtime. life will be easier this way.

        Comment

        Working...
        X