Zum Inhalt springen
_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
Referenzen Technologien Blog Know-how Tools
Über uns Zusammenarbeit Karriere
CS EN DE
Lassen Sie uns sprechen

SOAP Web Services — best practices z praxe

05. 07. 2011 1 Min. Lesezeit CORE SYSTEMSdevelopment
SOAP Web Services — best practices z praxe

V enterprise integraci je SOAP web service standard. REST je trendy, ale pri integraci bankovnich systemu je SOAP s WS-* standardy stale bezpecnejsi volba. Po dvou letech intenzivniho nasazovani sdilime best practices.

WSDL-first pristup

WSDL je kontrakt. Pokud zacnete od kodu, kontrakt je vedlejsi produkt implementace. Pravidla: Document/literal wrapped binding, verze v namespace, spolecne typy v separatnim XSD, operace jako slovesa.

Implementace v Java EE

Z WSDL generujeme Java tridy pomoci wsimport. Server implementuje vygenerovany interface jako @Stateless EJB. GlassFish se postara o SOAP stack a WSDL publikaci.

WS-Security

X.509 certifikaty pro vzajemnou autentizaci a podpis zprav. Username/password token pouze pres HTTPS. Konfigurace na GlassFish je komplikovana, ale nutna pro enterprise.

Error handling a verzovani

Custom fault elementy pro business chyby. Nikdy stack trace na produkci. Minor verze zpetne kompatibilni, major verze = novy namespace a paralelni provoz.

Zaverem

SOAP neni sexy, ale v enterprise je nenahraditelny. WSDL-first, WS-Security a jasna verzovaci strategie usetrni hodiny debugovani.

soapweb servicesjava eewsdl
Teilen:

CORE SYSTEMS

Stavíme core systémy a AI agenty, které drží provoz. 15 let zkušeností s enterprise IT.

Brauchen Sie Hilfe bei der Implementierung?

Unsere Experten helfen Ihnen bei Design, Implementierung und Betrieb. Von der Architektur bis zur Produktion.

Kontaktieren Sie uns