31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
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_r1_4_0_VU" bzw. "genJavaFromWsdl_r1_4_0_Broker" wird
|
|
der zugehörige Java-Code generiert.
|
|
|
|
|
|
MTOM in Java nach Codegenerierung
|
|
=================================
|
|
Nach der Code-Generierung müssen einige Schritte von Hand durchgeführt werden, damit MTOM
|
|
enthalten ist:
|
|
|
|
1) Server (Class: OmdsServicePortImpl)
|
|
Add import:
|
|
import javax.xml.ws.soap.MTOM;
|
|
Add a class annotation (above the class name):
|
|
@MTOM(enabled = true, threshold = 1024)
|
|
|
|
2) 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));
|
|
|
|
|