本文整理汇总了Java中org.springframework.ws.soap.saaj.SaajSoapMessageFactory类的典型用法代码示例。如果您正苦于以下问题:Java SaajSoapMessageFactory类的具体用法?Java SaajSoapMessageFactory怎么用?Java SaajSoapMessageFactory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SaajSoapMessageFactory类属于org.springframework.ws.soap.saaj包,在下文中一共展示了SaajSoapMessageFactory类的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: before
import org.springframework.ws.soap.saaj.SaajSoapMessageFactory; //导入依赖的package包/类
@Before
public void before() {
filter = new BasicMessageFilter();
SaajSoapMessageFactory saajSoapMessageFactory = new SaajSoapMessageFactory();
saajSoapMessageFactory.afterPropertiesSet();
message = saajSoapMessageFactory.createWebServiceMessage();
}
开发者ID:HydAu,项目名称:Camel,代码行数:8,代码来源:BasicMessageFilterTest.java
示例2: createTemplate
import org.springframework.ws.soap.saaj.SaajSoapMessageFactory; //导入依赖的package包/类
private static WebServiceTemplate createTemplate(SaajSoapMessageFactory factory, Jaxb2Marshaller marshaller, EbmsAktoer remoteParty,
HttpComponentsMessageSender httpSender, ClientInterceptor[] interceptors) {
EbmsContextAwareWebServiceTemplate template = new EbmsContextAwareWebServiceTemplate(factory, remoteParty);
template.setMarshaller(marshaller);
template.setUnmarshaller(marshaller);
template.setFaultMessageResolver(new MessageSenderFaultMessageResolver(marshaller));
template.setMessageSender(httpSender);
template.setInterceptors(interceptors);
return template;
}
开发者ID:digipost,项目名称:sdp-shared,代码行数:11,代码来源:MessageSender.java
示例3: initializeMessageFactory
import org.springframework.ws.soap.saaj.SaajSoapMessageFactory; //导入依赖的package包/类
protected void initializeMessageFactory() {
try {
SaajSoapMessageFactory newMessageFactory = new SaajSoapMessageFactory();
newMessageFactory.afterPropertiesSet();
messageFactory = newMessageFactory;
} catch (Exception e) {
throw new RuntimeException(e);
}
}
开发者ID:lukas-krecan,项目名称:spring-ws-test,代码行数:10,代码来源:AbstractMessageTest.java
示例4: testInitializeSet
import org.springframework.ws.soap.saaj.SaajSoapMessageFactory; //导入依赖的package包/类
@Test
public void testInitializeSet() throws Exception
{
DefaultWsTestHelper wsServerTestHelper = new DefaultWsTestHelper();
wsServerTestHelper.afterPropertiesSet();
WebServiceMessageFactory messageFactory = new SaajSoapMessageFactory();
wsServerTestHelper.setMessageFactory(messageFactory);
assertSame(messageFactory, wsServerTestHelper.getMessageFactory());
}
开发者ID:lukas-krecan,项目名称:spring-ws-test,代码行数:12,代码来源:DefaultWsTestHelperTest.java
示例5: initializeMessageFactory
import org.springframework.ws.soap.saaj.SaajSoapMessageFactory; //导入依赖的package包/类
@Override
protected void initializeMessageFactory() {
try {
SaajSoapMessageFactory newMessageFactory = new SaajSoapMessageFactory();
newMessageFactory.setSoapVersion(SoapVersion.SOAP_12);
newMessageFactory.afterPropertiesSet();
messageFactory = newMessageFactory;
} catch (Exception e) {
throw new RuntimeException(e);
}
}
开发者ID:lukas-krecan,项目名称:spring-ws-test,代码行数:12,代码来源:MessageValidator12Test.java
示例6: createClient
import org.springframework.ws.soap.saaj.SaajSoapMessageFactory; //导入依赖的package包/类
/**
* Creates a {@code MockWebServiceClient} instance based on the given {@link WebServiceMessageReceiver} and {@link
* WebServiceMessageFactory}. Supports interceptors that can be applied on the outgoing message.
*
* @param applicationContext to extract mocks from
* @param interceptors
* @return the created client
*/
public static MockWebServiceClient createClient(ApplicationContext applicationContext, ClientInterceptor[] interceptors) {
Assert.notNull(applicationContext, "'applicationContext' must not be null");
MockStrategiesHelper strategiesHelper = new MockStrategiesHelper(applicationContext);
WebServiceMessageReceiver messageReceiver =
strategiesHelper.getStrategy(WebServiceMessageReceiver.class, SoapMessageDispatcher.class);
WebServiceMessageFactory messageFactory =
strategiesHelper.getStrategy(WebServiceMessageFactory.class, SaajSoapMessageFactory.class);
return createClient(messageReceiver, messageFactory, interceptors);
}
开发者ID:lukas-krecan,项目名称:smock,代码行数:20,代码来源:SmockServer.java
示例7: createMessageFactory
import org.springframework.ws.soap.saaj.SaajSoapMessageFactory; //导入依赖的package包/类
/**
* Creates SAAJ based message factory.
* @param soapVersion
* @return
*/
public static WebServiceMessageFactory createMessageFactory(SoapVersion soapVersion)
{
SaajSoapMessageFactory saajSoapMessageFactory = new SaajSoapMessageFactory();
saajSoapMessageFactory.setSoapVersion(soapVersion);
saajSoapMessageFactory.afterPropertiesSet();
return saajSoapMessageFactory;
}
开发者ID:lukas-krecan,项目名称:smock,代码行数:13,代码来源:SmockCommon.java
示例8: test
import org.springframework.ws.soap.saaj.SaajSoapMessageFactory; //导入依赖的package包/类
@Test
public void test() throws Exception {
WebServiceTemplate template = new WebServiceTemplate();
SaajSoapMessageFactory messageFactory = new SaajSoapMessageFactory();
messageFactory.setSoapVersion(SoapVersion.SOAP_12);
messageFactory.afterPropertiesSet();
template.setMessageFactory(messageFactory);
CryptoFactoryBean cryptoFactory = new CryptoFactoryBean();
cryptoFactory.setKeyStoreLocation(new ClassPathResource("keystore.jks"));
cryptoFactory.setKeyStorePassword("password");
cryptoFactory.afterPropertiesSet();
Crypto crypto = cryptoFactory.getObject();
SAML2CallbackHandler samlCallbackHandler = new SAML2CallbackHandler(crypto, "selfsigned");
SAMLIssuerImpl issuer = new SAMLIssuerImpl();
issuer.setIssuerCrypto(crypto);
issuer.setIssuerKeyName("selfsigned");
issuer.setIssuerKeyPassword("password");
issuer.setIssuerName("selfsigned");
issuer.setSendKeyValue(false);
issuer.setSignAssertion(true);
issuer.setCallbackHandler(samlCallbackHandler);
Wss4jSecurityInterceptor securityInterceptor = new Wss4jSecurityInterceptor();
securityInterceptor.setSecurementActions("Timestamp SAMLTokenSigned");
securityInterceptor.setSecurementSignatureCrypto(crypto);
securityInterceptor.setSecurementUsername("selfsigned");
securityInterceptor.setSecurementPassword("password");
securityInterceptor.setSamlIssuer(issuer);
securityInterceptor.afterPropertiesSet();
template.setInterceptors(new ClientInterceptor[] {securityInterceptor});
template.afterPropertiesSet();
Element hello = new Element("Hello", "urn:jaminh:example");
template.sendSourceAndReceiveToResult("http://localhost:8080/spring-saml-example-war", new JDOMSource(hello), new JDOMResult());
template.sendSourceAndReceiveToResult("http://localhost:8080/spring-saml-example-war", new JDOMSource(hello), new JDOMResult());
template.sendSourceAndReceiveToResult("http://localhost:8080/spring-saml-example-war", new JDOMSource(hello), new JDOMResult());
}
开发者ID:jaminh,项目名称:spring-saml-example-war,代码行数:45,代码来源:HelloTest.java
示例9: getMessageFactory
import org.springframework.ws.soap.saaj.SaajSoapMessageFactory; //导入依赖的package包/类
@Bean
protected SoapMessageFactory getMessageFactory() {
return new SaajSoapMessageFactory();
}
开发者ID:christophd,项目名称:citrus-simulator,代码行数:5,代码来源:SimulatorWebServiceClientAutoConfiguration.java
示例10: EbmsContextAwareWebServiceTemplate
import org.springframework.ws.soap.saaj.SaajSoapMessageFactory; //导入依赖的package包/类
public EbmsContextAwareWebServiceTemplate(final SaajSoapMessageFactory factory, final EbmsAktoer ebmsAktoerRemoteParty) {
super(factory);
this.ebmsAktoerRemoteParty = ebmsAktoerRemoteParty;
}
开发者ID:digipost,项目名称:sdp-shared,代码行数:5,代码来源:EbmsContextAwareWebServiceTemplate.java
示例11: messageFactory
import org.springframework.ws.soap.saaj.SaajSoapMessageFactory; //导入依赖的package包/类
@Bean
public SoapMessageFactory messageFactory() {
return new SaajSoapMessageFactory();
}
开发者ID:koen-serneels,项目名称:ws-proxy,代码行数:5,代码来源:WsProxy.java
示例12: testSetServiceEndpointProtocolMapping
import org.springframework.ws.soap.saaj.SaajSoapMessageFactory; //导入依赖的package包/类
public void testSetServiceEndpointProtocolMapping() {
ForwardingClient forwardingClient = new ForwardingClient(new SaajSoapMessageFactory());
forwardingClient.setServiceEndpointProtocolMapping(" ");
forwardingClient.setServiceEndpointProtocolMapping(null);
}
开发者ID:koen-serneels,项目名称:ws-proxy,代码行数:7,代码来源:ForwardingClientTest.java
示例13: MockWebServiceConnectionTest
import org.springframework.ws.soap.saaj.SaajSoapMessageFactory; //导入依赖的package包/类
public MockWebServiceConnectionTest() throws Exception {
messageFactory = new SaajSoapMessageFactory();
messageFactory.afterPropertiesSet();
}
开发者ID:lukas-krecan,项目名称:spring-ws-test,代码行数:5,代码来源:MockWebServiceConnectionTest.java
示例14: getMessageFactory
import org.springframework.ws.soap.saaj.SaajSoapMessageFactory; //导入依赖的package包/类
protected WebServiceMessageFactory getMessageFactory() {
SaajSoapMessageFactory messageFactory = new SaajSoapMessageFactory();
messageFactory.afterPropertiesSet();
return messageFactory;
}
开发者ID:lukas-krecan,项目名称:smock,代码行数:6,代码来源:AbstractMockWebServiceServerTest.java
示例15: getMessageFactory
import org.springframework.ws.soap.saaj.SaajSoapMessageFactory; //导入依赖的package包/类
protected SaajSoapMessageFactory getMessageFactory() {
SaajSoapMessageFactory messageFactory = new SaajSoapMessageFactory();
messageFactory.afterPropertiesSet();
return messageFactory;
}
开发者ID:lukas-krecan,项目名称:smock,代码行数:6,代码来源:AbstractSmockTest.java
示例16: createDefaultMessageFactory
import org.springframework.ws.soap.saaj.SaajSoapMessageFactory; //导入依赖的package包/类
private static WebServiceMessageFactory createDefaultMessageFactory() {
SaajSoapMessageFactory factory = new SaajSoapMessageFactory();
factory.afterPropertiesSet();
return factory;
}
开发者ID:lukas-krecan,项目名称:smock,代码行数:6,代码来源:Axis2MockWebServiceClient.java
示例17: SaajMtomClient
import org.springframework.ws.soap.saaj.SaajSoapMessageFactory; //导入依赖的package包/类
/**
* Constructor
* @param messageFactory The SAAJ message factory
*/
public SaajMtomClient(SaajSoapMessageFactory messageFactory) {
super(messageFactory);
}
开发者ID:vanioinformatika,项目名称:spring-ws-mtom-example,代码行数:8,代码来源:SaajMtomClient.java
注:本文中的org.springframework.ws.soap.saaj.SaajSoapMessageFactory类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论