Working with large wsdl, can we trim it?

后端 未结 7 931
攒了一身酷
攒了一身酷 2021-01-18 09:28

My webservice provider give me a large WSDL file, but we are going to use only a few function inside.

I believe that the large WSDL have negative impact to the appli

7条回答
  •  天命终不由人
    2021-01-18 09:35

    In short, your answers are "No tool, but you can DIY".

    I wish there are simple tool can do it because my WSDL contains too many unused function and schema of data structure.

    If I can automate it, WSDL -> trimmed WSDL -> generate client stubs classes. Nothing unused will be generated, no misuse, no maintenances required, we will not touch on the generated code, and I can really focus on the code which in use. Smaller JAR, shorter XML parse time. If the WSDL get updated, I will had only to rebuild client stubs classes and run unit test.

    I tried to keep off from human invoked. It takes time, easily to get mistake, and have to redo every time every little change on the original WSDL.

    I am not conversant on the WSDL schema. I am thinking can it be done by XSLT?

提交回复
热议问题