473,405 Members | 2,294 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Convert Soap Call to NuSoap Call

I've had a nightmare at work. I have a simple app makes a simple SOAP
call to a webservice. It all worked fine but when we tried to deploy
it on the live site there appears to be some version issues. I get
this error:

Fail: Unknown protocol. Only http and https are allowed.

To solve it I think it would just be easier to rewrite my existing PHP
code to use NuSoap rather than what I am currently using. Can someone
help me change this php code into a NuSoap version and tell me what
I'd need to install on a centos box to make it work? Thanks in
advance:

<?php

try
{
$app = new
SoapClient("accessmanagerreportservice.wsdl") ;

} catch (Exception $a)
{
print "failed to read wsdl";
}

$params = array('sessionKey'=>"blah" ,
'reportName'=>"ClientSumm
aryPerFirewall", 'parameters'=>"FirewallId=477;");
try
{
$answer = $app-
>__soapCall("GenerateReport" ,
array($params));
print "Success";

} catch (Exception $err)
{
print "Fail: " . $err->getMessage();
}
?>
Jun 27 '08 #1
1 3988
On 10 Jun, 13:17, Philluminati <Phillip.Ross.Tay...@gmail.comwrote:
I've had a nightmare at work. I have a simple app makes a simple SOAP
call to a webservice. It all worked fine but when we tried to deploy
it on the live site there appears to be some version issues. I get
this error:

Fail: Unknown protocol. Only http and https are allowed.

To solve it I think it would just be easier to rewrite my existing PHP
code to use NuSoap rather than what I am currently using. Can someone
help me change this php code into a NuSoap version and tell me what
I'd need to install on a centos box to make it work? Thanks in
advance:

<?php

* * * * * * * * try
* * * * * * * * {
* * * * * * * * * * * * $app = new
SoapClient("accessmanagerreportservice.wsdl") * * * * * * * * * * * * * * * * * * * * * * *;

* * * * * * * * } catch (Exception $a)
* * * * * * * * {
* * * * * * * * * * * * print "failed to read wsdl";
* * * * * * * * }

* * * * * * * * $params = array('sessionKey'=>"blah" ,
'reportName'=>"ClientSumm
aryPerFirewall", 'parameters'=>"FirewallId=477;");
* * * * * * * * try
* * * * * * * * {
* * * * * * * * * * * * $answer = $app->__soapCall("GenerateReport" * * * * * * * * * * * * * * * * * * * * * * *,

array($params));
* * * * * * * * * * * * print "Success";

* * * * * * * * } catch (Exception $err)
* * * * * * * * {
* * * * * * * * * * * * print "Fail: " . $err->getMessage();
* * * * * * * * }
?>
A simple search for NuSoap in google suggests this resource:
http://www.phpbuilder.com/columns/kr...26.php3?page=1

I'm amazed you missed it when you did your google search before
posting here.
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ben | last post by:
I am looking into deploying web services with PHP and would like to get on a 'good horse' to start. I am aware of NuSoap and PEAR:SOAP. Does anyone have any experience, good and/or bad with the...
1
by: Arne Holderbeke | last post by:
I'm doing my final project in PHP with a Soap webservice In the client script (PHP) 3 files are read into a string these strings and the name of the 3 files need to be passed to the webservice (...
0
by: Marc van Boven | last post by:
I'm stuck with the following problem: My nusoap-client calls a server-function giveCombination(). The function giveCombination should return something like array( => array( 'a_id' => 6,...
1
by: Sigrid | last post by:
Hi! I'm trying to develop a .net application (xml web service client, using SoapHttpClientProtocol), but i can't get any response from xml web service (php, NuSOAP), server url is:...
0
by: devthx | last post by:
Hi! I code php with nusoap for my web services and would like to consume it with c# soap client. Everything seem to be fine until I try to send data in Thai characters and recieved a garbage. Does...
4
by: Jesus Angel | last post by:
Hello. Could you please give me an advice about a PHP SOAP library? I use PHP 4.3.0 and I have found this SOAP libraries: NuSOAP 0.7.1 (SOAP 1.1, WSDL 1.1 and HTTP 1.0/1.1) PEAR::SOAP 0.9.4...
6
by: Stephen | last post by:
I've got a problem with a PHP program that i've written using the standard SOAP client with a WSDL file. When calling one of the functions on the SOAP server i'm occasionally receiving a response...
1
by: gezerpunta | last post by:
Hi I have to find a soap client to be able to connet to java apache soap server.And I must send a file and envelope xml.I found nusoap but I can t achieve to communicate it. Does anybody knows...
4
by: wbsurfver | last post by:
I have been trying to figure out apache/rampart soap security. We have a soap server in java and the client is PHP. I just read this article which concerns me because it seems to imply rampart/java...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.