Skip to Content
0
Jun 22, 2014 at 10:16 AM

SOAP Web service with Integration Gateway

26 Views

Hi Guys,

Since SMP 3.0 uses OData i am following the below link to create Odata services from SOAP WebServices

http://scn.sap.com/people/marvin.hoffmann/blog/2014/03/15/how-to-connect-soap-webservices-with-integration-gateway-in-smp3

But the pre requisite seems to be that the response should have a key field.

My scenario is that i have a soap service which takes in the Username as input and give the user details as output

This is my input body

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

<soap:Body>

<EmployeeInfo xmlns="http://tempuri.org/">

<pUserName>string</pUserName>

</EmployeeInfo>

</soap:Body>

</soap:Envelope>

And the Response body is

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

<soap:Body>

<EmpInfoResponse xmlns="http://tempuri.org/">

<EmpInfoResult>

<EmployeeInfo>

<EMPLOYEE_NUMBER>int</EMPLOYEE_NUMBER>

<NATIONAL_IDENTIFIER>string</NATIONAL_IDENTIFIER>

<FULL_NAME_EN>string</FULL_NAME_EN>

<FULL_NAME_AR>string</FULL_NAME_AR>

<MARITAL_STATUS_EN>string</MARITAL_STATUS_EN>

<MARITAL_STATUS_AR>string</MARITAL_STATUS_AR>

<HIRE_DATE>dateTime</HIRE_DATE>

<HIRE_DATE_STR>string</HIRE_DATE_STR>

<NATIONALITY_EN>string</NATIONALITY_EN>

<NATIONALITY_AR>string</NATIONALITY_AR>

<GENDER_EN>string</GENDER_EN>

<GENDER_AR>string</GENDER_AR>

<DATE_OF_BIRTH>dateTime</DATE_OF_BIRTH>

<DATE_OF_BIRTH_STR>string</DATE_OF_BIRTH_STR>

<ORGANIZATION>string</ORGANIZATION>

<GRADE>string</GRADE>

<JOB_EN>string</JOB_EN>

<JOB_AR>string</JOB_AR>

<POSITION_EN>string</POSITION_EN>

<POSITION_AR>string</POSITION_AR>

<SUPERVISOR>string</SUPERVISOR>

<MOBILE_PHONE>string</MOBILE_PHONE>

<EMAIL_ADDRESS>string</EMAIL_ADDRESS>

<LEVEL>string</LEVEL>

</EmployeeInfo>

<EmployeeInfo>

<EMPLOYEE_NUMBER>int</EMPLOYEE_NUMBER>

<NATIONAL_IDENTIFIER>string</NATIONAL_IDENTIFIER>

<FULL_NAME_EN>string</FULL_NAME_EN>

<FULL_NAME_AR>string</FULL_NAME_AR>

<MARITAL_STATUS_EN>string</MARITAL_STATUS_EN>

<MARITAL_STATUS_AR>string</MARITAL_STATUS_AR>

<HIRE_DATE>dateTime</HIRE_DATE>

<HIRE_DATE_STR>string</HIRE_DATE_STR>

<NATIONALITY_EN>string</NATIONALITY_EN>

<NATIONALITY_AR>string</NATIONALITY_AR>

<GENDER_EN>string</GENDER_EN>

<GENDER_AR>string</GENDER_AR>

<DATE_OF_BIRTH>dateTime</DATE_OF_BIRTH>

<DATE_OF_BIRTH_STR>string</DATE_OF_BIRTH_STR>

<ORGANIZATION>string</ORGANIZATION>

<GRADE>string</GRADE>

<JOB_EN>string</JOB_EN>

<JOB_AR>string</JOB_AR>

<POSITION_EN>string</POSITION_EN>

<POSITION_AR>string</POSITION_AR>

<SUPERVISOR>string</SUPERVISOR>

<MOBILE_PHONE>string</MOBILE_PHONE>

<EMAIL_ADDRESS>string</EMAIL_ADDRESS>

<LEVEL>string</LEVEL>

</EmployeeInfo>

</EmpInfoResult>

</EmpInfoResponse>

</soap:Body>

</soap:Envelope>

Any help would be very appreciated