Skip to main contentdfsdf

  • Aug 15, 09

    The children of the soap:Body element in an ENVELOPE MUST be namespace qualified.

    • An ENVELOPE MUST NOT have any element children of soap:Envelope following the   soap:Body element.
    • The children of the soap:Body element in an ENVELOPE MUST be namespace qualified.

    10 more annotations...

    • The XML Schema specification consists of three parts. One part defines a set of simple datatypes, which can be associated with XML   element types and attributes; this allows XML software to do a better job of managing dates, numbers, and other special forms of   information. The second part of the specification proposes methods for describing the structure and constraining the   contents of XML documents, and defines the rules governing schema validation of documents. The third part is a primer   that explains what schemas are, how they differ from DTDs, and how one builds a schema.
    • In SOAP 1.2 multireference values may be encoded in-place rather than as "top-level" elements (as in SOAP 1.1):

    5 more annotations...

    • . "XML Schema Part 2: Datatypes" supports enumerations for all of the simple types except for   boolean.
    • The recommended representation of an opaque array of bytes is the 'base64' encoding   defined in XML Schemas, which uses the base64 encoding algorithm. However, the line length restrictions that normally   apply to base64 data in MIME do not apply in SOAP. A "SOAP-ENC:base64" subtype is supplied for   use with SOAP

    3 more annotations...

    • A SOAP node can be the initial SOAP sender, an ultimate SOAP receiver, or a SOAP   intermediary. A SOAP node receiving a SOAP message MUST perform processing according to the SOAP processing model   as described in this section and in the remainder of this specification. A SOAP node is identified by a URI
    • The SOAP headers control and process a message as it moves along a   message path. They include information that controls messaging qualities of service such as security, reliability,   and addressing. By specifying new headers, you can create interoperable protocols based on SOAP. These form   the basis of the services architecture

    7 more annotations...

    • SOAP 1.1 allows additional elements to follow the   SOAP Body element, SOAP 1.2 DISALLOWS these.
    • An ENVELOPE MUST NOT have any element children of soap:Envelope following the   soap:Body element

    8 more annotations...

      • WSDL language can be described as having two layers:  

         
           
        1.  

          The service definition layer describes abstract properties:

           

           

           
             
          •  

            data types

             
          •  

            message types

             
          •  

            operations

             
          •  

            services

           

           
        2.  

          The binding layer describes concrete properties:

           

           

           
             
          •  

            protocols

             
          •  

            data formats

    • e definitions element MUST be the root element of all  WSDL documents

    2 more annotations...

    • Annotations
    • Annotations

    23 more annotations...

    • JAX-WS allows developers to write message-oriented as well as RPC-oriented web  services
    • With JAX-WS, clients and web services have a big advantage: the platform  independence of the Java programming language. In addition, JAX-WS is not  restrictive: a JAX-WS client can access a web service that is not running on the  Java platform, and vice versa. This flexibility is possible because JAX-WS uses  technologies defined by the World Wide Web Consortium (W3C): HTTP, SOAP, and the  Web Service Description Language (WSDL)
    • A Java class (not an interface) annotated with a javax.jws.WebService annotation can be used to define a Web  service
    • In pratice, in order to exclude a public method of a class annotated with WebService and not directly specifying a endpointInterface

    13 more annotations...

    • @WebService @BindingType(value="http://www.w3.org/2003/05/soap/bindings/HTTP/")
    • In JAX-WS 2.0 service endpoint interface is no longer required. If a service  endpoint interfaces is desired, then the @WebService  annotation on the endpoint implementation is modified to specify the endpoint  interface and the actual service endpoint interface must also have a @WebService annotation

    12 more annotations...

    • APT

       

      A Java SE tool and framework for processing annotations.

    • Fast Infoset is a binary encoding of XML that can improve performance.

    1 more annotation...

    • The starting point for developing a JAX-WS web service is a Java class annotated  with the javax.jws.WebService annotation. The @WebService annotation defines the class as a web service  endpoint
    • The business methods of the implementing class must be public, and must NOT be declared static or final.

    3 more annotations...

    • When using the javax.xml.ws.Service.Mode.MESSAGE  mode, the Dispatch client is responsible for providing the entire SOAP envelope  including the soap:Envelope, soap:Header, and soap:Body elements.  

       

      When using the javax.xml.ws.Service.Mode.PAYLOAD  mode, the Dispatch client is only responsible for providing the contents of the  soap:Body and JAX-WS includes the payload in a soap:Envelope element.

    • The Dynamic Proxy client is dynamically generated at run time using the Java 5  Dynamic Proxy functionality, while the JAX-RPC-based stub client is a  non-portable Java file that is generated by tooling. Unlike the JAX-RPC stub  clients, the Dynamic Proxy client does not require you to regenerate a stub  prior to running the client on an application server for a different vendor  because the generated interface does not require the specific vendor  information.
    • Traditionally JAX-WS has never taken advantage of object state, just like  servlet. That is, the container creates only one instance of your service class,  and then have it serve all the requests concurrently. This makes it impossible  to set values to instance fields, as you will experience concurrency problem as  soon as multiple threads hit your service.

       

      On HTTP, session is often used to store state. This technique is still useful  for web services over HTTP

    • MessageContext msgContext = wsContext.getMessageContext();  HttpServletRequest request = (HttpServletRequest) msgContext.get(MessageContext.SERVLET_REQUEST);  HttpSession session = request.getSession();

    5 more annotations...

    • One of the key characteristics of a RESTful Web service is the explicit use of  HTTP methods in a way that follows the protocol as defined by RFC 2616.
        •  
        •  

          To create a resource on the server, use POST.  

           
        •  

          To retrieve a resource, use GET.

           
        •  

          To change the state of a resource or to update it, use PUT.

           
        •  

          To remove or delete a resource, use DELETE.  

    2 more annotations...

    • JAX-WS supports a "pluggable encoding" - meaning it can use formats other than  textual XML. This extension takes advantage of this and allows JAX-WS services  to be exposed via JSON
    • @BindingType(JSONBindingID.JSON_BINDING)

    1 more annotation...

    • A SOAP-based design may be appropriate when
    • A RESTFul design may be appropriate when

    6 more annotations...

1 - 20 of 38 Next ›
20 items/page
List Comments (0)