dtry54612 2015-10-23 06:10
浏览 33

WSDL- dot.net API始终显示我的PHP代码的验证错误。 请提出另一种方法

API docs says following code is for the registration but our code always showing validation error only. Suggest me any other method based on these data. I hope there is validation error , but client not ready to give dotnet code or other API details

Authentication key is providing here like tokenKey, domainCode, etc.

class PartnerIdentityfier_DataContracts
{
    public $mDomainCode;
    public $mTokenKey;
    public $mUserIPAddress;
}

Registration data is sent to code via this class

class clsRegistration_DataContracts
{
    public $mEmailId;
    public $mUPassword;
    public $mLoginDateTime;
    public $mTitle;
    public $mFirstName;
    public $LastName;
    public $Mobile;
    public $LandLine;
    public $Address1;
    public $Address2;
    public $Address3;
    public $Pincode;
    public $CityName;
    public $StateName;
    public $City_Customer;
    public $Landmark;
    public $DOB;
    public $mGender;
    public $mCompanyName;
    public $AlternateEmailid;
    public $mPartnerIdentity;
}

Setting values to class variables

$contact = new PartnerIdentityfier_DataContracts();
$contact->mDomainCode="XDUIDVP0006";
$contact->mTokenKey="8IJUOX-P4ZPX-LNDAA-CWXHB-PJMTA-9SUD*-WQJ9";
$contact->mUserIPAddress=$_SERVER['SERVER_ADDR']; 

$xcv=new clsRegistration_DataContracts();       
$xcv->mEmailId="kiran@nex.in";
$xcv->mUPassword="1234567INq";
$xcv->mLoginDateTime=date("Y-m-d H:i:s");
$xcv->mTitle="Mr";
$xcv->mFirstName="kiran";
$xcv->LastName="deepu";
$xcv->Mobile="8807541983";
$xcv->LandLine="8807541983";
$xcv->Address1="Chennai";
$xcv->Address2="Chennai";
$xcv->Address3="Chennai";
$xcv->Pincode="600017";
$xcv->CityName="Chennai";
$xcv->StateName="TamilNadu";
$xcv->City_Customer="Chennai";
$xcv->Landmark="Chennai";
$xcv->DOB="1992-01-04 18:12:00";
$xcv->mGender="M";
$xcv->mCompanyName="nokia";
$xcv->AlternateEmailid="damuslm@gmail.com";
$xcv->mPartnerIdentity=$contact; ``

//here we are using soapclient method to get data from the server

$client = new SoapClient('http://407.129.110.150:8087/DVPService?wsdl');

// Registration function is POSTUserRegistration . we send all the data to  this function. But we hope the sending data is not prpoerly reached here . or some other issue in sending data that my doubt right now . can you suggest any other method to sent these datas to dotnet server.        
$response = $client->POSTUserRegistration($xcv);
print_r($response);
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 java报错:使用mybatis plus查询一个只返回一条数据的sql,却报错返回了1000多条
    • ¥15 Python报错怎么解决
    • ¥15 simulink如何调用DLL文件
    • ¥15 关于用pyqt6的项目开发该怎么把前段后端和业务层分离
    • ¥30 线性代数的问题,我真的忘了线代的知识了
    • ¥15 有谁能够把华为matebook e 高通骁龙850刷成安卓系统,或者安装安卓系统
    • ¥188 需要修改一个工具,懂得汇编的人来。
    • ¥15 livecharts wpf piechart 属性
    • ¥20 数学建模,尽量用matlab回答,论文格式
    • ¥15 昨天挂载了一下u盘,然后拔了