cancel
Showing results for 
Search instead for 
Did you mean: 

Remove Elements without Data in the Proxy Implementation

Former Member
0 Kudos

Hi, Is it possible to remove the elements from the XML generated in the Proxy implementation if there is no data for the Elements?

The empty elements in the response is increasing the size of the XML and decreases the performance.

any idea will be appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Is it possible to remove the elements from the XML generated in the Proxy implementation if there is no data for the Elements?

Automatically, if no data for a field then its removed form Client proxy.

If u want to remove the whole record if any element is missing, thn it shold be done from ABAP side.

The empty elements in the response is increasing the size of the XML and decreases the performance.

Here r u talking abt receiver proxy(Server Proxy)?

Babu

Former Member
0 Kudos

In the server proxy implementation, when the ABAP code executes it has a huge number of fields. Only few of them get filled.

In the WSDL I set Occurance to 0-1 and Nillable = 'true'.

Will it remove the empty tags when I assign the ABAP structure to the output in the Server Proxy Implementation?

Regards,

Ramesh-

Answers (1)

Answers (1)

former_member208856
Active Contributor
0 Kudos

You can handdle it in ABAP code easily.

Former Member
0 Kudos

Hi Sandeep,

When you say it can be implemented in ABAP, do you mean, checking for the nil value for each field?

Or is there any Function Module which does it?

Ramesh-

Former Member
0 Kudos

Setting Minoccur to 0. solved by problem

ClaudioCapra
Explorer
0 Kudos

Hi,

where did you set Minoccur to 0.?

into the server proxy abap?

how did you do?

thanks in advance!