日期:2014-05-20  浏览次数:20488 次

大家帮看看,为什么这个WEBSERVICES会出现这样的定义?
我的WEBSERVICES是这样定义的:
<WebService(Namespace:= "http://tempuri.org/ ")>   _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)>   _
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>   _

Public   Class   ApForBNet
        Inherits   System.Web.Services.WebService
  <WebMethod(Description:= "拆机服务 "),   System.Web.Services.Protocols.SoapDocumentMethodAttribute( "http://www.openuri.org/cancel ",   _
    RequestNamespace:= "http://www.openuri.org/ ",   _
    ResponseNamespace:= "http://www.openuri.org/ ",   _
    Use:=System.Web.Services.Description.SoapBindingUse.Literal,   _
  ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)>   _
      Public   Function   cancel(ByVal   request   As   CancelRequestType)   As   CancelResponseType
'*********************
End   function
end   class

为什么在WSDL文件中会出现这些呢?
<wsdl:service   name= "ApForBNet ">
-   <wsdl:port   name= "ApForBNetSoap "   binding= "tns:ApForBNetSoap ">
    <soap:address   location= "http://www.mygx.cn/webservices/apforbnet.asmx "   />  
    </wsdl:port>
-   <wsdl:port   name= "ApForBNetSoap12 "   binding= "tns:ApForBNetSoap12 ">
    <soap12:address   location= "http://www.mygx.cn/webservices/apforbnet.asmx "   />  
    </wsdl:port>
    </wsdl:service>
ApForBNetSoap 和 ApForBNetSoap12是怎么出来的?为什么会出现这两个参数呢?



------解决方案--------------------
学习
------解决方案--------------------
路过,学习。。。
------解决方案--------------------
一个字,猛


反之我看不懂
------解决方案--------------------
标记
------解决方案--------------------
楼主这么好人,干脆总结一个写个博客或者什么文章啊发吧.
------解决方案--------------------
up
------解决方案--------------------
学习学习~
------解决方案--------------------
niu