Ask for a SOAP problem. Online and so on. Thank you

Source: Internet
Author: User
Tags unsupported wsdl
  
 -
 -
 -
 
  -
  
   
    
 - 
 
    
       
     
 
      

   
  -
  
   
      
    

   
  -
  
   
      
    

   
  -
  
   
      
    

   
  -
  
     
 
       

   
  -
  
   
      
    

   
  -
  
   
      
    

   
  -
  
   
      
    

   
  -
  
   
      
    

   
  -
  
   
      
    

   
  -
  
   
      
    

   
  -
  
     
 
       

   
  -
  
   
      
    

   
  -
  
   
    -
      
  
        
  
        
 
    -
      
  
        
  
        
 
    -
      
  
        
  
        
 
    -
      
  
        
  
        
 
    -
      
  
        
  
        
 
    -
      
  
        
  
        
 
      

   
  -
    
   
    
   -
   
    
      -  
 
       
 
        - 
 
     
        
       

    
   -
   
    
      -  
 
       
 
        - 
 
     
        
       

    
   -
   
    
      -  
 
       
 
        - 
 
     
        
       

    
   -
   
    
      -  
 
       
 
        - 
 
     
        
       

    
   -
   
      
 
     -
       
 
        - 
 
     
        
       

    
   -
   
    
      -  
 
       
 
        - 
 
     
        
       

    
     
  -
  
   
    
 - 
 
    
       
     
 
      

   
    
 







It's nusoap.
I just have to call ' authproduct ' to
$sendurl = ' http://10.10.10.10:18080/aaa/Business/Service?wsdl '; $client = new SoapClient ($sendurl, true);//check to see if it's an error  $err = $client->geterror ();  if ($err) {   //Display error  code echo '

Constructor Error

' . $err. '
'; } $client->soap_defencoding = ' utf-8 '; $client->decode_utf8 = false; $client->xml_encoding = ' utf-8 '; $param = Array (' Amsp_auth_prod ' =>array (' usercode ' = ' 1212 ', ' tvcode ' = ' 2848 ', ' productCode ' = ' 80060 ', ' spcode ' = > ' sp1n ', ' resourcecode ' = ' = ', ' authtype ' =>0);d UMP ($param); $result = $client->call (' authproduct ', $param );d UMP ($client->request); if (! $err = $client->geterror ()) { echo "ddd:", Htmlentities ($str, ent_quotes); } else { echo "ER:", htmlentities ($err, ent_quotes); }



The generated XML
0 80060 sp1n 2848 1212

It can be in the SOAPUI. But the program was an error

Er:http error:unsupported HTTP Response status 415 unsupported Media Type (Soapclient->response has contents of the R Esponse)





Reply to discussion (solution)

Online and so on. Up a bit yourself

Header file

String (860) "Post/aaa/business/service http/1.0
host:172.31.178.4:18080
user-agent:nusoap/0.9.5 (1.123)
Content-type:text/xml; Charset=utf-8
SOAPAction: ""
content-length:679

It's done by myself. Holy. I'm dying of pain.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.