Changeset 18856 in vbox
- Timestamp:
- Apr 9, 2009 5:22:07 PM (16 years ago)
- Location:
- trunk/src/VBox/Main/webservice
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/webservice/Makefile.kmk
r18801 r18856 634 634 $(VBOXWEB_JAVALIB)/gen15:$(VBOX_JAXWS_LIBDIR)/jaxws-api.jar:$(VBOX_JAXWS_LIBDIR)/lib/jaxb-api.jar:$(VBOX_JAXWS_LIBDIR)/jsr181-api.jar \ 635 635 $(VBOXWEB_PATH_SDK_GLUE_JAVA)/*.java -d $(VBOXWEB_JAVALIB)/gen15 636 $( QUIET)$(CP) -f $(VBOXWEBSERVICE_WSDL) $(VBOXWEB_JAVALIB)/gen15/637 $(QUIET)$(CP) -f $(VBOXWEB_WSDL) $(VBOXWEB_JAVALIB)/gen15/ 636 $(SED) -e "s/vboxweb.wsdl/vboxweb$(VBOX_API_SUFFIX).wsdl/" < $(VBOXWEBSERVICE_WSDL) > $(VBOXWEB_JAVALIB)/gen15/vboxwebService$(VBOX_API_SUFFIX).wsdl 637 $(QUIET)$(CP) -f $(VBOXWEB_WSDL) $(VBOXWEB_JAVALIB)/gen15/vboxweb$(VBOX_API_SUFFIX).wsdl 638 638 $(QUIET)$(RM) -f $(VBOXWEB_JAVALIB)/gen15/*.java 639 $(QUIET)$(CP) -f $(VBOXWEB_WSDL) $(VBOXWEBSERVICE_WSDL) $(VBOXWEB_JAVALIB)/gen15640 639 $(QUIET)$(VBOX_JAR) cf $@ -C $(VBOXWEB_JAVALIB)/gen15 . 641 640 … … 648 647 $(QUIET)$(VBOX_JAVAC16) -cp $(VBOXWEB_JAVALIB)/gen16 \ 649 648 $(VBOXWEB_PATH_SDK_GLUE_JAVA)/*.java -d $(VBOXWEB_JAVALIB)/gen16 650 $( QUIET)$(CP) -f $(VBOXWEBSERVICE_WSDL) $(VBOXWEB_JAVALIB)/gen16/651 $(QUIET)$(CP) -f $(VBOXWEB_WSDL) $(VBOXWEB_JAVALIB)/gen16/ 649 $(SED) -e "s/vboxweb.wsdl/vboxweb$(VBOX_API_SUFFIX).wsdl/" < $(VBOXWEBSERVICE_WSDL) > $(VBOXWEB_JAVALIB)/gen16/vboxwebService$(VBOX_API_SUFFIX).wsdl 650 $(QUIET)$(CP) -f $(VBOXWEB_WSDL) $(VBOXWEB_JAVALIB)/gen16/vboxweb$(VBOX_API_SUFFIX).wsdl 652 651 $(QUIET)$(RM) -f $(VBOXWEB_JAVALIB)/gen16/*.java 653 $(QUIET)$(CP) -f $(VBOXWEB_WSDL) $(VBOXWEBSERVICE_WSDL) $(VBOXWEB_JAVALIB)/gen16654 652 $(QUIET)$(VBOX_JAR) cf $@ -C $(VBOXWEB_JAVALIB)/gen16 . 655 653 -
trunk/src/VBox/Main/webservice/glue-jaxws.xsl
r18694 r18856 42 42 <xsl:variable name="G_virtualBoxPackage" select="concat('org.virtualbox',$G_vboxApiSuffix)" /> 43 43 <xsl:variable name="G_virtualBoxPackage2" select="concat('com.sun.xml.ws.commons.virtualbox',$G_vboxApiSuffix)" /> 44 <xsl:variable name="G_virtualBoxWsdl" select="concat(concat('"vboxwebService',$G_vboxApiSuffix), '.wsdl"')" /> 44 45 45 46 <xsl:include href="websrv-shared.inc.xsl" /> … … 485 486 </xsl:call-template> 486 487 487 <xsl:text><![CDATA[ 488 488 489 import java.net.URL; 489 490 import java.math.BigInteger; … … 499 500 class PortPool 500 501 { 502 private final static String wsdlFile = <xsl:value-of select="$G_virtualBoxWsdl" />; 503 504 <xsl:text><![CDATA[ 501 505 private Map<VboxPortType, Integer> known; 502 506 private boolean initStarted; 503 private VboxService svc; 507 private VboxService svc; 504 508 505 509 PortPool(boolean usePreinit) … … 559 563 { 560 564 if (svc == null) { 561 URL wsdl = PortPool.class.getClassLoader().getResource( "vboxwebService.wsdl");565 URL wsdl = PortPool.class.getClassLoader().getResource(wsdlFile); 562 566 if (wsdl == null) 563 throw new LinkageError( "vboxwebService.wsdlnot found, but it should have been in the jar");567 throw new LinkageError(wsdlFile+" not found, but it should have been in the jar"); 564 568 svc = new VboxService(wsdl, 565 569 new QName("http://www.virtualbox.org/Service",
Note:
See TracChangeset
for help on using the changeset viewer.