Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

skip optional tags in input while consuming external WS in ABAP ?

Former Member
0 Kudos

All,

I came across a situation while consuming an external web service in ABAP using it's WSDL.

There are few optional tags in the WSDL schema file and for some reasons, i don't want an empty OPTIONAL tag to be sent in the input of the WS call.

Can we avoid sending empty tags in the input whil consuming / calling an external WS ?

BR

Nilesh

5 REPLIES 5

former_member226239
Contributor
0 Kudos

How are you consuming the WS?

Did you create a consumer proxy for the WS? There are 3 steps in consuming the WS.

1. Create a consumer proxy for the WS (using the url  http://........./xyz?wsdl)

2. Create a logical port (most of the times basis does the job)

3. Call the web service method (which was created in first step) from the ABAP program

-Chandra

0 Kudos

Hi Chandra,

Yes I did go as you said but nowhere i could find any option to select the fields/tag mentioned in the WSDL.

Is it possible to do it ?

BR

Nilesh

0 Kudos

How is your WSDL file? Is it something like this?

http://www.xyz.com/xy.../xy.../webservice

Where do you have the optional tag? Is it after the "webservice" in the above URL?

If yes, while creating the consumer proxy just give the URL till "webservice" and ignore the content after that.

0 Kudos

Hi Chandra,

My wsdl file is http://www.xyz.com/.....something.wsdl

The options fields are mentioned in the schema of WSDL.

Does it sound a bell to you?

BR

Nilesh

0 Kudos

Well, no.

But what is the purpose of those fields?