on 09-10-2009 1:47 PM
Hello Experts,
I have a scenario where a Bapi functionality(server proxy) is exposed as a webservice .
So scenario will be SOAP -> XI -> Proxy (calls a BAPI)
In our BAPI (proxy, target structure) we are having 100+ fields. Currently the WS consumer - application making SOAP call to our webservice will send only 20 (minimum required) fields. But in near future it will be updated to send all 100 fields.
Is it OK to include all 100 fields in source data type even though we will receive only 20 fields. (If i mark all of them as optional i.e. occurance 0..1) Or will it result in error?
Thanks in Advance,
XI Queries.
If you mark the non-sent fields as optional, like you already mentioned, there should be no problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for quick reply ...2 points to you
Then I would like to know , if the SOAP call should include empty xml tags for these 80 extra fields, or it is ok with just tags for required 20 fields?
Because in this case my WSDL will contain all 100 parameters and will expect the request in similer structure. isnt it so?
Ok, I will proceed by including all fields.
Thanks for quick replies with expert opinions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, It is good to expose web service for all 100+ fileds. You can control on required fileds in message mapping so as of now you'll map only 20 fileds but in future as per requirement you can do mappings for rest of fields. Advanatage of this is....in future no changes on consumer side are required and you can quickly enable rest of fileds in PI using mappings.
Hope this helps.
Regards,
Sach
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
Yes, If you know that those fileds will be there in the future, you can create it now in the datatype. It will not give you any error if you make it optional as you mentioned.
Shweta.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
>>Is it OK to include all 100 fields in source data type even though we will receive only 20 fields. (If i mark all of them as optional i.e. occurance 0..1) Or will it result in error?
yes it is ok to have all 100 fields in source even if you use only 20 fields. But later when you make them as mandatory or anything, you need to regenerate the wsdl
Regards
Suraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.