Forum Moderators: coopster

Message Too Old, No Replies

PHP SOAP Client

Php, Soap

         

kolev80

6:37 pm on Feb 24, 2011 (gmt 0)

10+ Year Member



1 down vote favorite


HI,

I have this xml I'm trying to make parameter for SOAP Client


<?xml version="1.0" encoding="utf-8" ?>
<RequestGenerateInvoice xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="XML">
<Type>enAdd</Type>
<Invoice>
<InvoiceNumber>5</InvoiceNumber>
<InvoiceIDTxt>101</InvoiceIDTxt>
<AccountIDTxt>1001</AccountIDTxt>
<InvoiceDate>2011-02-21T15:04:42.8500736+02:00</InvoiceDate>
<Code>1</Code>
<Details>Some Details</Details>
<Quantity>1</Quantity>
<Amount>10</Amount>
<AmountDue>20</AmountDue>
<FromDate>2011-02-21T15:04:42.8490735+02:00</FromDate>
<ToDate>2011-02-21T15:04:42.8530738+02:00</ToDate>
<Months>7</Months>
<IsPrinted>false</IsPrinted>
<Paid>0</Paid>
<CardNumber>101</CardNumber>
<PrevAccBalance>100</PrevAccBalance>
<RealUsageAmount>80</RealUsageAmount>
<LocationID>0</LocationID>
<BatchNumber>1</BatchNumber>
<BatchText>Some Text</BatchText>
</Invoice>
<RequestLocationID>0</RequestLocationID>
<RequestDateTime>0001-01-01T00:00:00</RequestDateTime>
</RequestGenerateInvoice>




So far my script is:

$client = new SoapClient("https://Some.?wsdl");
$param = array( 'Type'=>'Add',
'Invoice'=> array(
'InvoiceNumber' => '101',
'InvoiceIDTxt' => '101',
'AccountIDTxt' => '2',
'InvoiceDate' => '2011-02-21T15:04:42.8500736+02:00',
'Code' => '1',
'Details' => 'Details',
'Quantity' => '1',
'Amount' => '5',
'AmountDue' => '20',
'FromDate' => '2011-02-21T15:04:42.8490735+02:00',
'ToDate' => '2011-02-21T15:04:42.8490735+02:00',
'Months' => '12',
'isPrinted' => 'false',
'Paid' => '0',
'CardNumber' => '2',
'PrevAccBalance' => '100',
'RealUsageAmount' => 'false',
'LocationID' => '1',
'BatchNumber' => '1',
'BatchText' => 'Text'
),
'RequestLocationID'=>'2',
'RequestDateTime'=>'0001-01-01T00:00:00');

$response =$client->MakeInvoice($param);

But I'm keep getting no response from the server

coopster

4:28 pm on Feb 26, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, kolev80.

Can you watch your server access logs to be certain you are reaching it? That would be your first step. You'll get no response if the server does not first receive a request.