Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

PHP & Web services

Posted on 2009-03-30
1
Medium Priority
?
217 Views
Last Modified: 2012-05-06
Hi,

I'm trying to connect to server using some PHP and nusoap.

The link I'm trying to connect to is

https://demows.portal.com/supplier/documents.asmx

One function is DownloadDocumentList

...and there are a number of paramaters  i.e.

DocumentType(string): "ORD" or "INV"
StartDateTime(string):  e.g. "YYYY-MM-DD"
NewDocumentsOnly(integer): 1 or 0

My code so far is below is: (see code section)

I'm new to web services so would this be in the correct...or are there any glaring errors?

Thanks,

P.S.
If I use a proxy server would I need to specify this anywhere?

P.P.S
I have nusoap.php etc and tested using it locally on my web server ok.

<?php
require_once('lib/nusoap.php'); 
$wsdl="https://demows.portal.com/supplier/documents.asmx?wsdl";
$client=new soapclient($wsdl, true);
$param=array('DocumentType'=>'ORD', 'StartDateTime'=>'2006-01-25', 'NewDocumentsOnly'=>'0');
 
echo $client->call('DownloadDocumentList', $param);
 
?>

Open in new window

0
Comment
Question by:thegunner
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
thegunner earned 0 total points
ID: 24019970
Also....my calling app must pass through a client certificate when calling the web services.
This is already installed on my web server, do I need to pass details of this through in my code and if so how?

If I connect to the web services server .asmx page (thorugh the browser) it asks me about this and I click ok etc etc...and finally comes up with wsdl page....how can I send this through in the code if required?

Thanks,
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
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…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

721 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