0 Replies Latest reply on Feb 15, 2011 5:58 PM by Urs Marti

    Webservice with dynamic WSDL

    Urs Marti Newbie

      Hi,

       

      I'd like to create a dynamic webservice. Dynamic means, database driven operations, messages and types. To process the SOAP messages, I've found WebserviceProvider:

       

      package dynamo;

      import javax.ejb.Stateless;

      import javax.xml.soap.SOAPMessage;

      import javax.xml.ws.Provider;

      import javax.xml.ws.ServiceMode;

      import javax.xml.ws.WebServiceProvider;

      import javax.xml.ws.Service.Mode;

       

      @Stateless

      @WebServiceProvider(portName = "DynamoPortName", serviceName = "DynamoServiceName", targetNamespace = "dynamo")

      @ServiceMode(Mode.MESSAGE)

      public class Dynamo implements Provider<SOAPMessage> {

       

          @Override

          public SOAPMessage invoke(SOAPMessage message) {

              System.out.println("Message arrived.");

              return null;

          }

      }

       

      The WebserviceProvider requests a deploy - time existing relative WSDL file, so it doesn't fit my requirements.

       

      How do I create a WSDL file and its service programmatically?

       

      Sincerely,

      -U. Marti