Checking WSDL at Run Time with JAX-WS

We are developing an MDA platform that supports web services. The user can provide WSDL at runtime, and we generate all artifacts (service interface and implementation for server and client for client) using JAX-WS internally.

We want to add validation to the user-provided WSDL document. The user should now test this with an external tool such as Oxygen, XMLSpy or a web tool, but we want to add this as part of our system. A good opportunity would also be to verify the schema, including the built-in WSDL schemas.

JAX-WS (RI) supports run-time schema validation support (using the @SchemaValidation annotation), but we did not find support for validating WSDL.

We tried to integrate the Eclipse WSDL validator , but this does not seem to work for us.

Is there a way to do this using JAX-WS? If not, is there any other validation framework we can integrate?

thank

+5
source share
1 answer

There is a confusion in your question that I must first clarify.

It seems you need the ability to validate WSDL (+ WS-I syntax) and XSD, WSDL internal or external links. On the other hand, you quote @SchemaValidation, which is actually used to validate instance documents.

In the traditional development approach, you can say that you want at least the ability to check development-time artifacts (WSDL + XSD).

In this case, I would recommend the following:

WSDL: WS-I, , WS-I. , , , , .

UPDATE: WSDL: - Eclipse, Eclipse.

XSD: XSD, ; WSDL4J , XSOM - . XSD ( XSD, , Microsoft SharePoint WSDL ), uri XSD, WSDL, XSOM .

, , , , HTTP (SOAP 1.1/HTTP, SOAPAction, WSDL). , , ( @SchemaValidation, -).

+2

All Articles