Dear Sir/Madam,

I received the weird error and I am not sure what cause the error:
3000 Server Error - the server failed to fulfill an apparently valid request.

require_once('nusoap.php');
require_once('nusoapmime.php');

$client = new nusoap_client_mime('http://abc.com/mm7tomms.sh', false);

$err = $client->getError();

if ($err)
{
echo '<h2>Constructor error</h2><pre>' . $err . '</pre>';
}
$client->setCredentials("xxx","xxx");

$client->setHTTPEncoding('deflate, gzip');

$client->requestHeaders = true;
$transactionid = time();
$headers = '<mm7:TransactionID xmlns:mm7="'.$ns.'" soap-env:mustUnderstand="1">'.$transactionid.'</mm7:TransactionID>';
$client->setHeaders($headers);

$cid = $client->addAttachment('', 'xxx.txt');

$content = array(

    'MM7Version'            => '5.3.0',
    'SenderIdentification'  =>
                                array(
                                    'VASPID' => 'xxx',
                                    'VASID' => 'xxxx',
                                    'SenderAddress' => array('ShortCode' => 'xxxx'),
                                ),
                                'Recipients'    => array(
                                                        'To' => array('Number' => 'xxxxx')
                                                    ),
                                'ServiceCode'           => 'xxxx',
                                'LinkedID'              => 'Linked',
                                'MessageClass'          => 'Personal',
                                'DeliveryReport'        => 'true',
                                'ReadReply'             => 'true',
                                'Priority'              => 'Normal',
                                'Subject'               => 'Hello testing',
                                'DistributionIndicator' => 'false'
                    );

$result = $client->call('SubmitReq', $content);
if ($client->fault) {
echo '<h2>======= FAULT ======</h2><pre>'; print_r($result); echo '</pre>';
} else {
$err = $client->getError();
if ($err) {
echo '<h2>====== ERROR =======</h2><pre>' . $err . '</pre>';
} else {
echo '<h2>===== RESULT =====</h2><pre>'; print_r($result); echo '</pre>';
echo '<h2>===== ATTACHMENT ======</h2><pre>';
$attachments = $client->getAttachments();
foreach ($attachments as $a) {
echo 'Filename: ' . $a['filename'] . "\r\n";
echo 'Content-Type: ' . $a['contenttype'] . "\r\n";
echo 'cid: ' . htmlspecialchars($a['cid'], ENT_QUOTES) . "\r\n";
echo htmlspecialchars($a['data'], ENT_QUOTES);
echo "\r\n";
}
echo '</pre>';
}
}
echo '<h2>======= REQUEST ======</h2><pre>' . $client->request . '</pre>';

print "RESPONSE == \n\n\n";

echo '<h2>Respose</h2><pre>' .$client->response . '</pre>';

print "RESPONSE DATA == \n\n\n";
echo '<h2>ResponseData</h2><pre>' . $client->responseData . '</pre>';

print "DEBUG == \n\n\n";

echo '<h2>Debug</h2><pre>' . $client->debug_str . '</pre>';

Then I got following response:

<h2>======= FAULT ======</h2><pre>Array
(
[faultcode] => Server
[faultstring] => Server Error
[detail] => Array
(
[RSErrorRsp] => Array
(
[Status] => Array
(
[StatusCode] => 3000
[StatusText] => Server Error
)

            )

    )

)

What does 3000 mean actually?

    what is the server software?

      Dear Dagon,

      i am using nusoap to send MMS to the vendor.
      I am not sure what is the vendor scripting language.

        Dear Everyone,

        May I know how to define following XML attribute into the array form?

        <Content allowAdaptations="false" href="cid:mms-01020930@news.abc.com"/>

        Normally i got the following for instance:

        <SenderIdentification>
        <VASPID>XXXX</VASPID>
        <VASID>XXXX</VASID>
        <SenderAddress>
        <ShortCode>XXXX</ShortCode>
        </SenderAddress>
        </SenderIdentification>

        Then I define it in array form:

        array("SenderIdentification" => array(
        "VASPID" => XXX
        "VASID" => XXX,
        "SenderAddress"=> array("Shortcode" => XXX)))

        BUt i have no clue how to define the attribute in the XMLtag:

        <Content allowAdaptations="false" href="cid:mms-01020930@news.abc.com"/>

        Please help!

          Please please help!
          I tried to review my xml tag I couldn't find where to cause the 3000 error.

          POST /mm7/mm7tomms.sh HTTP/1.0

          Host: cmp.celcom.net.my:5777

          User-Agent: NuSOAP/0.9.5 (1.123)

          Content-Type: text/xml; charset=utf-8

          SOAPAction: ""

          Authorization: Basic XXXXXXXXXXX=

          Content-Length: 1643

          <?xml version="1.0" encoding="utf-8"?>
          <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
          <SOAP-ENV:Header>
          <TransactionID xmlns='http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-3' SOAP-ENV:mustUnderstand='1'>1314237045</TransactionID></SOAP-ENV:Header>
          <SOAP-ENV:Body>
          <ns4116:SubmitReq xmlns:ns4116="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-3">
          <MM7Version xsi:type="xsd:string">5.3.0</MM7Version>
          <SenderIdentification xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:anyType[3]">

          <VASPID xsi:type="xsd:string">XXXXX</VASPID>
          <VASID xsi:type="xsd:string">XXXXXX</VASID>
          <SenderAddress>
          <ShortCode xsi:type="xsd:string">XXXXX</ShortCode>
          </SenderAddress>
          </SenderIdentification>
          <Recipients>
          <To>
          <Number xsi:type="xsd:string">XXXXXX</Number>
          </To>
          </Recipients>
          <ServiceCode xsi:type="xsd:string">XXXXXX</ServiceCode>
          <LinkedID xsi:type="xsd:string">Linked</LinkedID>
          <MessageClass xsi:type="xsd:string">Personal</MessageClass>
          <DeliveryReport xsi:type="xsd:string">true</DeliveryReport>
          <ReadReply xsi:type="xsd:string">true</ReadReply>
          <Priority xsi:type="xsd:string">Normal</Priority>
          <Subject xsi:type="xsd:string">Resipi</Subject>
          <DistributionIndicator xsi:type="xsd:string">false</DistributionIndicator>
          <Content xsi:type="xsd:string" allowAdaptations="false" href="cid:"></Content>
          </ns4116:SubmitReq>
          </SOAP-ENV:Body>
          </SOAP-ENV:Envelope>

          <h2>Response</h2><pre>HTTP/1.1 500 Internal Server Error

          Connection: close

          Content-Type: text/xml

          Content-Length: 615

          date: Thu, 25 Aug 2011 01:50:30 GMT

          server: Apache/2.0.63 (Unix) DAV/2 mod_fastcgi/2.4.6 PHP/5.2.9

          via: HTTP/1.1 cmp3app01 (XMG 724Solutions HTG XSAM_30_M2_B020 20070803.174046)

          Accept-Ranges: bytes

            Write a Reply...