org.springframework.ws.client.core.WebServiceTemplate.getUnmarshaller()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(141)

本文整理了Java中org.springframework.ws.client.core.WebServiceTemplate.getUnmarshaller()方法的一些代码示例,展示了WebServiceTemplate.getUnmarshaller()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebServiceTemplate.getUnmarshaller()方法的具体详情如下:
包路径:org.springframework.ws.client.core.WebServiceTemplate
类名称:WebServiceTemplate
方法名:getUnmarshaller

WebServiceTemplate.getUnmarshaller介绍

[英]Returns the unmarshaller for this template.
[中]

代码示例

代码示例来源:origin: spring-projects/spring-ws

  1. /** Returns the {@code Unmarshaller} used by the gateway. */
  2. public final Unmarshaller getUnmarshaller() {
  3. return webServiceTemplate.getUnmarshaller();
  4. }

代码示例来源:origin: apache/servicemix-bundles

  1. /** Returns the {@code Unmarshaller} used by the gateway. */
  2. public final Unmarshaller getUnmarshaller() {
  3. return webServiceTemplate.getUnmarshaller();
  4. }

代码示例来源:origin: org.springframework.ws/spring-ws-core

  1. /** Returns the {@code Unmarshaller} used by the gateway. */
  2. public final Unmarshaller getUnmarshaller() {
  3. return webServiceTemplate.getUnmarshaller();
  4. }

代码示例来源:origin: org.springframework.ws/org.springframework.ws

  1. /** Returns the <code>Unmarshaller</code> used by the gateway. */
  2. public final Unmarshaller getUnmarshaller() {
  3. return webServiceTemplate.getUnmarshaller();
  4. }

代码示例来源:origin: spring-projects/spring-ws

  1. public Object extractData(WebServiceMessage response) throws IOException {
  2. Unmarshaller unmarshaller = getUnmarshaller();
  3. if (unmarshaller == null) {
  4. throw new IllegalStateException(
  5. "No unmarshaller registered. Check configuration of WebServiceTemplate.");
  6. }
  7. return MarshallingUtils.unmarshal(unmarshaller, response);
  8. }
  9. });

代码示例来源:origin: org.springframework.ws/spring-ws-core

  1. public Object extractData(WebServiceMessage response) throws IOException {
  2. Unmarshaller unmarshaller = getUnmarshaller();
  3. if (unmarshaller == null) {
  4. throw new IllegalStateException(
  5. "No unmarshaller registered. Check configuration of WebServiceTemplate.");
  6. }
  7. return MarshallingUtils.unmarshal(unmarshaller, response);
  8. }
  9. });

代码示例来源:origin: org.springframework.ws/org.springframework.ws

  1. public Object extractData(WebServiceMessage response) throws IOException {
  2. Unmarshaller unmarshaller = getUnmarshaller();
  3. if (unmarshaller == null) {
  4. throw new IllegalStateException(
  5. "No unmarshaller registered. Check configuration of WebServiceTemplate.");
  6. }
  7. return MarshallingUtils.unmarshal(unmarshaller, response);
  8. }
  9. });

代码示例来源:origin: apache/servicemix-bundles

  1. public Object extractData(WebServiceMessage response) throws IOException {
  2. Unmarshaller unmarshaller = getUnmarshaller();
  3. if (unmarshaller == null) {
  4. throw new IllegalStateException(
  5. "No unmarshaller registered. Check configuration of WebServiceTemplate.");
  6. }
  7. return MarshallingUtils.unmarshal(unmarshaller, response);
  8. }
  9. });

代码示例来源:origin: net.sf.itcb.common/itcb-common-client

  1. @Override
  2. public T extractData(Source src) throws IOException,
  3. TransformerException {
  4. try {
  5. Object object = ((ItcbJaxb2Marshaller)getWebServiceTemplate().getUnmarshaller()).getUnmarshaller().unmarshal(src, clazz);
  6. if(object instanceof JAXBElement) {
  7. return (T)((JAXBElement)object).getValue();
  8. }
  9. else {
  10. return (T)object;
  11. }
  12. } catch (JAXBException e) {
  13. throw new TransformerException(e);
  14. }
  15. }

代码示例来源:origin: stackoverflow.com

  1. try {
  2. fis = new FileInputStream(file);
  3. return webServiceTemplate.getUnmarshaller().unmarshal(new StreamSource(fis));
  4. } finally {
  5. fis.close();

相关文章

WebServiceTemplate类方法