SOAP post on Jobserve

  • 15 years ago

    I have building a script using nusoap but now I am stuck

    I got an error

    Array ( [FaultCode] => 400 [FaultString] => The receiving application faulted when processing the request. The 'detail' element contains the application-specific fault. [RunCode] => 2 [Detail] => Array ( [Messages] => Array ( [Message] => Internal Server Error - unable to process your request at this time, please try again later ) ) ) 1


            $text2 = "<SOAP:Body>";
            $text2 .= "<PostAdvert>";
            $text2 .= "<Adverts>";
            $text2 .= "<Advert>";

            $text2 .= "<AccountNumber>999111</AccountNumber>";
            $text2 .= "<Contact>ALAN</Contact>";
            $text2 .= "<Telephone>01268 781 982</Telephone>";
            $text2 .= "<Fax></Fax>        ";
            $text2 .= "<Email>[email protected]</Email>";
            $text2 .= "<EmailComments></EmailComments>";
            $text2 .= "<Position>Short Technical Analyst</Position>";
            $text2 .= "<Skills>Anything</Skills>";
            $text2 .= "<Location>Tiptree</Location>";
            $text2 .= "<Reference>Alan</Reference>";
            $text2 .= "<StartDate>ASAP</StartDate>";
            $text2 .= "<Duration></Duration>";
            $text2 .= "<Rate>1 per hour</Rate>";
            $text2 .= "<Type>P</Type>";
            $text2 .= "<URL/>";
            $text2 .= "</Advert>";
            $text2 .= "</Adverts>";
            $text2 .= "</PostAdvert>";
            $text2 .= "</SOAP:Body>";

    setmagicquotesruntime(0);

    //WebService Client.
    require
    once("nusoap.php");

    // Set the parameters to send to the WebService
    $parameters = array('PostAdvert'=>$text2);

    // Set the WebService URL
    $soapclient = new soapclient("http://193.119.59.225/jsSoapRequest.asp");

    // Call the WebService and store its result in $result.
    $result = $soapclient->call('Post
    Advert01',$parameters);
    echo "<b>".print
    r($result)."</b>";
    ?>












































Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“It works on my machine.” - Anonymous