NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Pls help , Not able to call webservice


Joined: 18 Oct 2007
Posts: 1
Reply with quote
Hi,

The xml Document i need to sent to the webserive is ----

<?xml version="1.0" encoding="utf-8"?>
<calcxmlRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://host1.calcxml.com/schema/calcxmlRequest.xsd" username="something" password="something" responseType="html" version="1.1" returnDataTable="true">
<xyChart>
<chartTitle>Chart Title</chartTitle>
<xTitle /><yTitle /><threeD>1</threeD><barColor>0855C6</barColor><barColor>8CC718</barColor><barColor>DE7500</barColor><chartWidth>500</chartWidth><chartHeight>300</chartHeight></xyChart><dataTable><cssClassName>simpletable</cssClassName></dataTable><calcInput includeInResponse="false"><det03><loanAmount>12,000</loanAmount><interestRate>12</interestRate> <termMonths>60</termMonths> <amortization>2</amortization></det03></calcInput></calcxmlRequest>

------------------------------------------

The function i need to call is -- det03(xml string here) and it returns XML document as string

-----------------------------------------------

Presently i using the follwing code to call the webservice

$wsdl="http://something/anything?wsdl";

$client=new soapclient($wsdl,true);

$client->call('det03',array($Request));//$Request is the XML string..

//$Request is the XML string..

$err = $client->getError();
if ($err)
{
die('Error is1 ------- : '.$err);
}
print "result: <xmp>";
var_dump($client->document);
print "</xmp>";
print "request :".$client->request."<br>";
print "response :".$client->response."<br>";

the above code returns errors.. pls advice where is the problem? i m cofused.
View user's profileFind all posts by rajenSend private message
Pls help , Not able to call webservice
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic