Uploaded image for project: 'Beehive'
  1. Beehive
  2. BEEHIVE-599

Document Literal Wrapped webservice wsdl fails to compile

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • V1Alpha, V1Beta, v1m1
    • None
    • Web Services (181)
    • None
    • 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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              xibin Xibin Zeng
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: