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

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

本文整理了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

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

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

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

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

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

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

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

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

public Object extractData(WebServiceMessage response) throws IOException {
    Unmarshaller unmarshaller = getUnmarshaller();
    if (unmarshaller == null) {
      throw new IllegalStateException(
          "No unmarshaller registered. Check configuration of WebServiceTemplate.");
    }
    return MarshallingUtils.unmarshal(unmarshaller, response);
  }
});

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

public Object extractData(WebServiceMessage response) throws IOException {
    Unmarshaller unmarshaller = getUnmarshaller();
    if (unmarshaller == null) {
      throw new IllegalStateException(
          "No unmarshaller registered. Check configuration of WebServiceTemplate.");
    }
    return MarshallingUtils.unmarshal(unmarshaller, response);
  }
});

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

public Object extractData(WebServiceMessage response) throws IOException {
    Unmarshaller unmarshaller = getUnmarshaller();
    if (unmarshaller == null) {
      throw new IllegalStateException(
          "No unmarshaller registered. Check configuration of WebServiceTemplate.");
    }
    return MarshallingUtils.unmarshal(unmarshaller, response);
  }
});

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

public Object extractData(WebServiceMessage response) throws IOException {
    Unmarshaller unmarshaller = getUnmarshaller();
    if (unmarshaller == null) {
      throw new IllegalStateException(
          "No unmarshaller registered. Check configuration of WebServiceTemplate.");
    }
    return MarshallingUtils.unmarshal(unmarshaller, response);
  }
});

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

@Override
public T extractData(Source src) throws IOException,
    TransformerException {
  try {
    Object object = ((ItcbJaxb2Marshaller)getWebServiceTemplate().getUnmarshaller()).getUnmarshaller().unmarshal(src, clazz);
    if(object instanceof JAXBElement) {
      return (T)((JAXBElement)object).getValue();
    }
    else {
      return (T)object;
    }
  } catch (JAXBException e) {
    throw new TransformerException(e);
  }
}

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

try {
  fis = new FileInputStream(file);
  return webServiceTemplate.getUnmarshaller().unmarshal(new StreamSource(fis));
} finally {
  fis.close();

相关文章

WebServiceTemplate类方法