Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

WSDL Response Renamed

I have an XI web service that I am calling from my web dynpro. I've seen in XI that my query is being run and the response is sent back. The abend I see in web dynpro says

Caused by: java.rmi.RemoteException: Part 'EmployeeTime_Query_response' not found in response !; nested exception is:

java.lang.Exception: Part 'EmployeeTime_Query_response' not found in response !

at EmployeeTimeQuerySyncOBBindingStub._invoke(EmployeeTimeQuerySyncOBBindingStub.java:108)

Looking at the WSDL and classes the model created the EmployeeTime_Query_Response class - note the class name is Response and not response.

Here is a portion of the WSDL

<xsd:schema targetNamespace="http://spiritaero.com/xi/PI/EmployeeTime/PORTAL/Attendance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://spiritaero.com/xi/PI/EmployeeTime/PORTAL/Attendance">

<xsd:element name="EmployeeTime_Query_response" type="EmployeeTime_Query_response" />

<xsd:element name="EmployeeTime_Query" type="EmployeeTime_Query" />

+ <xsd:complexType name="EmployeeTime_Query">

- <xsd:sequence>

- <xsd:element name="Query" minOccurs="0" maxOccurs="unbounded" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

- <xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">d71058a079e411ddbdd4005345000000</xsd:appinfo>

</xsd:annotation>

- <xsd:complexType>

- <xsd:sequence>

- <xsd:element name="access" type="xsd:string">

- <xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">d71058a179e411ddcf5f005345000000</xsd:appinfo>

</xsd:annotation>

</xsd:element>

- <xsd:element name="key" minOccurs="0">

- <xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">d71058a279e411ddbacb005345000000</xsd:appinfo>

</xsd:annotation>

- <xsd:complexType>

- <xsd:sequence>

- <xsd:element name="placeholder" type="xsd:string" minOccurs="0" maxOccurs="unbounded" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

- <xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">d71058a379e411dd849d005345000000</xsd:appinfo>

</xsd:annotation>

</xsd:element>

</xsd:sequence>

</xsd:complexType>

</xsd:element>

</xsd:sequence>

</xsd:complexType>

</xsd:element>

</xsd:sequence>

</xsd:complexType>

- <xsd:complexType name="EmployeeTime_Query_response">

- <xsd:sequence>

- <xsd:element name="Statement_response" minOccurs="0" maxOccurs="unbounded" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

+ <xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">c3925f3079ee11ddc931005345000000</xsd:appinfo>

</xsd:annotation>

- <xsd:complexType>

- <xsd:sequence>

+ <xsd:element name="row" minOccurs="0" maxOccurs="unbounded" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

- <xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">c3925f3179ee11dd8a3a005345000000</xsd:appinfo>

</xsd:annotation>

- <xsd:complexType>

- <xsd:sequence>

- <xsd:element name="EMPLID" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

- <xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">c3925f3279ee11dd9f58005345000000</xsd:appinfo>

</xsd:annotation>

</xsd:element>

- <xsd:element name="POST_LOC" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

- <xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">c3925f3379ee11dd840b005345000000</xsd:appinfo>

</xsd:annotation>

</xsd:element>

- <xsd:element name="REVD_BY" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

- <xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">c3925f3479ee11dda491005345000000</xsd:appinfo>

</xsd:annotation>

</xsd:element>

- <xsd:element name="REVD_TS" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

- <xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">c3925f3579ee11ddcadb005345000000</xsd:appinfo>

</xsd:annotation>

</xsd:element>

- <xsd:element name="CLOCKINTS" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

- <xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">c3925f3679ee11ddb1d6005345000000</xsd:appinfo>

</xsd:annotation>

</xsd:element>

- <xsd:element name="CLOCKOUTTS" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

- <xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">c3925f3779ee11ddc11c005345000000</xsd:appinfo>

</xsd:annotation>

</xsd:element>

- <xsd:element name="ATTIO_FLG" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

- <xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">c3925f3879ee11ddbd5e005345000000</xsd:appinfo>

</xsd:annotation>

</xsd:element>

- <xsd:element name="ATTNC_TS" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

- <xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">c3925f3979ee11ddc5a2005345000000</xsd:appinfo>

</xsd:annotation>

</xsd:element>

- <xsd:element name="DEVICE" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

- <xsd:annotation>

<xsd:appinfo source="http://sap.com/xi/TextID">c3925f3a79ee11ddc8fb005345000000</xsd:appinfo>

</xsd:annotation>

</xsd:element>

</xsd:sequence>

</xsd:complexType>

</xsd:element>

</xsd:sequence>

</xsd:complexType>

</xsd:element>

</xsd:sequence>

</xsd:complexType>

</xsd:schema>

</wsdl:types>

The classes generated from the wsdl are:

EmployeeTime_Query_Response.java

EmployeeTime_Query.java

EmployeeTime.java

Key.java

Query.java

Request_EmployeeTime_Query_Sync_OB.java

Response_EmployeeTime_Query_Sync_OB.java

Row.java

Statement_response.java

String_Item.java

Any thoughts as to why the WSDL says "response" yet the generated class is "Response"....

Regards,

Diane

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question