Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Using different package names for bindings and wsdl using the jaxws maven plugin

balteoFeb 21 2014

Hello,

We have a special requirement with our application: files generated against the wsdl should have a given package name and files generated against xsd files should have another package name.

There does not seem to have a way to customize this with the jaxws maven plugin. Here is our current configuration:

I have the following code:

<execution>
  <id>wsimport-finderpro-01</id>
  <phase>generate-sources</phase>
  <goals>
  <goal>wsimport</goal>
  </goals>
  <configuration>
  <bindingDirectory>src/main/resources/xml-resources/web-service-references/B2T_DataModel.asmx/xsd</bindingDirectory>
  <bindingFiles>
  <bindingFile>OpenDirectAccessSession.xsd</bindingFile>
  </bindingFiles>
  <!--wsdls file directory -->
  <wsdlDirectory>src/main/resources/xml-resources/web-service-references/B2T_DataModel.asmx/wsdl</wsdlDirectory>
  <!-- which wsdl file -->
  <wsdlFiles>
  <wsdlFile>B2T_DataModel.asmx.wsdl</wsdlFile>
  </wsdlFiles>
  <!-- Keep generated files -->
  <keep>true</keep>
  <!-- Package name -->
  <packageName>com.ids.world.worldlink.finderpro.xmlstubs</packageName>
  <!-- generated source files destination-->
  <sourceDestDir>target/generated-code/src</sourceDestDir>
  <staleFile>target/jaxws/fp-01/.staleFlag</staleFile>
  <target>2.1</target>
  </configuration>
  </execution>
  <execution>
  <id>wsimport-finderpro-02</id>
  <phase>generate-sources</phase>
  <goals>
  <goal>wsimport</goal>
  </goals>
  <configuration>
  <bindingDirectory>src/main/resources/xml-resources/web-service-references/B2T_DataModel.asmx/xsd</bindingDirectory>
  <bindingFiles>
  <bindingFile>GetAllMyEntityQuotes.xsd</bindingFile>
  </bindingFiles>
  <!--wsdls file directory -->
  <wsdlDirectory>src/main/resources/xml-resources/web-service-references/B2T_DataModel.asmx/wsdl</wsdlDirectory>
  <!-- which wsdl file -->
  <wsdlFiles>
  <wsdlFile>B2T_DataModel.asmx.wsdl</wsdlFile>
  </wsdlFiles>
  <!-- Keep generated files -->
  <keep>true</keep>
  <!-- Package name -->
  <packageName>com.ids.world.worldlink.finderpro.xmlstubs.allMyEntityQuotes</packageName>
  <!-- generated source files destination-->
  <sourceDestDir>target/generated-code/src</sourceDestDir>
  <staleFile>target/jaxws/fp-02/.staleFlag</staleFile>
  <target>2.1</target>
  </configuration>
  </execution>


The issue is that I noticed that many classes are regenerated several times (here x2) and I end up with same classes in different packages.

How can I ensure that classes generated for the wsdl are generated once and classes for the xsd are generated and placed in their respective package?

Thanks in advance,

Comments

3047598
Answer

Hi,

For the purpose of completion:

X5-2 machines support USB 2.0 compliant devices, that support a maximum power draw of 500mA.

All USB 2.0 compliant devices support this specification. Due to layout design, the front USB ports are more sensitive to this overdraw.

We may plug the HDD to the rear ports or

use a Y cable, enabling the HDD to draw power from both the USB ports.

There is a Bug 23092904 raised for this and it not being fixed, as the device is not strictly USB 2.0 compliant.

Warm Regards,

balaji R

Marked as Answer by DK kanta · Sep 27 2020
1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 21 2014
Added on Feb 21 2014
0 comments
1,821 views