2018-11-08 12:04:33 +01:00
|
|
|
Maven Goals
|
|
|
|
|
|
|
|
|
|
Mit Maven Goal "clean package" kann ein Release als ZIP-File mit XSDs und WSDLs sowie der Dokumentation gebaut werden.
|
|
|
|
|
Mit Maven Goal "clean deploy" wird der Release in das Kap Dion OMDS Repository geladen.
|
|
|
|
|
|
|
|
|
|
Codegenerierung
|
|
|
|
|
Mit Maven Goal "clean package" und Profil "genJavaFromWsdl" wird der zugehörige Java-Code generiert.
|
2019-08-19 09:53:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
ODMS MTOM in Java classes after code generation
|
|
|
|
|
|
|
|
|
|
Server (Class: OmdsServicePortImpl)
|
|
|
|
|
Add import:
|
|
|
|
|
import javax.xml.ws.soap.MTOM;
|
|
|
|
|
Add a class annotation (above the class name):
|
|
|
|
|
@MTOM(enabled = true, threshold = 1024)
|
|
|
|
|
|
|
|
|
|
Client (Class: OmdsServicePortType_OmdsServicePort_Client)
|
|
|
|
|
Add import:
|
|
|
|
|
import javax.xml.ws.soap.MTOMFeature;
|
|
|
|
|
Rewrite the OMDSService creation like following:
|
|
|
|
|
OmdsService ss = new OmdsService(wsdlURL, SERVICE_NAME);
|
|
|
|
|
OmdsServicePortType port = ss.getOmdsServicePort(new MTOMFeature(1024));
|
|
|
|
|
|
|
|
|
|
|