axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "pau carre" <>
Subject Getting the context WSDL from Java code
Date Mon, 26 Feb 2007 08:16:17 GMT
Hi, I have two WS that use a common class which validates the SOAP
message against the WSDL. I get the SOAP with:
        MessageContext context =
        SOAPEnvelope env = context.getRequestMessage().getSOAPEnvelope();

The problem I have is that I cannot get "properly" the WSDL to extract
the XML Schema to validate the XML SOAP instance. Now I get the WSDL
via URL. But, I would like to get it from the context so as not to
check which WS is running and not to get an exception if some URI
change happens.

I tried:
        MessageContext context =
        Document document = (Document) context.getProperty ("WSDL");
but it returns a Document null instance.

Thanks in advance,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message