jax-ws
  1. jax-ws
  2. JAX_WS-1040

EndpointInterface annotation generated based on wsdl for old addressing space are wrong

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.7
    • Component/s: wsgen, wsimport
    • Labels:
      None

      Description

      This issues comes only if addressing namespace in wsdl is

      xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"

      If we have something like following in wsdl

      <s0:portType name="CoordinatorPortType">
      <s0:operation name="PreparedOperation">
      <s0:input message="s1:Prepared" s2:Action="http://schemas.xmlsoap.org/ws/2004/10/wsat/Prepared"/>
      </s0:operation>

      The endpoint interface generated using tools has

      @WebMethod(operationName = "PreparedOperation", action = "http://schemas.xmlsoap.org/ws/2004/10/wsat/PreparedOperation")
      @Oneway
      public void preparedOperation(
      @WebParam(name = "Prepared", targetNamespace = "http://schemas.xmlsoap.org/ws/2004/10/wsat", partName = "parameters")
      Notification parameters);

      Note the difference in action in wsdl and the one on WebMethod annotation i.e. Prepared vs. PreparedOperation.

      This results in warning as runtime e.g.

      <Warning>
      <com.sun.xml.ws.model.JavaMethodImpl> <BEA-000000> <Input Action on WSDL
      operation PreparedOperation and @Action on its associated Web Method
      preparedOperation did not match and will cause problems in dispatching the
      requests>

      The tool should be fixed to generate correct annotation and param value.

        Activity

        Hide
        arjavdesai added a comment -

        This new fix is generating warning at build time as

        [clientgen] [WARNING] obsolete addressing version 08-2004:"http://schemas.xmlsoap.org/ws/2004/08/addressing" used; version "http://www.w3.org/2007/05/addressing/metadata" should be used instead.
        [clientgen] line 86 of file:/scratch/arjdesai/depot/dev/src1212/wls/modules/wsee/src/weblogic/wsee/wstx/WEB-INF/wsdls/wsat10/wsat.wsdl
        [clientgen]

        But it seems you did not revert the old fix i.e. I still see @Action annotation getting generated.

        Show
        arjavdesai added a comment - This new fix is generating warning at build time as [clientgen] [WARNING] obsolete addressing version 08-2004:"http://schemas.xmlsoap.org/ws/2004/08/addressing" used; version "http://www.w3.org/2007/05/addressing/metadata" should be used instead. [clientgen] line 86 of file:/scratch/arjdesai/depot/dev/src1212/wls/modules/wsee/src/weblogic/wsee/wstx/WEB-INF/wsdls/wsat10/wsat.wsdl [clientgen] But it seems you did not revert the old fix i.e. I still see @Action annotation getting generated.
        Hide
        miroslav.kos added a comment -

        According to the message you are using still version without reverted original fix - the last fix was on 17th of Feb -

        rev 1251 Adding warning if unknown extension elements/attributes found; reverting extension for MemberSubmission Addressing (connected to JAX_WS-1040)
        

        you should see different message:

        parsing WSDL...
        
        
        [WARNING] unknown extensibility element or attribute "Action" (in namespace "http://schemas.xmlsoap.org/ws/2004/08/addressing"
          line 34 of file:/C:/projects/jaxws-unit/testcases/bugs/jaxws1040/fromwsdl/server/WSAActionService.wsdl
        
        [WARNING] unknown extensibility element or attribute "Action" (in namespace "http://schemas.xmlsoap.org/ws/2004/08/addressing"
          line 35 of file:/C:/projects/jaxws-unit/testcases/bugs/jaxws1040/fromwsdl/server/WSAActionService.wsdl
        
        
        Show
        miroslav.kos added a comment - According to the message you are using still version without reverted original fix - the last fix was on 17th of Feb - rev 1251 Adding warning if unknown extension elements/attributes found; reverting extension for MemberSubmission Addressing (connected to JAX_WS-1040) you should see different message: parsing WSDL... [WARNING] unknown extensibility element or attribute "Action" (in namespace "http: //schemas.xmlsoap.org/ws/2004/08/addressing" line 34 of file:/C:/projects/jaxws-unit/testcases/bugs/jaxws1040/fromwsdl/server/WSAActionService.wsdl [WARNING] unknown extensibility element or attribute "Action" (in namespace "http: //schemas.xmlsoap.org/ws/2004/08/addressing" line 35 of file:/C:/projects/jaxws-unit/testcases/bugs/jaxws1040/fromwsdl/server/WSAActionService.wsdl
        Hide
        arjavdesai added a comment -

        I had copied the correct jars but forgot to rename them as per local env, my bad

        I verified by renaming them and see the following warning

        [clientgen] [WARNING] unknown extensibility element or attribute "action" (in namespace "http://www.w3.org/2005/08/addressing")
        [clientgen] line 56 of file:/scratch/arjdesai/depot/dev/src1212/wls/modules/wsee/src/weblogic/wsee/wstx/WEB-INF/wsdls/wsat11/wstx-wsat-1.1-wsdl-200702.wsdl
        [clientgen]
        [clientgen] [WARNING] unknown extensibility element or attribute "action" (in namespace "http://www.w3.org/2005/08/addressing")
        [clientgen] line 60 of file:/scratch/arjdesai/depot/dev/src1212/wls/modules/wsee/src/weblogic/wsee/wstx/WEB-INF/wsdls/wsat11/wstx-wsat-1.1-wsdl-200702.wsdl
        [clientgen]
        [clientgen] [WARNING] unknown extensibility element or attribute "action" (in namespace "http://www.w3.org/2005/08/addressing")
        [clientgen] line 64 of file:/scratch/arjdesai/depot/dev/src1212/wls/modules/wsee/src/weblogic/wsee/wstx/WEB-INF/wsdls/wsat11/wstx-wsat-1.1-wsdl-200702.wsdl
        [clientgen]
        [clientgen] [WARNING] unknown extensibility element or attribute "action" (in namespace "http://www.w3.org/2005/08/addressing")
        [clientgen] line 68 of file:/scratch/arjdesai/depot/dev/src1212/wls/modules/wsee/src/weblogic/wsee/wstx/WEB-INF/wsdls/wsat11/wstx-wsat-1.1-wsdl-200702.wsdl
        [clientgen]
        [clientgen] [WARNING] unknown extensibility element or attribute "action" (in namespace "http://www.w3.org/2005/08/addressing")
        [clientgen] line 74 of file:/scratch/arjdesai/depot/dev/src1212/wls/modules/wsee/src/weblogic/wsee/wstx/WEB-INF/wsdls/wsat11/wstx-wsat-1.1-wsdl-200702.wsdl
        [clientgen]
        [clientgen] [WARNING] unknown extensibility element or attribute "action" (in namespace "http://www.w3.org/2005/08/addressing")
        [clientgen] line 78 of file:/scratch/arjdesai/depot/dev/src1212/wls/modules/wsee/src/weblogic/wsee/wstx/WEB-INF/wsdls/wsat11/wstx-wsat-1.1-wsdl-200702.wsdl
        [clientgen]
        [clientgen] [WARNING] unknown extensibility element or attribute "action" (in namespace "http://www.w3.org/2005/08/addressing")
        [clientgen] line 82 of file:/scratch/arjdesai/depot/dev/src1212/wls/modules/wsee/src/weblogic/wsee/wstx/WEB-INF/wsdls/wsat11/wstx-wsat-1.1-wsdl-200702.wsdl

        also @Action is no longer getting generated.

        Can you please close the issue? Even though, I am filer, seems I need to be software developer for JAXWS project in order to close the issue.

        Show
        arjavdesai added a comment - I had copied the correct jars but forgot to rename them as per local env, my bad I verified by renaming them and see the following warning [clientgen] [WARNING] unknown extensibility element or attribute "action" (in namespace "http://www.w3.org/2005/08/addressing") [clientgen] line 56 of file:/scratch/arjdesai/depot/dev/src1212/wls/modules/wsee/src/weblogic/wsee/wstx/WEB-INF/wsdls/wsat11/wstx-wsat-1.1-wsdl-200702.wsdl [clientgen] [clientgen] [WARNING] unknown extensibility element or attribute "action" (in namespace "http://www.w3.org/2005/08/addressing") [clientgen] line 60 of file:/scratch/arjdesai/depot/dev/src1212/wls/modules/wsee/src/weblogic/wsee/wstx/WEB-INF/wsdls/wsat11/wstx-wsat-1.1-wsdl-200702.wsdl [clientgen] [clientgen] [WARNING] unknown extensibility element or attribute "action" (in namespace "http://www.w3.org/2005/08/addressing") [clientgen] line 64 of file:/scratch/arjdesai/depot/dev/src1212/wls/modules/wsee/src/weblogic/wsee/wstx/WEB-INF/wsdls/wsat11/wstx-wsat-1.1-wsdl-200702.wsdl [clientgen] [clientgen] [WARNING] unknown extensibility element or attribute "action" (in namespace "http://www.w3.org/2005/08/addressing") [clientgen] line 68 of file:/scratch/arjdesai/depot/dev/src1212/wls/modules/wsee/src/weblogic/wsee/wstx/WEB-INF/wsdls/wsat11/wstx-wsat-1.1-wsdl-200702.wsdl [clientgen] [clientgen] [WARNING] unknown extensibility element or attribute "action" (in namespace "http://www.w3.org/2005/08/addressing") [clientgen] line 74 of file:/scratch/arjdesai/depot/dev/src1212/wls/modules/wsee/src/weblogic/wsee/wstx/WEB-INF/wsdls/wsat11/wstx-wsat-1.1-wsdl-200702.wsdl [clientgen] [clientgen] [WARNING] unknown extensibility element or attribute "action" (in namespace "http://www.w3.org/2005/08/addressing") [clientgen] line 78 of file:/scratch/arjdesai/depot/dev/src1212/wls/modules/wsee/src/weblogic/wsee/wstx/WEB-INF/wsdls/wsat11/wstx-wsat-1.1-wsdl-200702.wsdl [clientgen] [clientgen] [WARNING] unknown extensibility element or attribute "action" (in namespace "http://www.w3.org/2005/08/addressing") [clientgen] line 82 of file:/scratch/arjdesai/depot/dev/src1212/wls/modules/wsee/src/weblogic/wsee/wstx/WEB-INF/wsdls/wsat11/wstx-wsat-1.1-wsdl-200702.wsdl also @Action is no longer getting generated. Can you please close the issue? Even though, I am filer, seems I need to be software developer for JAXWS project in order to close the issue.
        Hide
        miroslav.kos added a comment -

        Ok, closing the issue.

        Show
        miroslav.kos added a comment - Ok, closing the issue.
        Hide
        Martin Grebac added a comment -

        reopen to set proper release v

        Show
        Martin Grebac added a comment - reopen to set proper release v

          People

          • Assignee:
            miroslav.kos
            Reporter:
            arjavdesai
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: