"Exception: msg 'axis2:null', not-found" when using a suds client with an axis2 server

Posted by konrad on Stack Overflow See other posts from Stack Overflow or by konrad
Published on 2010-05-10T21:17:29Z Indexed on 2010/05/10 21:24 UTC
Read the original article Hit count: 1013

Filed under:
|
|
|

I am writing a Suds (Python) SOAP client for an Axis2 server I have no control over. Suds chokes on the WSDL file with the following exception:

  File "site-packages/suds/wsdl.py", line 494, in resolve
    raise Exception("msg '%s', not-found" % op.input)
Exception: msg 'axis2:null', not-found 

This is the WSDL file (I have replaced the hostnames with localhost). Any clue on how to fix this with the ImportDoctor?

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:axis2="http://ws.apache.org/axis2" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://ws.apache.org/axis2">
    <wsdl:types/>
    <wsdl:portType name="__SynapseServicePortType">
        <wsdl:operation name="mediate">
            <wsdl:input message="axis2:null" wsaw:Action="urn:mediate"/>
            <wsdl:output message="axis2:null" wsaw:Action="urn:mediateResponse"/>
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="__SynapseServiceSoap11Binding" type="axis2:__SynapseServicePortType">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
        <wsdl:operation name="mediate">
            <soap:operation soapAction="urn:mediate" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="__SynapseServiceSoap12Binding" type="axis2:__SynapseServicePortType">
        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
        <wsdl:operation name="mediate">
            <soap12:operation soapAction="urn:mediate" style="document"/>
            <wsdl:input>
                <soap12:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap12:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="__SynapseServiceHttpBinding" type="axis2:__SynapseServicePortType">
        <http:binding verb="POST"/>
        <wsdl:operation name="mediate">
            <http:operation location="mediate"/>
            <wsdl:input>
                <mime:content type="text/xml" part="mediate"/>
            </wsdl:input>
            <wsdl:output>
                <mime:content type="text/xml" part="mediate"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="__SynapseService">
        <wsdl:port name="__SynapseServiceHttpsSoap11Endpoint" binding="axis2:__SynapseServiceSoap11Binding">
            <soap:address location="https://localhost:8843/services/__SynapseService.__SynapseServiceHttpsSoap11Endpoint"/>
        </wsdl:port>
        <wsdl:port name="__SynapseServiceHttpSoap11Endpoint" binding="axis2:__SynapseServiceSoap11Binding">
            <soap:address location="http://localhost:8880/services/__SynapseService.__SynapseServiceHttpSoap11Endpoint"/>
        </wsdl:port>
        <wsdl:port name="__SynapseServiceHttpsSoap12Endpoint" binding="axis2:__SynapseServiceSoap12Binding">
            <soap12:address location="https://localhost:8843/services/__SynapseService.__SynapseServiceHttpsSoap12Endpoint"/>
        </wsdl:port>
        <wsdl:port name="__SynapseServiceHttpSoap12Endpoint" binding="axis2:__SynapseServiceSoap12Binding">
            <soap12:address location="http://localhost:8880/services/__SynapseService.__SynapseServiceHttpSoap12Endpoint"/>
        </wsdl:port>
        <wsdl:port name="__SynapseServiceHttpsEndpoint" binding="axis2:__SynapseServiceHttpBinding">
            <http:address location="https://localhost:8843/services/__SynapseService.__SynapseServiceHttpsEndpoint"/>
        </wsdl:port>
        <wsdl:port name="__SynapseServiceHttpEndpoint" binding="axis2:__SynapseServiceHttpBinding">
            <http:address location="http://localhost:8880/services/__SynapseService.__SynapseServiceHttpEndpoint"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>

© Stack Overflow or respective owner

Related posts about suds

Related posts about python