cancel
Showing results for 
Search instead for 
Did you mean: 

WSDL Response Renamed

former_member540174
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member540174
Participant
0 Kudos

I spoke with the XI developer and he finally admitted to changing the web service - didn't think it would impact me --- ah wrong. He regenerated the wsdl for me and it all works.

former_member201361
Active Contributor
0 Kudos

hi ,

if u have changed any attributes or Structure in the web services , then please delete the web services model and recreate the model again , so that the changes made by u will reflect .

Thanks and Regards

former_member540174
Participant
0 Kudos

This is a new structure. But for grins I reimported my web service model. I've since removed the model bindings and re did them. I've even recycled my Java engine after checking the proxy connections (they are pointing to the wsdl I used during import).

Error is stil happening.

Diane

former_member201361
Active Contributor
0 Kudos

Hi Fuller ,

is the source code of services is accessible to u , if yes then delete the web services model in CAF and regenerate the web service model.

finally reimport the model in ur DC.

Thanks and Regards