Skip to content

Commit ef8af71

Browse files
committed
Changed use of DynamicWsdl11Defintion to DefaultWsdl11Definitionw
1 parent 33b5dae commit ef8af71

File tree

2 files changed

+29
-27
lines changed

2 files changed

+29
-27
lines changed

samples/tutorial/src/main/webapp/WEB-INF/spring-ws-servlet.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@
3535
</property>
3636
</bean>
3737

38-
<bean id="holiday" class="org.springframework.ws.wsdl.wsdl11.DynamicWsdl11Definition">
39-
<property name="builder">
40-
<bean class="org.springframework.ws.wsdl.wsdl11.builder.XsdBasedSoap11Wsdl4jDefinitionBuilder">
41-
<property name="schema" value="/WEB-INF/hr.xsd"/>
42-
<property name="portTypeName" value="HumanResource"/>
43-
<property name="locationUri" value="http://localhost:8080/holidayService/"/>
44-
<property name="targetNamespace" value="http://mycompany.com/hr/definitions"/>
45-
</bean>
46-
</property>
38+
<bean id="holiday" class="org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition">
39+
<property name="schema" ref="schema"/>
40+
<property name="portTypeName" value="HumanResource"/>
41+
<property name="locationUri" value="http://localhost:8080/holidayService/"/>
42+
<property name="targetNamespace" value="http://mycompany.com/hr/definitions"/>
43+
</bean>
44+
45+
<bean id="schema" class="org.springframework.xml.xsd.SimpleXsdSchema">
46+
<property name="xsd" value="/WEB-INF/hr.xsd"/>
4747
</bean>
4848

4949
</beans>

src/docbkx/tutorial.xml

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -713,22 +713,24 @@ public class HolidayEndpoint extends AbstractJDomPayloadEndpoint {
713713
</para>
714714
<programlistingco>
715715
<areaspec>
716-
<area id="tutorial.wsdl.gen.bean" coords="2"/>
717-
<area id="tutorial.wsdl.gen.schema" coords="5"/>
718-
<area id="tutorial.wsdl.gen.portType" coords="6"/>
719-
<area id="tutorial.wsdl.gen.locationUri" coords="7"/>
720-
<area id="tutorial.wsdl.gen.tns" coords="8"/>
716+
<area id="tutorial.wsdl.gen.bean" coords="1"/>
717+
<areaset id="tutorial.wsdl.gen.schema" coords="">
718+
<area id="tutorial.wsdl.gen.schema.ref" coords="2"/>
719+
<area id="tutorial.wsdl.gen.schema.def" coords="8"/>
720+
</areaset>
721+
<area id="tutorial.wsdl.gen.portType" coords="3"/>
722+
<area id="tutorial.wsdl.gen.locationUri" coords="4"/>
723+
<area id="tutorial.wsdl.gen.tns" coords="5"/>
721724
</areaspec>
722-
<programlisting><![CDATA[
723-
<bean id="holiday" class="org.springframework.ws.wsdl.wsdl11.DynamicWsdl11Definition">
724-
<property name="builder">
725-
<bean class="org.springframework.ws.wsdl.wsdl11.builder.XsdBasedSoap11Wsdl4jDefinitionBuilder">
726-
<property name="schema" value="/WEB-INF/hr.xsd"/>
727-
<property name="portTypeName" value="HumanResource"/>
728-
<property name="locationUri" value="http://localhost:8080/holidayService/"/>
729-
<property name="targetNamespace" value="http://mycompany.com/hr/definitions"/>
730-
</bean>
731-
</property>
725+
<programlisting><![CDATA[<bean id="holiday" class="org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition">
726+
<property name="schema" ref="schema"/>
727+
<property name="portTypeName" value="HumanResource"/>
728+
<property name="locationUri" value="http://localhost:8080/holidayService/"/>
729+
<property name="targetNamespace" value="http://mycompany.com/hr/definitions"/>
730+
</bean>
731+
732+
<bean id="schema" class="org.springframework.xml.xsd.SimpleXsdSchema">
733+
<property name="xsd" value="/WEB-INF/hr.xsd"/>
732734
</bean>]]></programlisting>
733735
<calloutlist>
734736
<callout arearefs="tutorial.wsdl.gen.bean">
@@ -741,9 +743,9 @@ public class HolidayEndpoint extends AbstractJDomPayloadEndpoint {
741743
</callout>
742744
<callout arearefs="tutorial.wsdl.gen.schema">
743745
<para>
744-
The <varname>schema</varname> property is set to the human resource schema we defined in
745-
<xref linkend="tutorial.xsd"/>: we simply placed the schema in the <filename>WEB-INF</filename>
746-
directory of the application.
746+
The <varname>schema</varname> property refers to the human resource schema we defined in
747+
<xref linkend="tutorial.xsd"/>, wrapped in a <classname>SimpleXsdSchema</classname>. We simply
748+
placed the schema in the <filename>WEB-INF</filename> directory of the application.
747749
</para>
748750
</callout>
749751
<callout arearefs="tutorial.wsdl.gen.portType">

0 commit comments

Comments
 (0)