10-16-2015 1:21 PM
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
10-16-2015 10:26 PM
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
11-09-2015 4:04 PM
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
11-09-2015 6:06 PM
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.
11-10-2015 1:57 PM
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
11-10-2015 6:04 PM