-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
1,220 additions
and
592 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
|
||
@SpringBootApplication | ||
public class StoreApplication { | ||
public static void main(String[] args) { | ||
SpringApplication.run(StoreApplication.class, args); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import org.springframework.boot.web.servlet.ServletRegistrationBean; | ||
import org.springframework.context.ApplicationContext; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.core.io.ClassPathResource; | ||
import org.springframework.ws.config.annotation.EnableWs; | ||
import org.springframework.ws.config.annotation.WsConfigurerAdapter; | ||
import org.springframework.ws.transport.http.MessageDispatcherServlet; | ||
import org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition; | ||
import org.springframework.xml.xsd.SimpleXsdSchema; | ||
import org.springframework.xml.xsd.XsdSchema; | ||
|
||
@EnableWs | ||
@Configuration | ||
public class WebServiceConfig extends WsConfigurerAdapter { | ||
|
||
@Bean | ||
public ServletRegistrationBean<MessageDispatcherServlet> messageDispatcherServlet(ApplicationContext applicationContext) { | ||
MessageDispatcherServlet servlet = new MessageDispatcherServlet(); | ||
servlet.setApplicationContext(applicationContext); | ||
servlet.setTransformWsdlLocations(true); | ||
return new ServletRegistrationBean<>(servlet, "/ws/*"); | ||
} | ||
|
||
@Bean(name = "products") | ||
public DefaultWsdl11Definition defaultWsdl11Definition(XsdSchema productsSchema) { | ||
DefaultWsdl11Definition wsdl11Definition = new DefaultWsdl11Definition(); | ||
wsdl11Definition.setPortTypeName("ProductServicePortType"); | ||
wsdl11Definition.setLocationUri("/ws"); | ||
wsdl11Definition.setTargetNamespace("http://store.com/"); | ||
wsdl11Definition.setSchema(productsSchema); | ||
return wsdl11Definition; | ||
} | ||
|
||
@Bean | ||
public XsdSchema productsSchema() { | ||
return new SimpleXsdSchema(new ClassPathResource("products.xsd")); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
src/main/java/com/store/config/StringStringDeserializerConfig.kt
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
src/main/java/com/store/exceptions/UnrecognizedTypeException.kt
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.