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: 

Edit Proxy generated data type WSDL

zhlish
Explorer
0 Kudos
370

Hi Experts,

I'm new to Proxy and facing some trouble maintaining one already exists.

I have a new z_report that calls a wsdl service containing methods and all generated proxy structure/tables.

Specifically, I have 2 methods using the same structure, one in input and one in output as response but they need 2 different datatype to get the result I need.

The zsddatetime_z and *_long_z work for the input one, but not for the output.

The xsddatetime_iso works for the output one, but not the input.

Tried also to set as STRING, but have the same problem, working just in output.

The error when I use it in input is the following

Is there any possibility to give different data type even if they use the same structure?

2 REPLIES 2

h_hkpatel
Advisor
Advisor
321

Hi,

No, if it is using same structure, you cannot give two different data types. Also, the data type you try to use should be compatible in both environment(Consumer and Provider).

If your request data is getting copied as is in your response data, I do not see any reason for it not to process on either side, unless your proxy call is processing it in different way.

Only option I can think of is to create two different message types and use them in your input and output.

Thanks,

Hardik

Sandra_Rossi
Active Contributor
0 Kudos
321

If it's STRING, you handle it yourself, there can't be an issue due to the framework. It's only due to your code, or to misunderstanding what is expected.

NB: having two different data types for the same WSDL definition reveals a very bad design, could you share it please to prove what you say? (I hope you are speaking WSDL language)