WebService Client Generation Error with JDK8

后端 未结 23 2707
既然无缘
既然无缘 2020-11-27 08:50

I need to consume a web service in my project. I use NetBeans so I right-clicked on my project and tried to add a new \"Web Service Client\". Last time I checked, this was t

23条回答
  •  无人及你
    2020-11-27 09:52

    Another solution to address: wiki.netbeans.org

    The Web Service Client wizard in the IDE parses the WSDL file when generating a web service client from a web service or WSDL file. You need to modify the IDE configuration file (netbeans.conf) to add the following switch to the netbeans_default_options. You will need to restart the IDE for the change to take effect.

    -J-Djavax.xml.accessExternalSchema=all
    

    When deploying to GlassFish you need to enable access to external schema to generate a test client for a web service. To enable access you need to modify the configuration file of the GlassFish Server (GLASSFISH_INSTALL/glassfish/domains/domain1/config/domain.xml) and add the following JVM option element. You will need to restart the server for the change to take effect.

    
      ...
      -Djavax.xml.accessExternalSchema=all
    
    

提交回复
热议问题