The attached WSDL and XSD are giving me this method signature.

public class AccountSOAPBindingImpl implements tufte.model.service.account.Accou
nt{
    public void createAccount(tufte.model.service.account.holders.AccountHolder account) throws java.rmi.RemoteException {
    }
    
    public void updateAccount(tufte.model.service.account.holders.AccountHolder account) throws java.rmi.RemoteException {
    }

}

I'm expecting:

public void updateAccount(tufte.model.service.account.Account account) throws java.rmi.RemoteException { }

Not this.

Thanks!
Scott S. McCoy
<?xml version="1.0" encoding="UTF-8"?>

<wsdl:definitions name="urn:Account"
             targetNamespace="http://plm.marchex.com/service/account";
             xmlns:tns="http://plm.marchex.com/service/account";
             xmlns:typens="http://plm.marchex.com/service/account";
             xmlns:xsd="http://www.w3.org/1999/XMLSchema";
             xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
             xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
<!--
    <wsdl:types>
        <xsd:schema targetNamespace="http://plm.marchex.com/services/account";
                    xmlns:xsd="http://www.w3.org/1999/XMLSchema";>
            <xsd:include schemaLocation="account.xsd"/>
        </xsd:schema>
    </wsdl:types>
    -->

    <wsdl:import namespace="http://plm.marchex.com/service/account";
                 location="account.xsd"/>

    <wsdl:message name="AccountDetails">
        <wsdl:part name="account" element="tns:account"/>
    </wsdl:message>

    <wsdl:portType name="Account">
        <wsdl:operation name="createAccount">
            <wsdl:input message="tns:AccountDetails"/>
            <wsdl:output message="tns:AccountDetails"/>
        </wsdl:operation>

        <wsdl:operation name="updateAccount">
            <wsdl:input message="tns:AccountDetails"/>
            <wsdl:output message="tns:AccountDetails"/>
        </wsdl:operation>
    </wsdl:portType>

    <wsdl:binding name="AccountSOAPBinding" type="tns:Account">
        <soap:binding style="document"
                      transport="http://schemas.xmlsoap.org/soap/http"/>

        <wsdl:operation name="createAccount">
          <soap:operation soapAction="createAccount"/>
          <wsdl:input>
            <soap:body use="literal"/>
          </wsdl:input>
          <wsdl:output>
            <soap:body use="literal"/>
          </wsdl:output>
        </wsdl:operation>

        <wsdl:operation name="updateAccount">
          <soap:operation soapAction="createAccount"/>
          <wsdl:input>
<!--        <soap:body use="encoded"
                       namespace="http://plm.marchex.com/service/account";
                       encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
                       -->
            <soap:body use="literal"/>
          </wsdl:input>
          <wsdl:output>
            <soap:body use="literal"/>
          </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>

    <wsdl:service name="AccountService">
<!--    <wsdl:requestFlow>  No such thing exists, this is just to remind me to
                            use a custom deploy.wsdd
            <wsdl:handler
                type="java:tufte.model.service.handlers.AuthenHandler"/>
        </wsdl:requestFlow> -->
        <wsdl:port name="Account" binding="tns:AccountSOAPBinding">
            <soap:address
                location="http://localhost:8080/axis/services/Account"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>

Attachment: account.xsd
Description: Binary data

Reply via email to