cancel
Showing results for 
Search instead for 
Did you mean: 

Change Abap webservice response operation name

Former Member
0 Kudos

Hello Everybody,

I have created a RFC enabled functional module ("/abc0/Z_TEST") and created a "Enterprise Service" (syncron service provider) based on that. On default, the webservice operation is named "_abc0_Z_TEST" but I could change the external operation to "MaterialRequestMessage". If I test this webservice with SOAPUI, the request looks like this (simplified):

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sap-com:document:sap:soap:functions:mc-style">

   <soapenv:Header/>

   <soapenv:Body>

      <urn:MaterialRequestMessage>

         <Parameter1>?</Parameter>

      </urn:MaterialRequestMessage>

   </soapenv:Body>

</soapenv:Envelope>

and the returned response from the server:

<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">

   <soap-env:Header/>

   <soap-env:Body>

      <n0:MaterialRequestMessageResponse xmlns:n0="urn:sap-com:document:sap:soap:functions:mc-style">

         <EtNrResponse>?</EtNrResponse>

      </n0:MaterialRequestMessageResponse>

   </soap-env:Body>

</soap-env:Envelope>

I noticed that the returned xml has a "response" attached to the operation I have defined for the request operation. However, in SE80, I could only find the settings for the request but not for the response.

My question is, how can I change the response operation to be named "MaterialResponseMessage" instead of "MaterialRequestMessageResponse"?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I created a WSDL with the requirements and used the Wizard to create a service proxy. The proxy contains the correct operation names now.

Answers (0)