You've specified a binding style of document/literal, but your message
parts represent types. That's not valid. Your message parts must
reference elements. I also recommend that you design your WSDL so that
it conforms to the "wrapped" convention.

See http://atmanes.blogspot.com/2005/03/wrapped-documentliteral-convention.html.

Anne

On 5/21/07, Shanna7463 <[EMAIL PROTECTED]> wrote:

Hi, I'm pretty new to web services.  I deployed a web service and I'm trying
to test it with a client method, but I keep getting this error:

AxisFault
 faultCode: {http://xml.apache.org/axis/}Client
 faultSubcode:
 faultString: No such operation 'emailElement'
 faultActor:
 faultNode:
 faultDetail:
        {http://xml.apache.org/axis/}hostname:ssood

No such operation 'emailElement'
        at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
....

I have a feeling I'm doing something wrong in my wsdl:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
targetNamespace="http://harps.sys.com/cmattWS";
xmlns:tns1="http://harps.sys.com/cmattWS";
xmlns:apachesoap="http://xml.apache.org/xml-soap";
xmlns:impl="http://harps.sys.com/cmattWS";
xmlns:intf="http://harps.sys.com/cmattWS";
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>

    <!--WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)-->
    <!--


   -->
    <wsdl:types>
        <schema targetNamespace="http://harps.sys.com/cmattWS";
tns1="http://harps.sys.com/cmattWS"; xmlns="http://www.w3.org/2001/XMLSchema";
elementFormDefault="qualified">
            <complexType name="emailType">
                <sequence>
                    <element name="to" type="xsd:string"/>
                    <element name="from" type="xsd:string"/>
                    <element name="subject" type="xsd:string"/>
                    <element name="body" type="xsd:string"/>
                </sequence>
            </complexType>
        </schema>
    </wsdl:types>
    <!--


   -->
    <wsdl:message name="getNTSPResponse">
        <wsdl:part name="getNTSPReturn" type="xsd:string"/>
    </wsdl:message>
    <wsdl:message name="getNTSPRequest">
        <wsdl:part name="stage" type="xsd:string"/>
    </wsdl:message>
    <wsdl:message name="getUsersResponse">
        <wsdl:part name="getUsersReturn" type="xsd:string"/>
    </wsdl:message>
    <wsdl:message name="getUsersRequest">
        <wsdl:part name="role" type="xsd:string"/>
    </wsdl:message>
    <wsdl:message name="addDBUsersRequest">
        <wsdl:part name="userRole" type="xsd:string"/>
    </wsdl:message>
    <wsdl:message name="addDBUsersResponse"/>
    <wsdl:message name="sendEmailRequest">
        <wsdl:part name="emailElement" type="impl:emailType"/>
    </wsdl:message>
    <wsdl:message name="sendEmailResponse"/>
    <!--



   -->
    <wsdl:portType name="UserInfo">
        <wsdl:operation name="getUsers" parameterOrder="role">
            <wsdl:input message="impl:getUsersRequest"
name="getUsersRequest"/>
            <wsdl:output message="impl:getUsersResponse"
name="getUsersResponse"/>
        </wsdl:operation>
        <wsdl:operation name="addDBUsers" parameterOrder="userRole">
            <wsdl:input message="impl:addDBUsersRequest"
name="addDBUsersRequest"/>
            <wsdl:output message="impl:addDBUsersResponse"
name="addDBUsersResponse"/>
        </wsdl:operation>
        <wsdl:operation name="getNTSP" parameterOrder="stage">
            <wsdl:input message="impl:getNTSPRequest"
name="getNTSPRequest"/>
            <wsdl:output message="impl:getNTSPResponse"
name="getNTSPResponse"/>
        </wsdl:operation>
        <wsdl:operation name="sendEmail" parameterOrder="emailElement">
            <wsdl:input message="impl:sendEmailRequest"
name="sendEmailRequest"/>
            <wsdl:output message="impl:sendEmailResponse"
name="sendEmailResponse"/>
        </wsdl:operation>
    </wsdl:portType>
    <!--



   -->
    <wsdl:binding name="UserInfoSoapBinding" type="impl:UserInfo">
        <wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="getUsers">
            <wsdlsoap:operation soapAction=""/>
            <wsdl:input name="getUsersRequest">
                <wsdlsoap:body use="literal"/>
            </wsdl:input>
            <wsdl:output name="getUsersResponse">
                <wsdlsoap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="addDBUsers">
            <wsdlsoap:operation soapAction=""/>
            <wsdl:input name="addDBUsersRequest">
                <wsdlsoap:body use="literal"/>
            </wsdl:input>
            <wsdl:output name="addDBUsersResponse">
                <wsdlsoap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="getNTSP">
            <wsdlsoap:operation soapAction=""/>
            <wsdl:input name="getNTSPRequest">
                <wsdlsoap:body use="literal"/>
            </wsdl:input>
            <wsdl:output name="getNTSPResponse">
                <wsdlsoap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="sendEmail">
            <wsdlsoap:operation soapAction=""/>
            <wsdl:input name="sendEmailRequest">
                <wsdlsoap:body use="literal"/>
            </wsdl:input>
            <wsdl:output name="sendEmailResponse">
                <wsdlsoap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <!--



   -->
    <wsdl:service name="UserInfoService">
        <wsdl:port binding="impl:UserInfoSoapBinding" name="UserInfo">
            <wsdlsoap:address
location="http://ssood:8080/cmatt-1/services/UserInfo"/>
        </wsdl:port>
    </wsdl:service>

</wsdl:definitions>

The parameter of my web service is "emailElement" but I'm not sure why it is
looking for it as an operation.  Thanks for any suggestions!! :)

-- Shanna --
--
View this message in context: 
http://www.nabble.com/No-Such-Operation-%27xxx%27-tf3792816.html#a10726971
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to