MTOM wieder unterstüzen

This commit is contained in:
2019-10-08 16:01:48 +02:00
parent 0a9713791a
commit 9d098e2781
2 changed files with 9 additions and 3 deletions

View File

@@ -13,6 +13,7 @@ import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.soap.MTOM;
/**
* This class was generated by Apache CXF 3.2.0
@@ -27,7 +28,8 @@ import javax.xml.bind.annotation.XmlSeeAlso;
targetNamespace = "urn:omds3Services-1-4-0",
wsdlLocation = "file:/C:/Users/Jens/git/omdsservicedefinitions-master/OMDSServiceDefinition/src/main/resources/def/r1_5_0/omds3Services.wsdl",
endpointInterface = "at.vvo.omds.types.omds3Types.r1_5_0.service.OmdsServicePortType")
@MTOM(enabled = true, threshold = 1024)
public class OmdsServicePortImpl implements OmdsServicePortType {
private static final Logger LOG = Logger.getLogger(OmdsServicePortImpl.class.getName());

View File

@@ -16,6 +16,7 @@ import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.soap.MTOMFeature;
/**
* This class was generated by Apache CXF 3.2.0
@@ -44,9 +45,12 @@ public final class OmdsServicePortType_OmdsServicePort_Client {
e.printStackTrace();
}
}
OmdsService ss = new OmdsService(wsdlURL, SERVICE_NAME);
OmdsServicePortType port = ss.getOmdsServicePort();
OmdsServicePortType port = ss.getOmdsServicePort(new MTOMFeature(1024));
// OmdsService ss = new OmdsService(wsdlURL, SERVICE_NAME);
// OmdsServicePortType port = ss.getOmdsServicePort();
{
System.out.println("Invoking getOMDSPackageList...");