How to customize the schema inlined inside an imported WSDL

前端 未结 2 1755
Happy的楠姐
Happy的楠姐 2021-01-19 05:52

I have a.wsdl & b.wsdl where a.wsdl imports b.wsdl. Now I have to customize the schema inside b.wsdl using wsimport and JAXB. but using below customizat

2条回答
  •  悲哀的现实
    2021-01-19 06:02

    Have you tried adding the following attributes to the element?

     xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    

    and

     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    

    You're referencing the xsd and wsdl namespaces in your xpath expression, but until you define the URI's for them, they won't match up with the URI's in the target documents.

提交回复
热议问题