Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: PHP SOAP WebService
<pre lang="PHP">
I face some problem in php webservice.i wanna change or add new NAMESPACE in xml.
 
$params = array("AddonBenefits"=>"",
                                "CoverType"=>"",
                                "DateOfBirth"=>"05-jul-1985",
                                "JourneyEndDate"=>"19-oct-2012",
                                "JourneyStDate"=>"15-oct-2012",
                                "MaxNoofTravelDays"=>'',
                                "ProductType"=>"Individual",
                                "VisitingUSA"=>"False");
$ws_url="www.xyz.com?wsdl"
$client = new nusoap_client($ws_url, true, $proxyhost, $proxyport, $proxyusername, $proxypassword);
 
waht means of true or false use in 
        $client->soap_defencoding='utf-8';
 
        $result = $client->call("getTravelPremium", array($objDataContract), "http://tempuri.org/");
not make like this i need this xml how to make and add namespace-->tem or ns
<tem:getTravelPremium>
         <!--Optional:-->
         <tem:objDataContract>
            <!--Optional:-->
            <ns:AddonBenefits>?</ns:AddonBenefits>
            <!--Optional:-->
            <ns:CoverType>?</ns:CoverType>
            <!--Optional:-->
            <ns:DateOfBirth>05-jul-1985</ns:DateOfBirth>
            <!--Optional:-->
            <ns:JourneyEndDate>20-oct-2012</ns:JourneyEndDate>
            <!--Optional:-->
            <ns:JourneyStDate>14-oct-2012</ns:JourneyStDate>
            <ns:MaxNoofTravelDays>?</ns:MaxNoofTravelDays>
            <ns:ProductType>indivisua</ns:ProductType>
            <!--Optional:-->
            <ns:VisitingUSA>?</ns:VisitingUSA>
         </tem:objDataContract>
      </tem:getTravelPremium
>
Posted 12-Oct-12 2:50am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 274
1 Shweta N Mishra 216
2 PIEBALDconsult 210
3 Sergey Alexandrovich Kryukov 185
4 BillWoodruff 174
0 OriginalGriff 7,620
1 Sergey Alexandrovich Kryukov 6,937
2 DamithSL 5,586
3 Manas Bhardwaj 4,946
4 Maciej Los 4,495


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 12 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100