title: How to call to java web service using php
body: <p>I have web service that has written using java and its return  strcut type </p>
  
  <p>When I call to a  <code>$OutResult = $client-&gt;__getFunctions();</code> its return follwing</p>
  
  <pre><code>Array ( [0] =&gt; PPMAccesibilityResult getPPMAccesibility(EmployeeDetails $parameters) [1] =&gt; ProjectProgressResult getProjectProgressStatusForEmployee(EmployeeYearDetails $parameters) [2] =&gt; ProjectCountForLocationResult getProjectCountForLocation(LocationYearDetails $parameters) [3] =&gt; CircularSummaryInfo getCircularSummaryInfo(DeptYearDetails $parameters) [4] =&gt; BeneficiaryProjectDetailsResult getProjectDetailsOfBeneficiary(BeneficiaryDetails $parameters) ) 1
  </code></pre>
  
  <p>When i Call to <code>$OutResult = $client-&gt;__getTypes();</code> it will return follwing</p>
  
  <pre><code>Array ( [0] =&gt; struct EmployeeDetails { string employeeId; } [1] =&gt; struct EmployeeYearDetails { string employeeId; string financialYear; } [2] =&gt; struct PPMWebServiceException { string message; } [3] =&gt; struct PPMAccesibilityResult { string response; } [4] =&gt; struct ProjectProgressResult { ImplementationProject projectList; } [5] =&gt; struct ImplementationProject { string charterCode; string title; string titleSinhala; string titleTamil; string completionPercentage; string deptId; string financialYear; } [6] =&gt; struct LocationYearDetails { string locationId; string financialYear; } [7] =&gt; struct ProjectCountForLocationResult { ImplementationProjectCount projectCountList; } [8] =&gt; struct ImplementationProjectCount { string programId; string programName; string programNameSinhala; string programNameTamil; string impProjectCount; } [9] =&gt; struct DeptYearDetails { string deptId; string financialYear; } [10] =&gt; struct CircularSummaryInfo { string circularId; string circularName; string introduction; string objective; string goal; string projectExecution; string projectTimeline; string contactDetails; string proposalApprovalCriteria; ProjectDetails projectList; } [11] =&gt; struct ProjectDetails { string projectId; string projectName; string indicatorName; } [12] =&gt; struct BeneficiaryDetails { string beneficiaryId; string financialYear; } [13] =&gt; struct BeneficiaryProjectDetailsResult { ImplementationProject projectList; } ) 1
  </code></pre>
  
  <p>Now when tried to call using this <code>$OutResult =$client-&gt;getPPMAccesibility("6");</code> its getting error could not find host ,but my web service working fine</p>
  
  <p>How could i call to this webservice correctly using php please help</p>