Skip to content

Instantly share code, notes, and snippets.

@asilchev
Created December 7, 2012 14:47
Show Gist options
  • Save asilchev/4233702 to your computer and use it in GitHub Desktop.
Save asilchev/4233702 to your computer and use it in GitHub Desktop.
Настройка маршаллинга и публикация wsdl на основе xsd-схемы
<context:component-scan base-package="ru.cti.scp.ws"/>
<sws:annotation-driven/>
<bean id="messageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory">
<description>A message factory to support SOAP 1.1</description>
<property name="soapVersion">
<util:constant static-field="org.springframework.ws.soap.SoapVersion.SOAP_11"/>
</property>
</bean>
<bean class="org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping">
<description>An endpoint mapping strategy that looks for @Endpoint and @PayloadRoot annotations.</description>
</bean>
<oxm:jaxb2-marshaller id="marshaller" contextPath="com.mycompany.hr.schemas"/>
<sws:dynamic-wsdl id="holiday"
portTypeName="HumanResource"
locationUri="/holidayService/"
targetNamespace="http://mycompany.com/hr/schemas">
<sws:xsd location="/WEB-INF/classes/xsd/hr.xsd"/>
</sws:dynamic-wsdl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment