May I ask about webservice?

Source: Internet
Author: User
Ask the webservice Post to edit http: // 121.33.201.180: 2013/RegMember. asmx at 6005-03-11at the end of boy_wh520? WSDL: this is a webservice written by. net. the server needs to call the InsertMember method to consult webservice.
At the end of this post, boy_wh520 edited http: // 121.33.201.180: 6005/RegMember. asmx at 14:08:59? WSDL
This is the webservice server written by. net.
The InsertMember method must be called.


$ Client_reg = new SoapClient ("http: // 121.33.201.180: 6005/RegMember. asmx? WSDL ");
$ Functions = $ client_reg->__ getFunctions ();
// Print_r ($ functions );
$ Types = $ client_reg->__ getTypes ();
// Print_r ($ types );
$ Client_reg-> soap_defencoding = 'utf-8 ';
$ Client_reg-> xml_encoding = 'utf-8 ';//
$ Param_reg = array ('cinsertmember' => array ('name' => "Hello", 'Identity '=> "230105198311202013", 'mobile' => "15014689527 ", 'iswap '=> true), 'fellowid' => $ value, 'scardnum' => "", 'insertmemberresult' => "");
$ P_reg = $ client_reg->__ soapCall ("InsertMember", array ('parameters '=> $ param_reg ));
/*
$ Param_reg = array (
'Cinsertmember' => '',
'Name' => "Hello ",
'Identity '=> "230105198311202013 ",
'Mobile' => "15014689527 ",
'Iswap '=> True,
'Fellowid' => $ value,
'Scardnum' => "",
'Insertmemberresult' => "");
$ P_reg = $ client_reg->__ soapCall ('insertmember', array ('parameters '=> $ param_reg ));
*/
Print_r ($ p_reg );
$ Array1 = get_object_vars ($ p_reg );
Foreach ($ array1 as $ key1 => $ value1 ){
Echo $ key1. ":". $ value1 ." ";
}

Normally, there should be a return value.
However, my return value is null.
I suspect that the server has defined a custom method.
The input parameter of the php service causes
Thank you for your help.
------ Solution --------------------
By
Struct InsertMember {
CInsertMember objCInsertMember;
String fellowID;
String sCardNum;
}
Struct CInsertMember {
String Name;
String Identity;
String Mobile;
Boolean IsWap;
}
We can see that the InsertMember (InsertMember $ parameters) parameter should be
Array (
'Objcinsertmember' => array (
'Name' => '',
'Identity '=> '',
'Mobile' => '',
'Iswap '=> '',
),
'Fellowid' => '',
'Scardnum' => '',
)
This array does not seem to belong to 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.