title: Converting the format of a WSDL file (Java?)
body: <p>I work with a system (Salesforce) that can only consume document/literal wrapped WSDL files.  However, my customers need me to connect with older systems that generate other formats of WSDL file (RPC literal for example or just doc literal).  So I often receive wsdl files in 'unfriendly' formats and I have a Hell Of A time trying to shoehorn it into a format acceptable by Salesforce.  Basically, there can be no external references in the wsdl and it must be doc/literal wrapped.</p>
  
  <p>So... I was thinking that a sneaky way to solve this issue might be to consume the wsdl in Java (jax.ws) and then recreate the wsdl from Java programmatically with a single call.</p>
  
  <p>Has this problem been solved before?  If not, then am I on the right track?  Has anyone solved this wsdl transformation issue before?   I assume XSLT could probably do the job for a smarter man than myself, but I've got to work with the brain I was issued and it seems determined to learn the minimum possible about wsdls in order to solve this problem. </p>
  
  <p>TLDR: can I consume/create arbitrary format WSDLs with java so I can create WSDLs in wrapped doc/literal format with no attributes (elements instead) and no imports (a completely self contained WSDL should be the output).</p>
  
  <p>If you can help me solve this problem I will buy you a pizza!  That's right.  I'll email you a papaJohn/Dominos/Pizzahut coupon (or even call your local pizza joint and buy it for you if you want to give me your home address/phone number - which you probably don't).</p>