You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by JOSE L MARTINEZ-AVIAL <jl...@gmail.com> on 2012/05/09 05:16:40 UTC

[axis1 servers vs axis2 client] no such operation exception received until WSDL is seen

Hello all,
  We want to generate an Axis2 client (1.6.1) client for an old Axis1
service. The service is a plain POJO, and the server-config.wsdd is as
follows:

    <service name="ValuationsXMLGenerator" provider="java:RPC"
style="document" use="literal">
        <parameter name="wsdlTargetNamespace" value="urn:xml.generator.ws"/>
        <parameter name="schemaUnqualified" value="urn:xml.generator.ws"/>

        <parameter name="className"
value="com.bpi.stmts.generacion.WSGenerator"/>
        <parameter name="extraClasses"
value="com.bpi.stmts.generacion.vo.XMLRequestBase"/>
        <parameter name="allowedMethods" value="generateCurrentXML"/>


        <operation name="generateCurrentXML" qname="generateCurrentXML"
returnQName="CurrentXMLResponse" returnType="rtns:XMLResponse"
xmlns:rtns="urn:xml.generator.ws" soapAction="generateCurrentXML">
            <parameter qname="CurrentXMLRequest" xmlns:pns="urn:
xml.generator.ws" type="tns:CurrentXMLRequest" xmlns:tns="urn:
xml.generator.ws"/>
        </operation>

        <beanMapping xmlns:ns="urn:xml.generator.ws"
            qname="ns:XMLRequestBase"
        type="java:com.bpi.stmts.generacion.vo.XMLRequestBase"/>

        <beanMapping xmlns:ns="urn:xml.generator.ws"
            qname="ns:XMLResponse"
        type="java:com.bpi.stmts.generacion.vo.XMLResponse"/>

        <beanMapping xmlns:ns="urn:xml.generator.ws"
            qname="ns:CurrentXMLRequest"
        type="java:com.bpi.stmts.generacion.vo.CurrentXMLRequest"/>

    </service>

The Axis2 client is created using the WSDL generated by Axis1 online. The
issue we have found is that when the server is restarted, the service
answers to any request to execute the method generateCurrentXML with a No
Such Operation exception, as follows:

<soapenv:Fault>
<faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Client</faultcode>
<faultstring>No such operation 'CurrentXMLRequest'</faultstring>
<detail>
<ns2:hostname xmlns:ns2="http://xml.apache.org/axis/
">myserver</ns2:hostname>
</detail>
</soapenv:Fault>

This happens until someone queries the URL
http://myserver/myapp/services/ValuationsXMLGenerator?wsdl. Then all the
request go through, and they are answered correctly. Has anyone see this
behavior before? if so, is there any way to fix it?

thanks