Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-3363

Upgrading Axis V1 to V2 in OFbiz's Web Service and Complex Type Supported

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Trunk
    • Trunk
    • framework
    • None

    Description

      Upgrading Axis V1 to V2 in OFbiz's Web Service and Complex Type Supported

      I change OFBiz's web service API to Axis2.

      ==Client Engine==
      1. XMLSerializer to serialize parameters Map object to XML.
      2. create OMElement from XML stream.
      3. ServiceClient send SOAP message.
      4. get result OMElement.
      5. convert XML content in OMElement to results Map object.

      ==Event Handler==
      1. create OMElement from InputStream
      2. get service's name
      3. XMLSerializer to deserialize parameters XML to Map object
      4. call specific service
      5. XMLSerializer to serializer service's results Map object to XML
      6. create OMElement for service's results
      7. send OMElement to response

      ==Apply Axis2 in OFBiz==
      1. apply patch
      2. unzip libraries.zip and copy all jar files to framework/service/lib directory

      ==Test SOAP Service==
      run unit test:
      ./ant run-single-test -Dtest.component=service -Dtest.case=service-soap-tests
      This is a test case that demonstrate service engine can sent both of single type and complex type

      ==WSDL==
      The testSoap.wsdl file is web service definition language of testSoap service.
      Every services require map-Map as type of input/output parameter. In map-Map consist of key/value pair for service's parameters.
      In wsdl:part of wsdl:message has wsdl:documentation which state service's attribute, consist of
      1. name
      2. type
      3. namespace
      4. java-class
      5. optional

      ==WSDL Types==
      The types.xsd file is xml schema for complex type
      WSDL Types be generated by code. If any one has a better solution please comment this issue.

      Attachments

        1. axis2.diff
          62 kB
          Chatree Srichart
        2. libraries.zip
          1.77 MB
          Chatree Srichart
        3. testSoap.wsdl
          9 kB
          Chatree Srichart
        4. types.xsd
          6 kB
          Chatree Srichart

        Issue Links

          Activity

            People

              hansbak Hans Bakker
              chatree Chatree Srichart
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: