File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed
client/jaxws/src/org/springframework/ws/samples/mtom/client/jaxws Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public static void main(String[] args) throws IOException {
3838 try {
3939
4040 ImageRepositoryService service = new ImageRepositoryService ();
41- ImageRepository imageRepository = service .getImageRepositoryPort ();
41+ ImageRepository imageRepository = service .getImageRepositorySoap11 ();
4242 SOAPBinding binding = (SOAPBinding ) ((BindingProvider ) imageRepository ).getBinding ();
4343 binding .setMTOMEnabled (true );
4444
Original file line number Diff line number Diff line change 77 <bean class =" org.springframework.ws.samples.mtom.ws.ImageRepositoryEndpoint" >
88 <constructor-arg ref =" imageRepository" />
99 </bean >
10-
10+
1111 <bean class =" org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping" />
1212
1313 <bean class =" org.springframework.ws.server.endpoint.adapter.GenericMarshallingMethodEndpointAdapter" >
1919 <property name =" mtomEnabled" value =" true" />
2020 </bean >
2121
22- <bean id =" mtom" class =" org.springframework.ws.wsdl.wsdl11.DynamicWsdl11Definition" >
23- <property name =" builder" >
24- <bean class =" org.springframework.ws.wsdl.wsdl11.builder.XsdBasedSoap11Wsdl4jDefinitionBuilder" >
25- <property name =" schema" value =" /WEB-INF/schema.xsd" />
26- <property name =" portTypeName" value =" ImageRepository" />
27- <property name =" locationUri" value =" http://localhost:8080/mtom/" />
28- </bean >
29- </property >
22+ <bean id =" mtom" class =" org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition" >
23+ <property name =" schema" ref =" schema" />
24+ <property name =" portTypeName" value =" ImageRepository" />
25+ <property name =" locationUri" value =" http://localhost:8080/mtom/" />
26+ </bean >
27+
28+
29+ <bean id =" schema" class =" org.springframework.xml.xsd.SimpleXsdSchema" >
30+ <property name =" xsd" value =" /WEB-INF/schema.xsd" />
3031 </bean >
3132
3233</beans >
You can’t perform that action at this time.
0 commit comments