org.springframework.xml.xsd.XsdSchema Java Examples
The following examples show how to use
org.springframework.xml.xsd.XsdSchema.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: XTeeWsdlDefinition.java From j-road with Apache License 2.0 | 6 votes |
public void afterPropertiesSet() throws Exception { soapProvider.setLocationUri("http://SECURITY_SERVER/cgi-bin/consumer_proxy"); soapProvider.setXRoadDatabase(xRoadDatabase); soapProvider.setXRoadEndpointMapping(xRoadEndpointMapping); portTypesProvider.setXRoadEndpointMapping(xRoadEndpointMapping); setRequestSuffix(SuffixBasedMessagesProvider.DEFAULT_REQUEST_SUFFIX); setResponseSuffix(SuffixBasedMessagesProvider.DEFAULT_RESPONSE_SUFFIX); String targetNamespace = StringUtils.hasText(xRoadTargetNamespace) ? xRoadTargetNamespace : "http://" + xRoadDatabase + ".x-road.eu"; delegate.setTargetNamespace(targetNamespace); if (!StringUtils.hasText(delegate.getTargetNamespace()) && typesProvider.getSchemaCollection() != null && typesProvider.getSchemaCollection().getXsdSchemas().length > 0) { XsdSchema schema = typesProvider.getSchemaCollection().getXsdSchemas()[0]; delegate.setTargetNamespace(schema.getTargetNamespace()); } if (!StringUtils.hasText(serviceName) && StringUtils.hasText(portTypesProvider.getPortTypeName())) { soapProvider.setServiceName(portTypesProvider.getPortTypeName() + "Service"); } delegate.afterPropertiesSet(); addXRoadExtensions(delegate.getDefinition()); }
Example #2
Source File: WebServiceConfig.java From spring-web-services with MIT License | 5 votes |
@Bean(name = "courses") public DefaultWsdl11Definition defaultWsdl11Definition(XsdSchema coursesSchema) { DefaultWsdl11Definition definition = new DefaultWsdl11Definition(); definition.setPortTypeName("CoursePort"); definition.setTargetNamespace("http://in28minutes.com/courses"); definition.setLocationUri("/ws"); definition.setSchema(coursesSchema); return definition; }
Example #3
Source File: WebServiceConfig.java From spring-boot-samples with Apache License 2.0 | 5 votes |
@Bean(name = "countries") public DefaultWsdl11Definition defaultWsdl11Definition(XsdSchema countriesSchema) { DefaultWsdl11Definition wsdl11Definition = new DefaultWsdl11Definition(); wsdl11Definition.setPortTypeName("CountriesPort"); wsdl11Definition.setLocationUri("/ws"); wsdl11Definition.setTargetNamespace("http://spring.io/guides/gs-producing-web-service"); wsdl11Definition.setSchema(countriesSchema); return wsdl11Definition; }
Example #4
Source File: WebServiceConfig.java From spring-boot-samples with Apache License 2.0 | 5 votes |
@Bean(name="holiday") //http://localhost:8080/services/holiday.wsdl public DefaultWsdl11Definition defaultWsdl11Definition( XsdSchema countriesSchema){ DefaultWsdl11Definition wsdl11Definition = new DefaultWsdl11Definition(); wsdl11Definition.setPortTypeName("HumanResource"); wsdl11Definition.setLocationUri("/holidayService"); wsdl11Definition.setTargetNamespace("http://joedayz.pe/hr/definitions"); wsdl11Definition.setSchema(countriesSchema); return wsdl11Definition; }
Example #5
Source File: WebServiceConfig.java From ddd-strategic-design-spring-boot with Apache License 2.0 | 5 votes |
@Bean(name = "customers") public DefaultWsdl11Definition defaultWsdl11Definition(XsdSchema countriesSchema) { DefaultWsdl11Definition wsdl11Definition = new DefaultWsdl11Definition(); wsdl11Definition.setPortTypeName("CustomersPort"); wsdl11Definition.setLocationUri("/ws"); wsdl11Definition.setTargetNamespace("http://innoq.com/mploed/ddd/customer/ws"); wsdl11Definition.setSchema(countriesSchema); return wsdl11Definition; }
Example #6
Source File: WebServiceConfig.java From springboot-learn with MIT License | 5 votes |
/** * DefaultWsdl11Definitionid 默认就是发布的ws的访问路径。 * spring-ws发布的webservice是以后缀.wsdl访问的,跟传统的?wsdl不大一样 * * @param countriesSchema * @return */ @Bean(name = "countries") public DefaultWsdl11Definition defaultWsdl11Definition(XsdSchema countriesSchema) { DefaultWsdl11Definition wsdl11Definition = new DefaultWsdl11Definition(); wsdl11Definition.setPortTypeName("CountriesPort"); wsdl11Definition.setLocationUri("/ws"); wsdl11Definition.setTargetNamespace("http://127.0.0.1:8080/ws"); wsdl11Definition.setSchema(countriesSchema); return wsdl11Definition; }
Example #7
Source File: WebServiceConfig.java From cloud-native-microservice-strangler-example with GNU General Public License v3.0 | 5 votes |
@Bean(name = "customers") public DefaultWsdl11Definition defaultWsdl11Definition(XsdSchema customersSchema) { DefaultWsdl11Definition wsdl11Definition = new DefaultWsdl11Definition(); wsdl11Definition.setPortTypeName("CustomersPort"); wsdl11Definition.setLocationUri("/v1/customers"); wsdl11Definition.setTargetNamespace("http://kennybastani.com/guides/customer-service"); wsdl11Definition.setSchema(customersSchema); return wsdl11Definition; }
Example #8
Source File: WebServiceConfig.java From spring-boot-samples with Apache License 2.0 | 5 votes |
@Bean(name="students") //http://localhost:8080/services/students.wsdl public DefaultWsdl11Definition studentsWsdl11Definition( XsdSchema studentsSchema){ DefaultWsdl11Definition wsdl11Definition = new DefaultWsdl11Definition(); wsdl11Definition.setPortTypeName("StudentResource"); wsdl11Definition.setLocationUri("/studentService"); wsdl11Definition.setTargetNamespace("http://joedayz.pe/soap"); wsdl11Definition.setSchema(studentsSchema); return wsdl11Definition; }
Example #9
Source File: WebServiceConfig.java From cloud-native-microservice-strangler-example with GNU General Public License v3.0 | 5 votes |
@Bean(name = "customers") public DefaultWsdl11Definition defaultWsdl11Definition(XsdSchema customersSchema) { DefaultWsdl11Definition wsdl11Definition = new DefaultWsdl11Definition(); wsdl11Definition.setPortTypeName("CustomersPort"); wsdl11Definition.setLocationUri("/v1/customers"); wsdl11Definition.setTargetNamespace("http://kennybastani.com/guides/customer-service"); wsdl11Definition.setSchema(customersSchema); return wsdl11Definition; }
Example #10
Source File: WebServiceConfig.java From freeacs with MIT License | 5 votes |
@Bean(name = "acs") public DefaultWsdl11Definition defaultWsdl11Definition(XsdSchema countriesSchema) { DefaultWsdl11Definition wsdl11Definition = new DefaultWsdl11Definition(); wsdl11Definition.setPortTypeName("ACSPort"); wsdl11Definition.setLocationUri("/ws"); wsdl11Definition.setTargetNamespace(NAMESPACE_URI); wsdl11Definition.setSchema(countriesSchema); return wsdl11Definition; }
Example #11
Source File: WebServiceConfig.java From Spring with Apache License 2.0 | 5 votes |
@Bean(name = "userMessage") public DefaultWsdl11Definition defaultWsdl11Definition(XsdSchema userMessageSchema) { DefaultWsdl11Definition wsdl11Definition = new DefaultWsdl11Definition(); wsdl11Definition.setPortTypeName("UsersPort"); wsdl11Definition.setLocationUri("/ws"); wsdl11Definition.setTargetNamespace(UserMessageEndpoint.NAMESPACE_URI); wsdl11Definition.setSchema(userMessageSchema); return wsdl11Definition; }
Example #12
Source File: WebServiceConfig.java From tutorials with MIT License | 5 votes |
@Bean(name = "countries") public DefaultWsdl11Definition defaultWsdl11Definition(XsdSchema countriesSchema) { DefaultWsdl11Definition wsdl11Definition = new DefaultWsdl11Definition(); wsdl11Definition.setPortTypeName("CountriesPort"); wsdl11Definition.setLocationUri("/ws"); wsdl11Definition.setTargetNamespace("http://www.baeldung.com/springsoap/gen"); wsdl11Definition.setSchema(countriesSchema); return wsdl11Definition; }
Example #13
Source File: WebServiceConfig.java From Spring with Apache License 2.0 | 5 votes |
@Bean(name = "courses") public DefaultWsdl11Definition defaultWsdl11Definition(XsdSchema coursesSchema) { final DefaultWsdl11Definition definition = new DefaultWsdl11Definition(); definition.setPortTypeName("CoursePort"); definition.setTargetNamespace("http://localhost:8080/courses"); definition.setLocationUri("/ws"); definition.setSchema(coursesSchema); return definition; }
Example #14
Source File: WebServiceConfig.java From spring-boot-samples with Apache License 2.0 | 4 votes |
@Bean public XsdSchema countriesSchema(){ return new SimpleXsdSchema( new ClassPathResource("META-INF/schemas/hr.xsd")); }
Example #15
Source File: WebServiceConfig.java From cloud-native-microservice-strangler-example with GNU General Public License v3.0 | 4 votes |
@Bean public XsdSchema customersSchema() { return new SimpleXsdSchema(new ClassPathResource("customers.xsd")); }
Example #16
Source File: WebServiceConfig.java From spring-boot-samples with Apache License 2.0 | 4 votes |
@Bean public XsdSchema studentsSchema(){ return new SimpleXsdSchema( new ClassPathResource("META-INF/schemas/students.xsd")); }
Example #17
Source File: WebServiceConfig.java From tutorials with MIT License | 4 votes |
@Bean public XsdSchema countriesSchema() { return new SimpleXsdSchema(new ClassPathResource("countries.xsd")); }
Example #18
Source File: WebServiceConfig.java From spring-boot-samples with Apache License 2.0 | 4 votes |
@Bean public XsdSchema countriesSchema() { return new SimpleXsdSchema(new ClassPathResource("countries.xsd")); }
Example #19
Source File: WebServiceConfig.java From ddd-strategic-design-spring-boot with Apache License 2.0 | 4 votes |
@Bean public XsdSchema customersSchema() { return new SimpleXsdSchema(new ClassPathResource("customers.xsd")); }
Example #20
Source File: WebServiceConfig.java From cloud-native-microservice-strangler-example with GNU General Public License v3.0 | 4 votes |
@Bean public XsdSchema customersSchema() { return new SimpleXsdSchema(new ClassPathResource("customers.xsd")); }
Example #21
Source File: WebServiceConfig.java From spring-web-services with MIT License | 4 votes |
@Bean public XsdSchema coursesSchema() { return new SimpleXsdSchema(new ClassPathResource("course-details.xsd")); }
Example #22
Source File: WebServiceConfig.java From freeacs with MIT License | 4 votes |
@Bean public XsdSchema countriesSchema() { return new SimpleXsdSchema(new ClassPathResource("xsd/acs.xsd")); }
Example #23
Source File: WebServiceConfig.java From Spring with Apache License 2.0 | 4 votes |
@Bean public XsdSchema userMessageSchema() { return new SimpleXsdSchema(new ClassPathResource("sample/userMessage.xsd")); }
Example #24
Source File: WebServiceConfig.java From Spring with Apache License 2.0 | 4 votes |
@Bean public XsdSchema coursesSchema() { return new SimpleXsdSchema(new ClassPathResource("course-details.xsd")); }
Example #25
Source File: WebServiceConfig.java From springboot-learn with MIT License | 4 votes |
@Bean public XsdSchema countriesSchema() { return new SimpleXsdSchema(new ClassPathResource("countries.xsd")); }
Example #26
Source File: XTeeWsdlDefinition.java From j-road with Apache License 2.0 | 2 votes |
/** * Sets the single XSD schema to inline. Either this property, or {@link #setSchemaCollection(XsdSchemaCollection) * schemaCollection} must be set. */ public void setSchema(final XsdSchema schema) { typesProvider.setSchema(schema); }