My Oracle Support Banner

WebResult value is not honored in the wsdl file when using xmlbeans types jar file for jax-rpc webservice. (Doc ID 1337675.1)

Last updated on APRIL 30, 2018

Applies to:

Oracle Weblogic Server - Version: 10.3 to 10.3.5
Information in this document applies to any platform.


WebResult value is not honored in the wsdl file when using xmlbean types jar file.
For example:
import javax.jws.WebService;
import com.EobType;

public interface ServiceInterface {
@WebMethod(operationName = "GetXYZ")
@WebResult(name = "Output_Result_EobType")
public EobType getEOB(@WebParam(name="Input_String_Input")EobTypeclaimNumber);

Webservice class
@SOAPBinding(style = javax.jws.soap.SOAPBinding.Style.DOCUMENT, use =
javax.jws.soap.SOAPBinding.Use.LITERAL, parameterStyle =

public class TestService implements ServiceInterface{

public EobType getEOB(EobType claimNumber)
return claimNumber;

<project name="CatalogIssue" basedir="." default="fork_build_client">
<taskdef name="jwsc"
classname="" />
<taskdef name="wsdlc"

<target name="WebResult">
<jws file="test/" wsdlOnly="true"/>
<pathelement path="${classpath}"/>
<pathelement location=".\Schemas_customer.jar"/>

<xs:schema attributeFormDefault="unqualified"
elementFormDefault="qualified" targetNamespace="http://test"
xmlns:s0="" xmlns:s1="http://test"

<xs:import namespace=""/>
<xs:element name="GetXYZ">
<xs:element name="Input_String_Input" type="EobType"/>
<xs:element name="GetXYZResponse">
<xs:element name="EobType" type="EobType"/> //

Note: <xs:element name="EobType" type="EobType"/> the name should be Output_Result_EobType . It should be changed to <xs:element name="Output_Result_EobType"  type="EobType"/>

This happens when Webresult annotation when used with XMLBeans
when looked at WSDL the return type is not changed to Output_Result_EobType but the input type is changed Input_String_Input


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

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