本文整理汇总了Java中org.springframework.xml.xsd.XsdSchema类的典型用法代码示例。如果您正苦于以下问题:Java XsdSchema类的具体用法?Java XsdSchema怎么用?Java XsdSchema使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XsdSchema类属于org.springframework.xml.xsd包,在下文中一共展示了XsdSchema类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: defaultWsdl11Definition
import org.springframework.xml.xsd.XsdSchema; //导入依赖的package包/类
@Bean(name = "holiday")
public DefaultWsdl11Definition defaultWsdl11Definition(XsdSchema countriesSchema) {
DefaultWsdl11Definition wsdl = new DefaultWsdl11Definition();
wsdl.setPortTypeName("HumanResource");
wsdl.setLocationUri("/holidayService/");
wsdl.setTargetNamespace("http://mycompany.com/hr/definitions");
wsdl.setSchema(countriesSchema);
return wsdl;
}
示例2: afterPropertiesSet
import org.springframework.xml.xsd.XsdSchema; //导入依赖的package包/类
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());
}
示例3: defaultWsdl11Definition
import org.springframework.xml.xsd.XsdSchema; //导入依赖的package包/类
@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;
}
示例4: defaultWsdl11Definition
import org.springframework.xml.xsd.XsdSchema; //导入依赖的package包/类
@Bean(name = "countries")
public DefaultWsdl11Definition defaultWsdl11Definition(XsdSchema countriesSchema) {
DefaultWsdl11Definition wsdl11Definition = new DefaultWsdl11Definition();
wsdl11Definition.setPortTypeName("CountriesPort");
wsdl11Definition.setLocationUri("/ws");
wsdl11Definition.setTargetNamespace("country.namespace");
wsdl11Definition.setSchema(countriesSchema);
return wsdl11Definition;
}
示例5: defaultWsdl11Definition
import org.springframework.xml.xsd.XsdSchema; //导入依赖的package包/类
@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;
}
示例6: defaultWsdl11Models
import org.springframework.xml.xsd.XsdSchema; //导入依赖的package包/类
@Bean(name = "models")
public DefaultWsdl11Definition defaultWsdl11Models(XsdSchema modelsSchema) {
DefaultWsdl11Definition wsdl11Definition = new DefaultWsdl11Definition();
wsdl11Definition.setPortTypeName("BcdsModelingPort");
wsdl11Definition.setLocationUri("/soap-api/");
wsdl11Definition.setTargetNamespace("http://va.gov/vba/bcdss/models");
wsdl11Definition.setSchema(modelsSchema);
return wsdl11Definition;
}
示例7: defaultWsdl11Definition
import org.springframework.xml.xsd.XsdSchema; //导入依赖的package包/类
@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;
}
示例8: defaultWsdl11Definition
import org.springframework.xml.xsd.XsdSchema; //导入依赖的package包/类
@Bean(name = "holiday")
public DefaultWsdl11Definition defaultWsdl11Definition(XsdSchema countriesSchema) {
DefaultWsdl11Definition wsdl11Definition = new DefaultWsdl11Definition();
wsdl11Definition.setPortTypeName("HumanResource");
wsdl11Definition.setLocationUri("/holidayService/");
wsdl11Definition.setTargetNamespace("http://mycompany.com/hr/definitions");
wsdl11Definition.setSchema(countriesSchema);
return wsdl11Definition;
}
示例9: defaultWsdl11Definition
import org.springframework.xml.xsd.XsdSchema; //导入依赖的package包/类
@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;
}
示例10: contentStoreSchema
import org.springframework.xml.xsd.XsdSchema; //导入依赖的package包/类
/**
* Publishing XML schema
* @return The XSD definition
*/
@Bean
public XsdSchema contentStoreSchema() {
SimpleXsdSchema xsdSchema = new SimpleXsdSchema();
xsdSchema.setXsd(new ClassPathResource("contentStoreSchema.xsd"));
return xsdSchema;
}
开发者ID:vanioinformatika,项目名称:spring-boot-integration-example,代码行数:11,代码来源:ExampleIntegrationApplication.java
示例11: coursesSchema
import org.springframework.xml.xsd.XsdSchema; //导入依赖的package包/类
@Bean
public XsdSchema coursesSchema() {
return new SimpleXsdSchema(new ClassPathResource("course-details.xsd"));
}
示例12: countriesSchema
import org.springframework.xml.xsd.XsdSchema; //导入依赖的package包/类
@Bean
public XsdSchema countriesSchema() {
return new SimpleXsdSchema(new ClassPathResource("countries.xsd"));
}
示例13: customersSchema
import org.springframework.xml.xsd.XsdSchema; //导入依赖的package包/类
@Bean
public XsdSchema customersSchema() {
return new SimpleXsdSchema(new ClassPathResource("customers.xsd"));
}
示例14: modelsSchema
import org.springframework.xml.xsd.XsdSchema; //导入依赖的package包/类
@Bean
public XsdSchema modelsSchema() {
return new SimpleXsdSchema(new ClassPathResource("models.xsd"));
}
示例15: countriesSchema
import org.springframework.xml.xsd.XsdSchema; //导入依赖的package包/类
@Bean
public XsdSchema countriesSchema() {
return new SimpleXsdSchema(new ClassPathResource("META-INF/schemas/hr.xsd"));
}
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:5,代码来源:WebServiceConfig.java