本文整理汇总了Java中javax.xml.soap.SOAPException.printStackTrace方法的典型用法代码示例。如果您正苦于以下问题:Java SOAPException.printStackTrace方法的具体用法?Java SOAPException.printStackTrace怎么用?Java SOAPException.printStackTrace使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javax.xml.soap.SOAPException
的用法示例。
在下文中一共展示了SOAPException.printStackTrace方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: adaptSOAPMessageForVO
import javax.xml.soap.SOAPException; //导入方法依赖的package包/类
/**
* @param context
* @param details
* @param parameterName
*/
private void adaptSOAPMessageForVO(ConverterContext context,
List<ModificationDetail> details, String parameterName) {
for (ModificationDetail detail : details) {
IAdapter adapter = AdapterFactory.getAdapter(detail.getType());
detail.getVariable().setVariableName(parameterName);
try {
adapter.exec(context.getSoapContext(), detail);
} catch (SOAPException e) {
e.printStackTrace();
}
}
}
示例2: initialValue
import javax.xml.soap.SOAPException; //导入方法依赖的package包/类
@Override
protected SOAPFactory initialValue() {
try {
return SOAPFactory.newInstance();
} catch (SOAPException e) {
e.printStackTrace();
return null;
}
}
示例3: addSoapAttachement
import javax.xml.soap.SOAPException; //导入方法依赖的package包/类
void addSoapAttachement() {
try {
MessageFactory messageFactory = MessageFactory.newInstance();
SOAPMessage message = messageFactory.createMessage();
AttachmentPart a = message.createAttachmentPart();
a.setContentType("binary/octet-stream");
message.addAttachmentPart(a);
} catch (SOAPException e) {
e.printStackTrace();
}
}