jax-ws
  1. jax-ws
  2. JAX_WS-930

Give understandable error message when wsimport is run with rpc/enc wsdl

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.7, 2.2.3
    • Fix Version/s: 2.2.4
    • Component/s: None
    • Labels:
      None

      Description

      Give understandable error message when wsimport is run with rpc/enc wsdl.

      When wsimport is run on rpc/enc wsdl such as GoogleSearch.wsdl, as the WSDL is rpc-encoded it should have been directly rejected by wsimport, as it is not supported. Instead it fails with errors that does not convey any info on its lack of support for rpc/enc wsdl.

      [WARNING] src-resolve.4.2: Error resolving component 'soapenc:Array'. It was detected that 'soapenc:Array' is in namespace 'http://schemas.xmlsoap.org/soap/encoding/', but components from this namespace are not referenceable from schema document 'file:/home2/ramkris/w/bugs/jaxws-6712341/GoogleSearch.wsdl#types?schema1'. If this is the incorrect namespace, perhaps the prefix of 'soapenc:Array' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'file:/home2/ramkris/w/bugs/jaxws-6712341/GoogleSearch.wsdl#types?schema1'.
      line 52 of file:/home2/ramkris/w/bugs/jaxws-6712341/GoogleSearch.wsdl#types?schema1

      [ERROR] undefined simple or complex type 'soapenc:Array'
      line 52 of file:/home2/ramkris/w/bugs/jaxws-6712341/GoogleSearch.wsdl

      [ERROR] undefined attribute 'soapenc:arrayType'
      line 53 of file:/home2/ramkris/w/bugs/jaxws-6712341/GoogleSearch.wsdl

      [ERROR] undefined simple or complex type 'soapenc:Array'
      line 60 of file:/home2/ramkris/w/bugs/jaxws-6712341/GoogleSearch.wsdl

      [ERROR] undefined attribute 'soapenc:arrayType'
      line 61 of file:/home2/ramkris/w/bugs/jaxws-6712341/GoogleSearch.wsdl

        Activity

        Hide
        ramapulavarthi added a comment -

        Tracking JAX-WS-6712341 on JIRA.

        A fix has been made to wsimport to report the error when use="encoded" is seen on soap:body,soap:fault,soap:header extension elements in the wsdl binding.

        Now the error message shows:
        [ERROR] "Use of SOAP Encoding is not supported.
        SOAP extension element on line 151 in file:/home2/ramkris/w/bugs/jaxws-6712341/GoogleSearch.wsdl has use="encoded" "

        Failed to parse the WSDL.

        -----------------------------------------------------------------
        Project: jax-ws
        Repository: https://svn.java.net/svn/jax-ws~sources/branches/jdk7-branch/jaxws-ri
        Revision: 12217
        Author: ramapulavarthi
        Date: 2011-03-16 00:28:42 UTC
        Link:

        Log Message:
        ------------
        JAX-WS-6712341: Detect the use SOAP Encoding in wsdl and fail before WSDL model is created, so that a meaningful error message can be given to the user.

        ----------------------------------------------------------------------

        Project: jax-ws
        Repository: https://svn.java.net/svn/jax-ws~sources/branches/jaxws22/jaxws-ri
        Revision: 12218
        Author: ramapulavarthi
        Date: 2011-03-16 00:44:14 UTC
        Link:

        Log Message:
        ------------
        JAX-WS-6712341:merged change jdk7-branch:12217 into jaxws22 branch
        --------------------------------------------------------------------------------

        Show
        ramapulavarthi added a comment - Tracking JAX-WS-6712341 on JIRA. A fix has been made to wsimport to report the error when use="encoded" is seen on soap:body,soap:fault,soap:header extension elements in the wsdl binding. Now the error message shows: [ERROR] "Use of SOAP Encoding is not supported. SOAP extension element on line 151 in file:/home2/ramkris/w/bugs/jaxws-6712341/GoogleSearch.wsdl has use="encoded" " Failed to parse the WSDL. ----------------------------------------------------------------- Project: jax-ws Repository: https://svn.java.net/svn/jax-ws~sources/branches/jdk7-branch/jaxws-ri Revision: 12217 Author: ramapulavarthi Date: 2011-03-16 00:28:42 UTC Link: Log Message: ------------ JAX-WS-6712341: Detect the use SOAP Encoding in wsdl and fail before WSDL model is created, so that a meaningful error message can be given to the user. ---------------------------------------------------------------------- Project: jax-ws Repository: https://svn.java.net/svn/jax-ws~sources/branches/jaxws22/jaxws-ri Revision: 12218 Author: ramapulavarthi Date: 2011-03-16 00:44:14 UTC Link: Log Message: ------------ JAX-WS-6712341:merged change jdk7-branch:12217 into jaxws22 branch --------------------------------------------------------------------------------

          People

          • Assignee:
            ramapulavarthi
            Reporter:
            ramapulavarthi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: