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 JUNE 09, 2016

Applies to:

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

Symptoms

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

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

Webservice class
=================
@WebService(serviceName="TestService",endpointInterface="test.ServiceInterface")
@SOAPBinding(style = javax.jws.soap.SOAPBinding.Style.DOCUMENT, use =
javax.jws.soap.SOAPBinding.Use.LITERAL, parameterStyle =
javax.jws.soap.SOAPBinding.ParameterStyle.WRAPPED)

public class TestService implements ServiceInterface{

public EobType getEOB(EobType claimNumber)
{
return claimNumber;
}
}

<project name="CatalogIssue" basedir="." default="fork_build_client">
<taskdef name="jwsc"
classname="weblogic.wsee.tools.anttasks.JwscTask" />
<taskdef name="wsdlc"
classname="weblogic.wsee.tools.anttasks.WsdlcTask"/>

<target name="WebResult">
<jwsc
srcdir="srcNS"
destdir="outputNS/WebResult">
<jws file="test/TestService.java" wsdlOnly="true"/>
<classpath>
<pathelement path="${classpath}"/>
<pathelement location=".\Schemas_customer.jar"/>
</classpath>
</jwsc>
</target>
</project>



<xs:schema attributeFormDefault="unqualified"
elementFormDefault="qualified" targetNamespace="http://test"
xmlns:s0="http://schemas.xmlsoap.org/wsdl/" xmlns:s1="http://test"
xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:import namespace=""/>
<xs:element name="GetXYZ">
<xs:complexType>
<xs:sequence>
<xs:element name="Input_String_Input" type="EobType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="GetXYZResponse">
<xs:complexType>
<xs:sequence>
<xs:element name="EobType" type="EobType"/> //
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</s0:types>

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

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