Beehive
  1. Beehive
  2. BEEHIVE-599

Document Literal Wrapped webservice wsdl fails to compile

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: V1Alpha, V1Beta, v1m1
    • Fix Version/s: None
    • Component/s: Web Services (181)
    • Labels:
      None
    • Environment:
      N/A

      Description

      Install the wsm-samples application, using the following wsdl:
      http://localhost:8080/wsm-samplesWS/web/complex/RpcLiteralSample.jws?wsdl

      Trying to generate stub classes using wscompile caused the following exception:

      [wscompile] in message "AddressException", part "fault" must specify a "element" attribute

      [wscompile] at com.sun.xml.rpc.processor.modeler.wsdl.WSDLModelerBase.handleLiteralSOA
      PFault(WSDLModelerBase.java:2892)
      [wscompile] at com.sun.xml.rpc.processor.modeler.wsdl.WSDLModelerBase.processSOAPOpera
      tionRPCLiteralStyle(WSDLModelerBase.java:2652)
      [wscompile] at com.sun.xml.rpc.processor.modeler.wsdl.WSDLModelerBase.processSOAPOpera
      tion(WSDLModelerBase.java:905)
      [wscompile] at com.sun.xml.rpc.processor.modeler.wsdl.WSDLModelerBase.processPort(WSDL
      ModelerBase.java:763)
      [wscompile] at com.sun.xml.rpc.processor.modeler.wsdl.WSDLModelerBase.processService(W
      SDLModelerBase.java:519)
      [wscompile] at com.sun.xml.rpc.processor.modeler.wsdl.WSDLModelerBase.internalBuildMod
      el(WSDLModelerBase.java:354)
      [wscompile] at com.sun.xml.rpc.processor.modeler.wsdl.WSDLModelerBase.buildModel(WSDLM
      odelerBase.java:238)
      [wscompile] at com.sun.xml.rpc.processor.config.ModelInfo.buildModel(ModelInfo.java:88
      )
      [wscompile] at com.sun.xml.rpc.processor.Processor.runModeler(Processor.java:63)
      [wscompile] at com.sun.xml.rpc.tools.wscompile.CompileTool.run(CompileTool.java:714)
      [wscompile] at com.sun.xml.rpc.util.ToolBase.run(ToolBase.java:43)
      [wscompile] at com.sun.xml.rpc.tools.wscompile.Main.main(Main.java:22)
      [wscompile] error: in message "AddressException", part "fault" must specify a "element" at
      tribute
      [wscompile] Command invoked: wscompile C:\jdk1.5.0_02\jre\bin\java.exe -classpath C:\jdk1.
      5.0_02\lib\tools.jar;D:\Sun\jwsdp-1.5\jwsdp-shared\lib\mail.jar;D:\Sun\jwsdp-1.5\jwsdp-sha
      red\lib\activation.jar;D:\Sun\jwsdp-1.5\jaxp\lib\endorsed\dom.jar;D:\Sun\jwsdp-1.5\jaxp\li
      b\endorsed\sax.jar;D:\Sun\jwsdp-1.5\jaxp\lib\endorsed\xalan.jar;D:\Sun\jwsdp-1.5\jaxp\lib\
      endorsed\xercesImpl.jar;D:\Sun\jwsdp-1.5\jaxrpc\lib\jaxrpc-api.jar;D:\Sun\jwsdp-1.5\jaxrpc
      \lib\jaxrpc-impl.jar;D:\Sun\jwsdp-1.5\jaxrpc\lib\jaxrpc-spi.jar;D:\Sun\jwsdp-1.5\saaj\lib\
      saaj-api.jar;D:\Sun\jwsdp-1.5\saaj\lib\saaj-impl.jar;D:\Sun\jwsdp-1.5\jwsdp-shared\lib\rel
      axngDatatype.jar;D:\Sun\jwsdp-1.5\jwsdp-shared\lib\xsdlib.jar;D:\Sun\jwsdp-1.5\jwsdp-share
      d\lib\jax-qname.jar;D:\Sun\jwsdp-1.5\apache-ant\lib\ant.jar;D:\dev\standards\jsr181\tck\li
      b\javatest.jar;D:\dev\standards\jsr181\tck\lib\sigtestdev.jar;D:\dev\standards\jsr181\tck\
      lib\sigtest.jar com.sun.xml.rpc.tools.wscompile.Main -d D:\dev\sandbox\beehive\v1\wsm\tck\
      build\clientclasses "-features:explicitcontext, useonewayoperations" -gen:client -keep -Xp
      rintstacktrace D:\dev\sandbox\beehive\v1\wsm\tck\build\clientclasses\config-template.xml

      To repro, you will need to download jwsdp 1.5, and here is the config file for wscompile:

      <?xml version="1.0" encoding="UTF-8"?>

      <configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
      <wsdl location="http://localhost:8080/wsm-samplesWS/web/complex/RpcLiteralSample.jws?wsdl"
      packageName="com.bea.ts.tests.utils" />
      </configuration>

      This is encountered during the jsr181 TCK testing process.

      Xibin

        Issue Links

          Activity

          Hide
          Eddie O'Neil added a comment -

          Daryoush, another WSM issue. I've fixed this one up (converted it into a bug) and passed it along.

          If anyone else wants to step in and help fix WSM issues, feel free to grab this one!

          Show
          Eddie O'Neil added a comment - Daryoush, another WSM issue. I've fixed this one up (converted it into a bug) and passed it along. If anyone else wants to step in and help fix WSM issues, feel free to grab this one!
          Hide
          daryoush mehrtash added a comment -

          The problem appears to be in the Axis WSDL generation. It seems that for the Document case it generates the correct WSDL, but in RPC it is not.

          I have sent out a message to the Axis list on this. I would need to dig deeper into Axis to resolve this bug.

          Show
          daryoush mehrtash added a comment - The problem appears to be in the Axis WSDL generation. It seems that for the Document case it generates the correct WSDL, but in RPC it is not. I have sent out a message to the Axis list on this. I would need to dig deeper into Axis to resolve this bug.
          Hide
          Eddie O'Neil added a comment -

          Daryoush – is it possible that this would be fixed the proposed final version of Axis 1.2?

          Show
          Eddie O'Neil added a comment - Daryoush – is it possible that this would be fixed the proposed final version of Axis 1.2?
          Hide
          daryoush mehrtash added a comment -

          This problem was not fixed with Axis 1.2 upgrade.

          I have stepped through the Axis code, there may be some issues with the header processing that we need to look at more closely. This problem should not be a show stopper for V1, we need to look at it after the V1 release.

          Show
          daryoush mehrtash added a comment - This problem was not fixed with Axis 1.2 upgrade. I have stepped through the Axis code, there may be some issues with the header processing that we need to look at more closely. This problem should not be a show stopper for V1, we need to look at it after the V1 release.

            People

            • Assignee:
              Unassigned
              Reporter:
              Xibin Zeng
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Development