Commit 0bea1e8f authored by Quxl's avatar Quxl

x

parent a3d56184
......@@ -33,6 +33,10 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-spring-boot-starter-jaxws</artifactId>
......
......@@ -37,50 +37,39 @@ public class WsConfig {
WSS4JInInterceptor authInterceptor;
@Bean
public Endpoint getMaterialMasterPoint(MaterialMasterService materialMasterService) {
EndpointImpl endpoint = new EndpointImpl(bus, materialMasterService);
endpoint.setInInterceptors(Arrays.asList(authInterceptor));
endpoint.publish("/material_master");
return endpoint;
public Endpoint getMaterialMasterPoint(MaterialMasterService service) {
return this.createEndpoint("/material_master", service);
}
@Bean
public Endpoint getPriceListPoint(PriceListService priceListService) {
EndpointImpl endpoint = new EndpointImpl(bus, priceListService);
endpoint.setInInterceptors(Arrays.asList(authInterceptor));
endpoint.publish("/price_list");
return endpoint;
public Endpoint getPriceListPoint(PriceListService service) {
return this.createEndpoint("/price_list", service);
}
@Bean
public Endpoint getProFormaInvoicePoint(PrformaInvoiceService priceListService) {
EndpointImpl endpoint = new EndpointImpl(bus, priceListService);
endpoint.setInInterceptors(Arrays.asList(authInterceptor));
endpoint.publish("/prforma_invoice");
return endpoint;
public Endpoint getProFormaInvoicePoint(PrformaInvoiceService service) {
return this.createEndpoint("/prforma_invoice", service);
}
@Bean
public Endpoint getSoConfirmQuotationPoint(ConfirmQuotationService soConfirmQuotationService) {
EndpointImpl endpoint = new EndpointImpl(bus, soConfirmQuotationService);
endpoint.setInInterceptors(Arrays.asList(authInterceptor));
endpoint.publish("/confirm_quotation");
return endpoint;
public Endpoint getSoConfirmQuotationPoint(ConfirmQuotationService service) {
return this.createEndpoint("/confirm_quotation", service);
}
@Bean
public Endpoint getShippingNotificationPoint(ShippingNotificationService shippingNotificationService) {
EndpointImpl endpoint = new EndpointImpl(bus, shippingNotificationService);
endpoint.setInInterceptors(Arrays.asList(authInterceptor));
endpoint.publish("/shipping_notification");
return endpoint;
public Endpoint getShippingNotificationPoint(ShippingNotificationService service) {
return this.createEndpoint("/shipping_notification", service);
}
@Bean
public Endpoint getDNDeletionPoint(DNDeletionService deletionService) {
EndpointImpl endpoint = new EndpointImpl(bus, deletionService);
public Endpoint getDNDeletionPoint(DNDeletionService service) {
return this.createEndpoint("/dn_deletion", service);
}
private Endpoint createEndpoint(String path, Object service) {
EndpointImpl endpoint = new EndpointImpl(bus, service);
endpoint.setInInterceptors(Arrays.asList(authInterceptor));
endpoint.publish("/dn_deletion");
endpoint.publish(path);
return endpoint;
}
......
......@@ -4,10 +4,12 @@ import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@XmlType(name = "Z_MT_SD_002_PRICE_LIST")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "Z_MT_SD_002_PRICE_LIST", namespace="http://schneider-distributor.com/")
public class Z_MT_SD_002_PRICE_LIST {
RECORD RECORD;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment