1

Can I access a Local registered Dll like this

 <object classid="clsid:8fa8600b-dd9d-4ec2-a533-2986cb0df433" id="dllId">
    </object>

from javascript like this:

  function dllData(){
        alert('called')
        var objData = document.getElementById('dllId');
        alert(objData);
   }

Am trying to do this from a normal HTML page. Is it possible in the above manner?

Kindly suggest.

Thanks


axis2 - Error parsing WSDL

I'm new in using axis2 and I'trying to generate java classes from a wsdl. Unfotunately I get the following exception : org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL I cannot figure out how to find the problem. I work with axis2-1.6.2 on jdk1.7 and win7. Any hint would be appreciated. Flavio here is my wsdl :

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions 
name="IFX170PortType" 
targetNamespace="urn:ifxforum-org:WSDL:1:PortType" 
xmlns:tns="urn:ifxforum-org:WSDL:1:PortType" 
xmlns:types="urn:ifxforum-org:WSDL:1:PortType:types" 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
    <xsd:schema 
        targetNamespace="urn:ifxforum-org:WSDL:1:PortType:types"
        xmlns:ifx="urn:ifxforum-org:XSD:1" 
        xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
        <xsd:import namespace="urn:ifxforum-org:XSD:1" 
                                schemaLocation="IFX170.xsd"/>
        <xsd:element name="DoIFXRq">
            <xsd:complexType>
                <xsd:sequence>
                    <xsd:element ref="ifx:IFX" />
                </xsd:sequence>
            </xsd:complexType>
        </xsd:element>
        <xsd:element name="DoIFXRs">
            <xsd:complexType>
                <xsd:sequence>
                    <xsd:element ref="ifx:IFX" />
                </xsd:sequence>
            </xsd:complexType>
        </xsd:element>
    </xsd:schema>
</wsdl:types>
<wsdl:message name="DoIFXRqMsg">
    <wsdl:part name="parameters" element="types:DoIFXRq"/>
</wsdl:message>
<wsdl:message name="DoIFXRsMsg">
    <wsdl:part name="result" element="types:DoIFXRs"/>
</wsdl:message>
<wsdl:portType name="IFX170PortType">
    <wsdl:operation name="DoIFX">
        <wsdl:input message="tns:DoIFXRqMsg"/>
        <wsdl:output message="tns:DoIFXRsMsg"/>
    </wsdl:operation>
</wsdl:portType>
<wsdl:binding name="IFX170SOAPBinding" type="IFX170PortType">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="DoIFX">
        <soap:operation style="document" soapAction="getDoIFX" />
        <wsdl:input>
            <soap:body use="literal" />
        </wsdl:input>
        <wsdl:output>
            <soap:body use="literal" />
        </wsdl:output>
    </wsdl:operation>
</wsdl:binding>
<wsdl:service name="IFX170Service">
    <wsdl:port name="IFX170SOAPPort" binding="IFX170SOAPBinding">
        <soap:address location="http://localhost:8080/axis2/services      /StockQuoteService" />
    </wsdl:port>
</wsdl:service>
</wsdl:definitions>
4

1 回答 1

1

不,您需要通过“new ActiveXObject()”从该 DLL 实例化对象,然后调用该对象实例的方法。

于 2012-04-29T18:28:04.283 回答