Illegalargumentexception Creating a Web Service Proxy from a WSDL Without Namespace Prefixes (Doc ID 1252785.1)

Last updated on MARCH 22, 2017

Applies to:

Web Services - Version: 10.1.3.0.0 to 10.1.3.5 - Release: to AS10gR3
Web Services - Version: 11.1.1.0.0 to 11.1.1.2.0]
Information in this document applies to any platform.

Symptoms

An IllegalArgumentException is thrown when generating a Web Service Proxy from a WSDL that does not use namespace prefixes.

Without namespace prefixes:
<address location="http://soa.vm.oracle.com:7777/WSHelloWorld/WSHelloWorld"/>

With namespace prefixes:
<soap:address location="http://soa.vm.oracle.com:7777/WSHelloWorld/WSHelloWorld"/> 


Typical Error stack: 

java.lang.IllegalArgumentException: prefix cannot be "null" when creating a QName

at javax.xml.namespace.QName.<init>(QName.java:253)
at oracle.j2ee.ws.wsdl.extensions.soap.SOAPBindingSerializer.unmarshall(SOAPBindingSerializer.java:59)
at oracle.j2ee.ws.wsdl.extensions.ParseUtils.createExtensibilityElement(ParseUtils.java:106)
at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.parseBinding(WSDLReaderImpl.java:1031)
at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.parseDefinition(WSDLReaderImpl.java:792)
at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:706)
at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:338)
at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:294)
at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:278)
at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDLInternal(CachedWSDLReader.java:465)
at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDL(CachedWSDLReader.java:437)
at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDL(CachedWSDLReader.java:408)
at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel.fetchWSDL(SpecifyWsdlPanel.java:1036)
at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlAndMappingFilePanel.fetchWSDL(SpecifyWsdlAndMappingFilePanel.java:232)
at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel$1.run(SpecifyWsdlPanel.java:355)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
at java.lang.Thread.run(Thread.java:619) 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms