My Oracle Support Banner

JDeveloper Generates public void execute Method for complexType in Web Service Proxy PortType (Doc ID 2505697.1)

Last updated on OCTOBER 27, 2022

Applies to:

Oracle JDeveloper - Version 12.2.1.1.0 and later
Information in this document applies to any platform.

Symptoms

Creating a Web Service Proxy in JDeveloper it generates public void execute method code from a complexType (f.ex foo:Foobar) in it's PortType.java file:

  public void execute(@WebParam(name = "Foobar",
  targetNamespace = "http://<DOMAINNAME>/namespace/foobar/v1",
  mode = WebParam.Mode.INOUT) Holder<Foobar> foobar);


This is an issue since it will return void but it should return a Foobar response instead, and the developer cannot write code using foobar type, f.ex:

  Holder<Foobar> hold = new Holder<Foobar>();
  hold.value = foobar;
  foobarPortType.execute(hold);



Generating a SOAP project in SoapUI with the same WSDL correctly gets an executeResponse while 
running the execute method/request. 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.