Web Services:WSDL 1.1 规范中的几个错误

阅读更多

读完了WSDL 1.1的规范,令人惊讶的是发现似乎例子中有几个错误

在下面用红色字体标出了错误相关之处,用蓝色字体标出了注释

我不确定是我理解有误还是它真的错了,贴出来大家一起看看;再说现在都WSDL2.0了

原文地址:http://www.w3.org/TR/wsdl

 

1,Example 1 (同样的错误还发生在Example 2, 4,5,估计是“copy-paste” bug pattern)

Example 1 SOAP 1.1 Request/Response via HTTP




    
       
           
              
                  
                      
                  
              
           
           
              
                  
                      
                  
              
           
       
    

    
        
    

    
        
    

    
        
           
           
        
    

    StockQuoteSoapBinding" type="tns:StockQuotePortType">
        
        
           
           
               
           
           
               
           
        
    

    
        My first service
        StockQuoteBinding"> 
           
        
    


 

2, Example 5: GetLastTradePrice vs. GetTradePrices

Example 5. SOAP binding of request-response RPC operation over HTTP




    
       
           
              
                  
                  
              
           
           
              
                  
                      
                  
              
           
       
    

    GetTradePricesInput">
        
        
    

    GetTradePricesOutput">
        
        
    

    
        GetLastTradePrice" parameterOrder="tickerSymbol timePeriod frequency">
           
           
        
    

    
        
        GetTradePrices">
           
           
               
           
           
               
           
        >
    

    
        My first service
        
           
        
    

 

3,Example 3: smtp?

Example 3. SOAP binding of one-way operation over SMTP using a SOAP Header




    
        
       
    

    
        
           
        
    

    
        http://example.com/smtp"/>
        
           
               
               
           
        
    

    
        
           
        
    

    
        
           
               
                   
                       
                   
               
           
           
        
    

你可能感兴趣的:(Web Services:WSDL 1.1 规范中的几个错误)