Solved

PHP & Web services

Posted on 2009-03-30
1
207 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
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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.
This article discusses how to create an extensible mechanism for linked drop downs.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now