Ask for support from predecessors, connect WSDL problem.

Source: Internet
Author: User
Echo ' provides the method ';d UMP ($client->__getfunctions ()); Echo ' data structure ';d UMP ($client->__gettypes ());

Page Print:
The methods provided
Array (1) {
[0] = = string (+) "Adcservicesresponse adcservices (adcservices $parameters)"
}
Data
Array (4) {
[0] = = string (PNS) "struct Adcservices {
NGEC request;
}"
[1] = = string (217) "struct NGEC {
String Origdomain;
String Bipcode;
String Bipver;
String Transido;
String AreaCode;
String Eccode;
String Ecusername;
String ecuserpwd;
String Processtime;
Response Response;
String Svccont;
}"
[2] = = string (+) "struct Response {
String Rspcode;
String Rspdesc;
}"
[3] = = string (in) "struct Adcservicesresponse {
Ngec Adcservicesresult;
}"
}

How do I go to $client->adcservices () now?
The first time contact with this, the whole person is dizzy.


Reply to discussion (solution)

Adcservicesresponse adcservices (adcservices $parameters)
Indicates that adcservices requires a parameter of type adcservices

struct Adcservices {
NGEC request;
}
Table is Adcservices has a NGEC type of parameter request
Find Ngec and bring it in, get
adcservices {
Ngec request = {
String Origdomain;
String Bipcode;
String Bipver;
String Transido;
String AreaCode;
String Eccode;
String Ecusername;
String ecuserpwd;
String Processtime;
Response Response = {
String Rspcode;
String Rspdesc;
},
String Svccont;
}
}
Because PHP does not have a struct structure, an associative array is used instead

$ar = Array (' request ' = = Array (' origdomain ' = ' = ', '      bipcode ' = ' ", '      bipver ' = ') ', ' c5/> ' transido ' = ' = ', ' areacode ' + ', ' eccode ' + ', '      ecusername ' = ' ', '      ecuserpwd ' = > ',      ' processtime ' + ', '      Response ' = = Array (' Rspcode ' and ' = ',         ' rspdesc ' + ', ' c14/>),      ' svccont ' = ', ')  ;
When called
$client->adcservices ($ar)

Adcservicesresponse adcservices (adcservices $parameters)
means that adcservices requires a parameter of type Adcservices
. Br>struct adcservices {
Ngec request; The
}
table is adcservices with a NGEC type parameter request
Find NGEC and bring in, get
adcservices {
Ngec request = {
String Ori Gdomain;
String Bipcode;
String Bipver;
String Transido;
String AreaCode;
String Eccode;
String Ecusername;
String ecuserpwd;
String Processtime;
Response Response = {
String rspcode;
String Rspdesc;
},
string Svccont;
}
}
use associative array instead of

because PHP has no struct structure

$ar = Array (' request ' = = Array (' origdomain ' = ' = ', '      bipcode ' = ' ", '      bipver ' = ') ', ' c5/> ' transido ' = ' = ', ' areacode ' + ', ' eccode ' + ', '      ecusername ' = ' ', '      ecuserpwd ' = > ',      ' processtime ' + ', '      Response ' = = Array (' Rspcode ' and ' = ',         ' rspdesc ' + ', ' c14/>),      ' svccont ' = ', ')  ;
When called
$client->adcservices ($ar)



Senior I love you ~ ~ ~
  • 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.