本文整理汇总了Java中org.springframework.ws.soap.saaj.SaajSoapMessageFactory.afterPropertiesSet方法的典型用法代码示例。如果您正苦于以下问题:Java SaajSoapMessageFactory.afterPropertiesSet方法的具体用法?Java SaajSoapMessageFactory.afterPropertiesSet怎么用?Java SaajSoapMessageFactory.afterPropertiesSet使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.springframework.ws.soap.saaj.SaajSoapMessageFactory
的用法示例。
在下文中一共展示了SaajSoapMessageFactory.afterPropertiesSet方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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();
}
示例2: 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);
}
}
示例3: 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);
}
}
示例4: 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;
}
示例5: 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());
}
示例6: MockWebServiceConnectionTest
import org.springframework.ws.soap.saaj.SaajSoapMessageFactory; //导入方法依赖的package包/类
public MockWebServiceConnectionTest() throws Exception {
messageFactory = new SaajSoapMessageFactory();
messageFactory.afterPropertiesSet();
}
示例7: getMessageFactory
import org.springframework.ws.soap.saaj.SaajSoapMessageFactory; //导入方法依赖的package包/类
protected WebServiceMessageFactory getMessageFactory() {
SaajSoapMessageFactory messageFactory = new SaajSoapMessageFactory();
messageFactory.afterPropertiesSet();
return messageFactory;
}
示例8: getMessageFactory
import org.springframework.ws.soap.saaj.SaajSoapMessageFactory; //导入方法依赖的package包/类
protected SaajSoapMessageFactory getMessageFactory() {
SaajSoapMessageFactory messageFactory = new SaajSoapMessageFactory();
messageFactory.afterPropertiesSet();
return messageFactory;
}
示例9: createDefaultMessageFactory
import org.springframework.ws.soap.saaj.SaajSoapMessageFactory; //导入方法依赖的package包/类
private static WebServiceMessageFactory createDefaultMessageFactory() {
SaajSoapMessageFactory factory = new SaajSoapMessageFactory();
factory.afterPropertiesSet();
return factory;
}