redho home | products | services

Programming Forums


Community for Java, PHP, Perl C, ASP and Python programmers
Thursday 21 June 2018 14:17

Ask your IT question here

PHP examples



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Programming Forums -> PHP programming forum
View previous topic :: View next topic  
Author Message
gilbertsavier
New Programmer


Joined: 02 Jul 2009
Posts: 21
Hi friends,
These are working for me, feel free to use them at your own risk

class MSSoapClient extends SoapClient {
private $namespace;
function __doRequest($request, $location, $action, $version) {


$request = preg_replace('/<ns1:(\w+)/', '<$1 xmlns="'.$this->namespace.'"', $request, 1);
$request = preg_replace('/<ns1:(\w+)/', '<1>"",
"Code"=>"",
"Name"=>"$name",
"Contact"=>"",
"Telephone"=>"",
"Mobile"=>"",
"Fax"=>"",
"Email"=>"$email",
"Address1"=>"$address",
"Address2"=>"",
"Address3"=>"$town",
"Address4"=>"$country",
"Postcode"=>"$postcode",
"Website"=>"",
"EC"=>"0",
"Notes"=>"",
"Source"=>"",
"Discount"=>"0",
"ShowDiscount"=>"0",
"PaymentTerms"=>"0",
"ExtraText1"=>"1",
"ExtraText2"=>"1",
"CheckBox1"=>"1",
"CheckBox2"=>"1",
"Created"=>"$today",
"Updated"=>"$today");

$args = array ("UserName"=>"your username here", "Password"=>"your password here","custr"=>$customerArray);
$oResponse = $soapClient->InsertCustomer($args);
//handle any errors
if($oResponse->Status != "OK")
{
echo $oResponse->StatusDetail;
$return = 0;

}
else
{
$id = $oResponse->InsertCustomerResult;

$return = $id;

}
return $return;
}
_________________
Thanks & regards
Lokananth

Live Chat Software By miOOt

Reply with quote
 
dottech
New Programmer


Joined: 03 Mar 2010
Posts: 3
Location: pakistan
I think you need to visit this place www . pakandu . com they will
provide solution almost at no price.

Reply with quote
 
Job4freelancers
New Programmer


Joined: 14 Aug 2010
Posts: 2
Hello,
We are looking for freelancers who can work with us on various projects. If you are enthusiastic about programming and love php, then please write to me.

The payments will be good.

Regards
Kiran

Reply with quote
 
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Programming Forums -> PHP programming forum


Dubai Forums - Expat Help | Vegan Forum | Java Programming | 3d Design Resources | 3d Forum | 3D Jobs | 3D Textures | Paris Forum | Europe Forum
Dubai Classifieds | Dubai Property | Jobs in Dubai | Free London Classifieds | Jobs in London UK

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

© 2018 RedHo