Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5280

wsdl2java may fail to extract the wsma:Action attribute value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6.9, 2.7.6
    • 2.6.10, 2.7.7, 3.0.0-milestone1
    • Tooling
    • None
    • Unknown

    Description

      This problem occurs if the wswa:Action attribute is used in your wsdl and the value of the attribute starts with one of the namespace prefixes used in the document. For example, the following wsdl document sets wswa:Action with value "http://cxf.apache..." and this "http" happens to be declared as a namespace prefix.

      <wsdl:definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
      ...
      xmlns:wswa="http://www.w3.org/2006/05/addressing/wsdl"
      xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
      ...>
      <wsdl:portType ...>
      <wsdl:operation ...>
      <wsdl:input name="greetMeRequest" message="tns:greetMeRequest"
      wswa:Action="http://cxf.apache.org/w2j/hello_world_soap_http/greetMe"/>

      This results in the incorrectly extracted action value, which corresponds to the part following the colon "//cxf.apache.org/w2j/hello_world_soap_http/greetMe".

      reported in users@cxf
      http://cxf.547215.n5.nabble.com/wsdl2java-issue-td5733906.html

      Attachments

        Activity

          People

            ay Akitoshi Yoshida
            ay Akitoshi Yoshida
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: