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
Solved

PHP & NUSOAP & getProxy()

Posted on 2009-03-31
1
2,879 Views
Last Modified: 2013-11-19
HI, I'm trying got make a connection to a server using the code below.

I use a proxy server which may be causing some of the probs.

" If I run the script below I get the response operation DownloadDoctList not present. "

if though I was to remove the line $proxy = $client->getProxy(); ....I would get
 the response:

wsdl error: HTTP ERROR: cURL ERROR: 56: Received HTTP code 407 from proxy after CONNECT
url: https://my.portal.co.uk/supplier/doc.asmx?wsdl
http_code: 0
header_size: 0
request_size: 250
filetime: -1
ssl_verify_result: 0
redirect_count: 0
total_time: 0
namelookup_time: 0
connect_time: 0
pretransfer_time: 0
size_upload: 0
size_download: 0
speed_download: 0
speed_upload: 0
download_content_length: 0
upload_content_length: 0
starttransfer_time: 0
redirect_time: 0

Is the getProxy() required? Does the code look correct?

Thanks,



<?php
require_once('lib/nusoap.php'); 
 
$wsdl="https://my.portal.co.uk/supplier/doc.asmx?wsdl";
 
$proxyhost='proxyhost.co.uk';
$proxyport=8080;
$proxyusername='DOMAIN_NAME\thegunner';
$proxypassword='password';
 
$client=new soapclient($wsdl,true);
 
$client->setHTTPProxy($proxyhost, $proxyport, $proxyusername, $proxypassword);
 
$proxy = $client->getProxy(); 
 
$params = array('DocumentType' => 'ORD','NewDocsOnly'=>'0'); 
 
echo $client->call('DownloadDocList', $params);
 
$err = $client->getError();
 
if ($err) {
	echo  $err ;
}
 
?>

Open in new window

0
Comment
Question by:thegunner
1 Comment
 

Accepted Solution

by:
thegunner earned 0 total points
ID: 24204129
I'd like to xclose this question....
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PHP Query return divisible by 3 3 26
Currency in SQL? 2 31
Email called spam 5 36
What is wrong with this PDO Delete Query? 2 17
Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
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 …

828 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