Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-5013

Documentation, webservices, "24.1. Configuration and Packaging" webservice configuration must be updated for AS7

    Details

    • Affects:
      Documentation (Ref Guide, User Guide, etc.)

      Description

      The webservice configuration has changed in AS7, a standard @HandlerChain mechanism should be used instead to configure the org.jboss.seam.webservice.SOAPRequestHandler, e.g. the one used in the current seambay example (see

      seambay-ejb/src/main/java/org/jboss/seam/example/seambay/AuctionService.java
      seambay-ejb/src/main/resources/org/jboss/seam/example/seambay/soap-handlers.xml

      )

      org/jboss/seam/example/seambay/soap-handlers.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <handler-chains xmlns="http://java.sun.com/xml/ns/javaee">
        <handler-chain>
          <handler>
            <handler-name>SOAP Request Handler</handler-name>
            <handler-class&gt;org.jboss.seam.webservice.SOAPRequestHandler</handler-class&gt;
          </handler>
        </handler-chain>
      </handler-chains>
      

      org/jboss/seam/example/seambay/AuctionService.java:

      ...
      
      @Stateless
      @Name("auctionService")
      @WebService(name = "AuctionService")
      @HandlerChain(file = "soap-handlers.xml")
      public class AuctionService implements AuctionServiceRemote
      {
      ...
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                manaRH Marek Novotny
                Reporter:
                maschmid Marek Schmidt
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: