日期:2014-05-18  浏览次数:20670 次

50分求webservices一个问题?
服务端(没有异常,一切正常):

package   untitled7;

public   class   Bean1   {
        String   m   =   " ";
        public   Bean1()   {
        }

        public   String   getM()   {
                return   m;
        }


        public   void   setM(String   s)   {
                m   =   s;
        }
}

wdsl================================================:

<?xml   version= "1.0 "   encoding= "UTF-8 "   ?>  
-   <wsdl:definitions   targetNamespace= "http://untitled7 "   xmlns:apachesoap= "http://xml.apache.org/xml-soap "   xmlns:impl= "http://untitled7 "   xmlns:intf= "http://untitled7 "   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.2beta3
Built   on   Aug   01,   2004   (05:59:22   PDT)

    -->  
-   <wsdl:message   name= "setMRequest ">
    <wsdl:part   name= "s "   type= "soapenc:string "   />  
    </wsdl:message>
-   <wsdl:message   name= "getMResponse ">
    <wsdl:part   name= "getMReturn "   type= "soapenc:string "   />  
    </wsdl:message>
    <wsdl:message   name= "setMResponse "   />  
    <wsdl:message   name= "getMRequest "   />  
-   <wsdl:portType   name= "Bean1 ">
-   <wsdl:operation   name= "getM ">
    <wsdl:input   message= "impl:getMRequest "   name= "getMRequest "   />  
    <wsdl:output   message= "impl:getMResponse "   name= "getMResponse "   />  
    </wsdl:operation>
-   <wsdl:operation   name= "setM "   parameterOrder= "s ">
    <wsdl:input   message= "impl:setMRequest "   name= "setMRequest "   />  
    <wsdl:output   message= "impl:setMResponse "   name= "setMResponse "   />  
    </wsdl:operation>
    </wsdl:portType>
-   <wsdl:binding   name= "Bean1SoapBinding "   type= "impl:Bean1 ">
    <wsdlsoap:binding   style= "rpc "   transport= "http://schemas.xmlsoap.org/soap/http "   />  
-   <wsdl:operation   name= "getM ">
    <wsdlsoap:operation   soapAction= " "   />  
-   <wsdl:input &nb