简体   繁体   中英

Generating legacy WSDL C++ MFC .NET 2.0 from Java 8 WSDL

Recently, our Java product has migrated from Java 1.6_45 to Java 1.8_202. This product is based on web methods and wsdl generation which now is done by the following libraries (v. 2.3.2) during ant build phase:

  • jaxws-rt
  • jaxws-tools
  • policy
  • streambuffer
  • jaxb-xjc
  • jaxb-jxc
  • jaxb-impl
  • jaxb-osgi

Now, I need to convert a pair of all these WSDL in a format valid for legacy .NET 2.0, as there are some components developed in C++ which run under IIS and which are integrated with our product. These legacy components are developed with Vsiual Studio 2005 with .NET framework 2.0 and ASP-NET 2.0. Previously, this was done by using a JBoss 5.1.0 and copying the jar of our product into the /bin directoty. Then, this command was launched:

jboss-5.1.0.GA\bin>wsprovide -o wsdl -c product.jar -w java_classpath_to_web_service

But now, both Jboss 5 and Jboss 7 cannot work with Java 8 built jars, so is there a way to get these old format WSDL? Maybe some special parameter to pass to wsprovide executable. Essentially they are without.schema files, which are eclosed into the WSDL itself and some few other peculiarities. The "issue" is about Visual Studio 2005 which wants the WSDL in a specific old format, otherwise it cannot import them.

There is a maven plugin that you can use during build to produce your wsdl, or once the app is deployed, just add?wsdl onto the url for your webservice to download

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM