我正在使用 flex 完成需要获取 Web 服务的浏览器客户端,
<s:WebService id="wsTest" wsdl="blablabla">
<s:operation name="?" result="doResault(event)">
<s:request>
</s:request>
</s:operation>
</s:WebService>
但是问题来了,因为这个 wsdl 是由 BEPL 生成的,我在那里看不到操作名称,那我该怎么办?
BEPL生成的wsdl如下,我删了很多东西:BEPL应该是个大函数,就是不知道bepl的入口在哪里,用什么方法
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions>
<wsdl:types>
...
</wsdl:types>
<wsdl:message name="mainRequest">
<wsdl:part name="parameters" element="ns:main"/>
</wsdl:message>
...
<wsdl:portType name="PositioningWebServicePortType">
<wsdl:operation name="main">
<wsdl:input message="ns:mainRequest" wsaw:Action="urn:main"/>
</wsdl:operation>
<wsdl:operation name="training">
<wsdl:input message="ns:trainingRequest" wsaw:Action="urn:training"/>
<wsdl:output message="ns:trainingResponse" wsaw:Action="urn:trainingResponse"/>
<wsdl:fault message="ns:IOException" name="IOException" wsaw:Action="urn:trainingIOException"/>
<wsdl:fault message="ns:SQLException" name="SQLException" wsaw:Action="urn:trainingSQLException"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="PositioningWebServiceSoap11Binding" type="ns:PositioningWebServicePortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<wsdl:operation name="main">
<soap:operation soapAction="urn:main" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
</wsdl:operation>
<wsdl:operation name="training">
<soap:operation soapAction="urn:training" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="IOException">
<soap:fault use="literal" name="IOException"/>
</wsdl:fault>
<wsdl:fault name="SQLException">
<soap:fault use="literal" name="SQLException"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="PositioningWebService">
</wsdl:service>
</wsdl:definitions>