javax.xml.ws.soap.MTOM.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(6.2k)|赞(0)|评价(0)|浏览(108)

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

MTOM.<init>介绍

暂无

代码示例

代码示例来源:origin: roskart/dropwizard-jaxws

@MTOM // @MTOM annotation is not necessary if you invoke enableMtom on EndopointBuilder
@WebService(endpointInterface = "ws.example.jaxws.dropwizard.roskart.com.mtomservice.MtomService",
    targetNamespace = "http://com.roskart.dropwizard.jaxws.example.ws/MtomService",
    name = "MtomService",
    wsdlLocation = "META-INF/MtomService.wsdl")
public class MtomServiceImpl implements MtomService {
  @Metered
  @Override
  public HelloResponse hello(Hello parameters) {
    try {
      byte[] bin = IOUtils.readBytesFromStream(parameters.getBinary().getInputStream());
      HelloResponse response = new HelloResponse();
      response.setTitle(parameters.getTitle());
      response.setBinary(new DataHandler(new ByteArrayDataSource(bin,
          parameters.getBinary().getContentType())));
      return response;
    }
    catch(IOException e) {
      throw new RuntimeException(e);
    }
  }
}

代码示例来源:origin: apache/cxf

@MTOM
public class HelloImpl implements Hello {
  public void detail(Holder<byte[]> photo, Holder<Image> image) {
    // echo through Holder
  }

  public void echoData(Holder<byte[]> data) {
    // echo through Holder
  }
}

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

@MTOM
@WebService(endpointInterface = "org.apache.chemistry.opencmis.server.impl.webservices.RepositoryServicePort10")
public class RepositoryService10 extends RepositoryService implements RepositoryServicePort10 {

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

@MTOM
@WebService(endpointInterface = "org.apache.chemistry.opencmis.server.impl.webservices.ObjectServicePort10")
public class ObjectService10 extends ObjectService implements ObjectServicePort10 {

代码示例来源:origin: edu.unc.mapseq.pipelines.casava.casava-web/casava-web-service-api

@MTOM(enabled = true, threshold = 0)
@BindingType(value = javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_MTOM_BINDING)
@WebService(targetNamespace = "http://casava.ws.mapseq.unc.edu", serviceName = "CASAVAService", portName = "CASAVAPort")
@SOAPBinding(style = Style.DOCUMENT, use = Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
@Path("/CASAVAService/")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public interface CASAVAService {

  @WebMethod
  public Long uploadSampleSheet(@WebParam(name = "data") DataHandler data,
      @WebParam(name = "flowcellName") String flowcellName);

  @GET
  @Path("/assertDirectoryExists/{studyName}/{flowcell}")
  @WebMethod
  public Boolean assertDirectoryExists(@PathParam("studyName") @WebParam(name = "studyName") String studyName,
      @PathParam("flowcell") @WebParam(name = "flowcell") String flowcell);

}

代码示例来源:origin: org.wildfly.extras.patch/fuse-patch-core

@MTOM
@WebService(targetNamespace = RepositoryService.TARGET_NAMESPACE)
public interface RepositoryService {

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

@MTOM
@WebService(endpointInterface = "org.apache.chemistry.opencmis.commons.impl.jaxb.RelationshipServicePort")
public class RelationshipService extends AbstractService implements RelationshipServicePort {

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

@MTOM
@WebService(endpointInterface = "org.apache.chemistry.opencmis.commons.impl.jaxb.MultiFilingServicePort")
public class MultiFilingService extends AbstractService implements MultiFilingServicePort {

代码示例来源:origin: apache/cxf

/**
 *
 */
@WebService(name = "MtomTestService", serviceName = "MtomTestService")
@MTOM
public interface MtomTestService {
  void acceptDataHandler(@WebParam(name = "inputDhBean")
              @XmlParamType(name = "inputDhBean")
              DataHandlerBean dhBean);
  @XmlReturnType(name = "inputDhBean")
  DataHandlerBean produceDataHandlerBean();
}

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

@MTOM
@WebService(endpointInterface = "org.apache.chemistry.opencmis.commons.impl.jaxb.ACLServicePort")
public class AclService extends AbstractService implements ACLServicePort {

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

@MTOM
@WebService(endpointInterface = "org.apache.chemistry.opencmis.commons.impl.jaxb.DiscoveryServicePort")
public class DiscoveryService extends AbstractService implements DiscoveryServicePort {

代码示例来源:origin: org.mule.services/mule-service-soap

@MTOM
@WebService(portName = "TestPort", serviceName = "TestService")
public class Mtom11Service extends Soap11Service {

}

代码示例来源:origin: apache/cxf

@MTOM
public class MtomTestImpl implements MtomTestService {

代码示例来源:origin: activequant/aq2o

@WebService
@MTOM(enabled = false)
@BindingType(SOAPBinding.SOAP11HTTP_BINDING)
public interface IMainService {

代码示例来源:origin: apache/cxf

@Logging(pretty = true)
@WebService
@MTOM(threshold = 1)
public interface MTOMService {
  ObjectWithHashMapData getHashMapData(int y);
}
@WebService

代码示例来源:origin: apache/cxf

@WebService(name = "AttachmentService", targetNamespace = "http://org.apache.cxf/service/AttachmentService")
@SchemaValidation(type = SchemaValidation.SchemaValidationType.IN)
@MTOM(enabled = true)
public class AttachmentServiceImpl implements AttachmentService {

  @WebMethod
  public int test(@WebParam(name = "request") @XmlElement(required = true) Request request) throws Exception {
    DataHandler dataHandler = request.getContent();
    InputStream inputStream = dataHandler.getInputStream();
    return IOUtils.readBytesFromStream(inputStream).length;
  }
}

代码示例来源:origin: apache/cxf

@Logging(pretty = true)
@WebService
@MTOM(threshold = 1)
public interface MTOMService {
  ObjectWithHashMapData getHashMapData(int y);
}
@WebService

代码示例来源:origin: org.mule.services/mule-service-soap

@MTOM
@WebService(portName = "TestPort", serviceName = "TestService")
@BindingType(value = SOAPBinding.SOAP12HTTP_BINDING)
public class Mtom12Service extends Soap12Service {

}

代码示例来源:origin: org.apache.cxf/cxf-testutils

wsdlLocation = "testutils/mtom_xop.wsdl")
@ServiceMode(value = Mode.MESSAGE)
@MTOM

代码示例来源:origin: org.dcm4che/dcm4chee-xds2-ws

@MTOM
@BindingType(value = SOAPBinding.SOAP12HTTP_MTOM_BINDING)
@Stateless

相关文章