axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ANTHONY ZIOLKOWSKI <azi...@rogers.com>
Subject Why do i get a "No such operation" error?
Date Wed, 07 Jun 2006 01:23:33 GMT
I get a "No such operation" error when I run my client stub. I can't figure out why.

I generate the client code using the following ant task:
    <target name="generate-client-stub">
        <axis-wsdl2java url="BizService.wsdl">
            
                package="com.zeesol.bizservice.client" />
        </axis-wsdl2java>
    </target>

WSDL File:
<?xml version="1.0" encoding="UTF-8"?>

    xmlns:tns="http://zeesol.com"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="BizService"
    targetNamespace="http://zeesol.com">
    <wsdl:types>
        
            xmlns="http://www.w3.org/2001/XMLSchema">
            <element name="baseRunnerQuery" type="dateTime"></element>
            <element name="runnerQueryResult">
                <complexType>
                    <attribute name="firstBase" type="string" />
                    <attribute name="secondBase" type="string" />
                    <attribute name="thirdBase" type="string" />
                    <attribute name="homePlate" type="string" />
                </complexType>
            </element>
            <element name="poolsQuery" type="dateTime"></element>
            <element name="poolResult">
                <complexType>
                    <sequence>
                        <element name="poolResultItem" minOccurs="1"
                            maxOccurs="unbounded">
                            <complexType>
                                <attribute name="buyInPrice"
                                    type="string" />
                                <attribute name="closingDate"
                                    type="xsd:date" />
                                <attribute name="feeCost" type="string" />
                                <attribute name="maxPlayerCount"
                                    type="int" />
                                <attribute name="playerCount"
                                    type="int" />
                                <attribute name="poolName"
                                    type="string" />
                                <attribute name="pool_id" type="int" />
                                <attribute name="pool_type"
                                    type="string" />
                            </complexType>
                        </element>
                    </sequence>
                </complexType>
            </element>
        </xsd:schema>
    </wsdl:types>
    <wsdl:message name="queryResponse">
        <wsdl:part name="queryResponse" element="tns:runnerQueryResult" />
    </wsdl:message>
    <wsdl:message name="queryRequest">
        <wsdl:part name="queryRequest" element="tns:baseRunnerQuery" />
    </wsdl:message>
    <wsdl:message name="getPoolsResponse">
        <wsdl:part name="getPoolsResponse" element="tns:poolResult" />
    </wsdl:message>
    <wsdl:message name="getPoolsRequest">
        <wsdl:part name="getPoolsRequest" element="tns:poolsQuery" />
    </wsdl:message>
    <wsdl:portType name="BizService">
        <wsdl:operation name="query">
            <wsdl:input message="tns:queryRequest" />
            <wsdl:output message="tns:queryResponse" />
        </wsdl:operation>
        <wsdl:operation name="getPools">
            <wsdl:input message="tns:getPoolsRequest"></wsdl:input>
            <wsdl:output message="tns:getPoolsResponse"></wsdl:output>
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="BizServiceSOAP" type="tns:BizService">
        <soap:binding style="document"
            transport="http://schemas.xmlsoap.org/soap/http" />
        <wsdl:operation name="query">
            
            <wsdl:input>
                <soap:body parts="queryRequest" use="literal" />
            </wsdl:input>
            <wsdl:output>
                <soap:body parts="queryResponse" use="literal" />
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="getPools">
            http://zeesol.com/NewOperation2"/>
            <wsdl:input>
                <soap:body parts="getPoolsRequest" use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body parts="getPoolsResponse" use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="BizService">
        <wsdl:port binding="tns:BizServiceSOAP" name="BizServiceSOAP">
            <soap:address
                location="http://localhost:8080/BizService/services/BizServiceSOAP" />
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>

Stack Trace:
Exception in thread "main" AxisFault
 faultCode: {http://xml.apache.org/axis/}Client
 faultSubcode: 
 faultString: No such operation 'poolsQuery'
 faultActor: 
 faultNode: 
 faultDetail: 
    {http://xml.apache.org/axis/}hostname:Discfact1

No such operation 'poolsQuery'
    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
    at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
    at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(Unknown Source)
    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
    at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
    at org.apache.axis.client.Call.invoke(Call.java:2767)
    at org.apache.axis.client.Call.invoke(Call.java:2443)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at com.zeesol.bizservice.client.BizServiceSOAPStub.getPools(BizServiceSOAPStub.java:220)
    at com.zeesol.bizservice.client.StubClient.main(StubClient.java:19)



Mime
View raw message