<wsdl:definitions   targetNamespace= "csland.cn.com/test/services/Bean1 "   xmlns= "http://schemas.xmlsoap.org/wsdl/ "   xmlns:apachesoap= "http://xml.apache.org/xml-soap "   xmlns:impl= "csland.cn.com/test/services/Bean1 "   xmlns:intf= "csland.cn.com/test/services/Bean1 "   xmlns:soapenc= "http://schemas.xmlsoap.org/soap/encoding/ "   xmlns:tns1= "urn:BeanService "   xmlns:wsdl= "http://schemas.xmlsoap.org/wsdl/ "   xmlns:wsdlsoap= "http://schemas.xmlsoap.org/wsdl/soap/ "   xmlns:xsd= "http://www.w3.org/2001/XMLSchema " > 
直接改了就应该行了。 你怎么不用URI形式的namespace呢?

解决方案 »

  1.   

    还有, <wsdl:types > 
    -   <schema   targetNamespace= "urn:BeanService "   xmlns= "http://www.w3.org/2001/XMLSchema " > 
        <import   namespace= "http://schemas.xmlsoap.org/soap/encoding/ "   / >   
    -   <complexType   name= "PersonBean " > 
    -   <sequence > 
        <element   name= "id "   type= "xsd:int "   / >   
        <element   name= "name "   nillable= "true "   type= "xsd:string "   / >   
        </sequence > 
        </complexType > 
        </schema > 
        </wsdl:types > 
    这个里面,我想将namespace的内容改成namespace= "schemas.xmlsoap.org/soap/encoding/ "该如何做? =======================你是什么意思? 是把targetNamespace改成schemas.xmlsoap.org/soap/encoding/吗?