Solved

Pass the Values from PHP Form to Web Service?

Posted on 2014-09-09
2
166 Views
Last Modified: 2014-09-29
So I've got a working consumption of a web service.

My goal is to create a form, capture the values by a User, then process that through the web service. Then throw the results back up on the page.

I'm thinking this is pretty straightforward? Is there some template I can starting using?

<html>  
<head>  
<title>Call to Navigator Web Service</title>  
</head>  
<body>  
<?php    


$param = array('commodity' => 'LAPTOP',  'placeOfPerformance' => array('location' => 'LSA' , 'lsaStates' => 'NY', 'VA', 'TX', 'oconusStates' => 'ALASKA', 'EMEA'),  'equipmentType' => 'ANY', 'socioEconomicObjective' => 'NONE', 'agencyCode' => '007',);

$client = new SoapClient('https://sso-test.fas.gsa.gov/mpdev/navigator/wsdl');  
$results = $client->__soapCall('retrieveContractVehicles', array('parameters' => $param));  
  
print_r($results);  
echo ("<br />");
echo ("We are crazy 8");
  
?>  
</body>  
</html>  

Open in new window

0
Comment
Question by:sandshakimi
  • 2
2 Comments
 
LVL 110

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 40313218
Is the question how to use PHP with HTML forms?  If so, good examples are in the introductory tutorial.
http://www.php.net/tut.php
0
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 40350037
I'd like an explanation of the grade you gave here.  Please review the grading guidelines first.
http://support.experts-exchange.com/customer/portal/articles/481419
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Online collaboration is quickly becoming embedded in the workplace, and its benefits are tangible. See what the current landscape looks like and what the future holds for collaboration tools and the future of work.
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question