Commit e77030b9 authored by Quxl's avatar Quxl

x

parent 862e75fd
......@@ -21,6 +21,7 @@ import org.springframework.context.annotation.Configuration;
import com.egolm.sso.service.MaterialMasterService;
import com.egolm.sso.service.PriceListService;
import com.egolm.sso.service.ProFormaInvoiceService;
@Configuration
......@@ -47,6 +48,14 @@ public class WsConfig {
endpoint.publish("/price_list");
return endpoint;
}
@Bean
public Endpoint getProFormaInvoicePoint(ProFormaInvoiceService priceListService) {
EndpointImpl endpoint = new EndpointImpl(bus, priceListService);
endpoint.setInInterceptors(Arrays.asList(authInterceptor));
endpoint.publish("/pro_forma_invoice");
return endpoint;
}
@Value("${wsUsername}")
private String wsUername;
......
package com.egolm.sso.service;
import javax.jws.WebMethod;
import javax.jws.WebService;
@WebService(targetNamespace = "http://pro_forma_invoice.sso.egolm.com")
public interface ProFormaInvoiceService {
@WebMethod
public void execute(String xml);
}
package com.egolm.sso.service.impl;
import javax.jws.WebService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;
import com.egolm.sso.service.CommonService;
import com.egolm.sso.service.ProFormaInvoiceService;
@Component
@WebService(serviceName = "ProFormaInvoiceService", targetNamespace = "http://pro_forma_invoice.sso.egolm.com", endpointInterface = "com.egolm.sso.service.ProFormaInvoiceService")
public class ProFormaInvoiceServiceImpl implements ProFormaInvoiceService {
@Autowired
JdbcTemplate jdbcTemplate;
@Autowired
CommonService common;
@Override
public void execute(String xml) {
}
}
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