欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

【原】使用wsdl的注意事项_PHP教程

程序员文章站 2024-02-15 14:40:59
...
 
        
        
 
 
       
       
 
  Minus2(,          =  +         =  -         ("add"=>, "sub"=> }
 
         
         
 
  = ->Minus2(100, 99 ( (2) { 'add' => (3) "199" 'sub' => (1) "1" }
 
      
           
                  
                  
             
       
 
  = ->Minus2(100,99 ( stdClass int(199) public $sub => int(1) }
                       Minus2(,          =        ->add =  +        ->sub =  -          }
  stdClass int(199) public $sub => int(1) }
 
     
          
                
                
           
       
  
  
       
             
                   
                         
                   
            
       
  
                             __construct(,                ->sessionId =               -> =              =         [] =  CustomType("123", "456"        [] =  CustomType("789", "912"          }
  = -> (          "
".->sessionId." and ".->."
" }
 
      
            
                  
            
      
 
 
        
        
 
                       Minus2(,           =         ->add = ->        ->sub = ->          }
Minus2(100, 99)了,而应当修改为:
  = ->Minus2(("request"=>100), ("request"=>99));
  = ->__call("Minus2", (("request"=>100), ("request"=>99)));
 Error: Client, : SOAP-ERROR: Encoding:  has no 'sub' property。 
 
      
             
                      
                      
                      
             
       
 
 
        
               
                     
                            
                     
               
          
 
 
         
               
                      
               
        
 
 
        
               
                   
                   
               
        
 
 
       
               
               
               
        
 
 
       
              
                     
               
       
 

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/626590.htmlTechArticleMinus2( , = + = - ("add"= , "sub"= } = -Minus2(100, 99 ( (2) { 'add' = (3) "199" 'sub' = (1) "1" } = -Minus2(100,99 ( stdClass Minus2( , = -add = + -sub = - } stdClass __construct(...