Friday, May 10, 2013

Error During Web Service Proxy Creation - oracle.jdeveloper.webservices.model.WebServiceException: Error creating model from wsdl

When attempting to create a web service proxy in a JDeveloper 11.1.1.6 ADF application you may come across the following error which prevents the creation of the proxy service.

oracle.jdeveloper.webservices.model.WebServiceException: Error creating model from wsdl "http://host.domain.com:port/webservices/SOAProvider/?wsdl" :org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammer(Lorg/apache/xerces/xni/parser/XMLInputSource;)V


 I have found that this is a result of the project that you are creating the web service proxy in having a reference to the 'ADF Model Generic Runtime' library. This reference can either be in the 'Libraries and Classpath' for the project or it can be in the 'Libraries and Classpath' of another project that your project is referencing through the project's dependencies.






You can just remove the reference to the 'ADF Model Generic Runtime' library, save the project's properties, and then try to create the web service proxy again. If you still get the same error make sure you don't have any indirect references to the 'ADF Model Generic Runtime' and restart JDeveloper before trying again. Once the web service proxy is created you can safely add the 'ADF Model Generic Runtime' library back to the project or if you don't feel it is needed leave it out. 

1 comment:

  1. The solution is not exactly true. And You can try to create proxy client using JAX-RPC.

    ReplyDelete