Skip to content

Instantly share code, notes, and snippets.

@davide-romanini
Created April 15, 2011 09:29
Show Gist options
  • Save davide-romanini/921457 to your computer and use it in GitHub Desktop.
Save davide-romanini/921457 to your computer and use it in GitHub Desktop.
<beans>
<bean name="holidayEndpoint" class="org.springframework.scripting.rhino.JavaScriptPayloadEndpointFactory">
<constructor-arg value="classpath:holiday.js" />
<property name="service" ref="hrService" />
</bean>
<bean name="hrService" class="test.rhino.DefaultHumanResourceService" />
<bean class="org.springframework.ws.server.endpoint.mapping.PayloadRootQNameEndpointMapping">
<property name="mappings">
<props>
<prop key="{http://mycompany.com/hr/schemas}HolidayRequest">holidayEndpoint</prop>
</props>
</property>
</bean>
<bean class="org.springframework.scripting.support.ScriptFactoryPostProcessor">
<property name="defaultRefreshCheckDelay" value="3000" />
</bean>
</beans>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment