Test Whether SOAP Is Running Properly?

Mar 17, 2011

Programatically, I want to test whether SOAP is working fine on my clients machine.The machine can be windows/linux.I want to get the SOAP version as well.I'm using PHP.Similarly, I want to do it for WS02/WSF.

ADVERTISEMENT

PHPUnit - Running A Particular Test Suite Via The Command Line Test Runner

Dec 2, 2010

Is it possible to specify which test suite to run from a configuration file via the command line test runner? For example, if I have the following xml configuration:

<phpunit ...>
<testsuites>
<testsuite name="My Test Suite 1">
<directory>./MyTestSuite1/</directory>
</testsuite>
<testsuite name="My Test Suite 2">
<directory>./MyTestSuite2/</directory>
</testsuite>
</testsuites>
...
</phpunit>

Can I have it run only "My Test Suite 1"?

View 2 Replies View Related

Properly Encode HTML Within XML For SOAP?

Jul 15, 2011

I'm attempting to communicate with Exchange 2007, and there are known bugs/problems with doing UpdateItem() so I'm manually communicating over cURL, building my own XML instead of letting the SOAP client do it. It all works fine, but I need to be able to properly encode HTML to fit within the elements of XML.

I know about html_encode() and htmlspecialchars() but I am unsure whether or not these are proper to use and whether or not in the future it may not encode correctly, and screw up the SOAP communication.

As a side note, if it matters, the communication will be in both English and Russian, so it needs to be Unicode safe.

View 1 Replies View Related

Setup Test Such That $_SERVER And $_GET Are Properly Set?

Mar 8, 2010

I am writing some PHP code to parse incoming URLs. It relies heavily on PHP globals such as $_SERVER and $_GET. I am thinking of manually setting these up in PHPUnit unit test setUp() function. Is there a better way of doing this?

View 1 Replies View Related

Function Not Running Properly?

May 22, 2011

Could someone please explain why there is a difference between

function foo($a){$blah = $a}.......
foo($CONSTANT);

and

function foo() { $blah = $CONSTANT}.......
foo();

The top method is working for me, the other is not. Specifically the below finds the if statement false:

$this->setsession($user->id,$user->email, ($user->activated == 1) ? STATUS_ACTIVATED : STATUS_NOT_ACTIVATED);

if ($user->activated == 0) { // fail - not activated
$this->error = array('not_activated' => '');

While this one finds it true:

$this->setsession();

if ($user->activated == 0) { // fail - not activated
$this->error = array('not_activated' => '');

View 1 Replies View Related

Write A Simple File To Test Whether This Controller Class Is Working Properly?

Feb 12, 2010

followed by my previous website development,we have built several controller classs corresponding to entities that will appear in our website development.and our website is very simple:just a shopping website for customers to book bus for travel.

Now I am assigned a challenging task that need to be done,that is ,for a single controller class,I need to write a test case to test whether it is working properly.For example,we have a controller class called "JobsController",like:

require_once 'php/controllers/Controller.php';

require_once 'php/models/Jobs.php';

class JobsController extends Controller[code]....

and all other Controller class are almost the same,just with name changes. how on to write a simple php file to test whether this Controller Class is working properly.After studying your code,I could get my hands on it to work with the rest controllers myself.

View 1 Replies View Related

Code Does Not Running Properly (not To Mention The Other Stuff I Added)?

Apr 28, 2010

I tried editing one of my PHP scripts myself and I messed it up.

Specifically, lines 13/14:
"$query = "UPDATE bbuild set Status='0' WHERE OrderID='$id'";
mysql_query($query); "

Does not run properly any more when they use to. (not to mention the other stuff I added) All of the new code is after that line. Below is the script before/after my modifications.

AFTER MY MODIFICATIONS

Code:
<?php

$dbname = "melennet_bbuild";
mysql_select_db($dbname) or die("MySQL Error: " . mysql_error());[code]....

View 1 Replies View Related

Test Whether Running From Cake Console?

Apr 10, 2011

I have a CakePHP Console Shell that works fine until a Model->afterFind() tries to add some data to the results which includes adding links, which doesn't seem to work while being called from the Console.Is there a way to test in the Model->afterFind() callback function whether it's being called from a Console Shell, so that I can skip the troublesome section that I don't need anyway?

View 2 Replies View Related

Getting Error While Running Phpunit Test?

Feb 18, 2011

I made one file in ryapi folder connection.php in this file i putted this code :

<?php
require_once 'PHPUnit/Framework.php';
class DataTest extends PHPUnit_Framework_TestCase
{
/**
* @dataProvider provider

[Code]....

View 1 Replies View Related

Load Test A Web Application Running On An IIS 6 Server?

Jul 9, 2009

I am wanting to load test a web based application that we are hosting on an IIS server (Windows 2003, IIS 6, PHP 5.2.0, MySQL 5.0.22). What are the best tools for :

a) load testing
b) catching bottlenecks
c) catching memory leaks

update: I found that MS Web App Stress tool was the best in my case as I could record header information and therefore the data that my Flash components were sending to some PHP pages that connect to the database. Selenium didn't record this for me. BrowserMob looks like a good service but again Selenium was not able to capture Flash in the same way as MSWAS.

View 3 Replies View Related

Mysqli Statement Parameter Not Found Running PHPunit Test Under Eclipse?

Feb 26, 2010

I run PHPunit tests via Apache, ou directly in Eclipse (ZendStudio in fact). All run well via Apache, but under Eclipse i have this error :

zend mysqli statement execute error no data supplied parameters prepared statement

The php version is the same (5.2.10), ZendFramework is 1.9 and here is the code

function isValidProject($sName)
{
$db = Zend_Db_Table::getDefaultAdapter();
$req = $db->prepare('SELECT id_project FROM sys_projects WHERE url_alias=?');

[Code].....

I have tried with this way too, with the same result

$req = $db->query('SELECT id_project FROM sys_projects WHERE url_alias=?', array($sName));

View 1 Replies View Related

Running Symfony Unit Test Returns "There Is No Open Connection"?

Jul 28, 2010

Symfony seems to have a problem opening a database connection while running unit test. I have my test env specified in config/databases.yml:

all:
doctrine:
class: sfDoctrineDatabase

[code]...

View 1 Replies View Related

SOAP Server Doesn't Correctly Process UTF8 Strings From C# SOAP Client?

Jan 16, 2010

I have a PHP SOAP server (using nuSOAP) that I consume with a C#-based application. When the C# application submits a request, the strings are UTF-8 encoded. I verified using a network sniffer that the byte sequences are valid UTF-8. However, when PHP gets then and I post them to the database or send them by email, it appears to be printed like standard ASCII, the UTF encoding bytes are treated as characters.I have the same issue with the C# app receiving UTF-8 from the SOAP server.NET interprets each byte as a CHAR instead of a BYTE. I had to write a small function that converts each CHAR to a BYTE and then converts that to a UTF-8 string and that's working perfectly. The question is, what do I need to do on the PHP server side to correctly process the incoming SOAP requests as UTF-8 for MySQL and the mail() function? I've tried utf8_encode() and utf8_decode() but those mangle the string even worse.

View 2 Replies View Related

SOAP Returning SOAP Fault - Server Was Unable To Process Request With .asmx Web Service

Jul 6, 2011

I am having difficulty in getting a SOAP request working properly , which requires XML string as input. It's throwing "SOAP Fault: Server was unable to process request. ---> Value cannot be null. Parameter name: s" no matter what input i send , i have used nusoap but to no avail , PHP soap library. The code i am using is:

<?
$aOptions = array(
'location' => 'http://webserviceurl.asmx',
'uri' => 'http://tempuri.org/',
"style" => SOAP_RPC,
"use" => SOAP_ENCODED

[Code]....

I am banging my head against a wall from last two days, searched google for this problem but got no answer that solves or guide me through.

View 1 Replies View Related

SOAP - Fatal Error: Uncaught SoapFault Exception: [soap:Server] Schema Validation Processing Failed

Jun 3, 2010

Fatal error: Uncaught SoapFault exception: [soap:Server] Schema Validation processing failed in C:wwwEngagesoapconsumeWSAPI.php:11 Stack trace: #0 C:wwwEngagesoapconsumeWSAPI.php(11): SoapClient->__soapCall('Login', Array) #1 C:wwwEngagesoapconsumeWSAPI.php(24): comsumewsdl->dorequest() #2 {main} thrown in C:wwwEngagesoapconsumeWSAPI.php on line 11

I belive I'm missing out on Schema Validation, but not sure how to do that. I'd really really appriciate any input in here. So here is the WSDL: Code: [URL] and this is my php login request

PHP Code:
<?php
class comsumewsdl {
public $username="xxxxxx";
public $password="xxxxx";
public function dorequest(){
$client = new SoapClient("http://api5.silverpop.com/SoapApi/?wsdl"); 
$response = $client->__soapCall("Login", array("USERNAME"=>$this->username, "PASSWORD"=>$this->password));
try {
[Code]....

View 10 Replies View Related

Empty Object While Using SOAP To Consume WCF SOAP Service?

Jul 6, 2010

Problem is: I need to consume a SOAP service that is provided by some MS WCF server (3rd party server, no access, no debug, no logs, transport secured via https).

WSSE Authentication works like a charme - but every time I send an XML to the server, all data structures are empty. The XML is generated using

new SoapVar( $xml, XSD_ANYXML)

[...]Envelope, Header, Body etc.[...]
<tem:CreateAccount>
tem:c_id>12345</tem:c_id>

[Code]....

c_id is perfectly parsed on WCF server side while everything below newAccount is just empty. I've sniffed the network traffic but I don't see any errors on transport level.

If the XML is directly sent to the server without using PHP SOAP, it works like expected.

View 1 Replies View Related

.net - Sending A Soap Header With A WSDL Soap Request ?

Feb 26, 2009

I'm extremely new to SOAP and I'm trying to implement a quick test client in PHP that consumes a ASP.NET web service. The web service relies on a Soap Header that contains authorization parameters.Is it possible to send the auth header along with a soap request when using WSDL?

My code:

php

$service = new SoapClient("http://localhost:16840/CTI.ConfigStack.WS/ATeamService.asmx?WSDL");
$service->AddPendingUsers($users, 3); // Example[code]...

How would the auth header be passed in this context? Or will I need to do a low lever __soapCall() to pass in the header? Also, am I invoking the correct soap call within PHP?

View 3 Replies View Related

PHP5 Soap And XML Custom Soap Header

Sep 15, 2005

I am having a problem getting a custom soap header to work with PHP5.

What I require is something like this:

<SOAP-ENV:Header>
<USER>myusername</USER>
<PASSWORD>mypassword</PASSWORD>
</SOAP-ENV:Header>

What I get is :

<SOAP-ENV:Header>
<ns2:auth>
<USER>myusername</USER>
<PASSWORD>mypassword</PASSWORD>
</ns2:auth>
</SOAP-ENV:Header>

I would like to remove the namespace tags.

The code I use to get this is: ....

View 4 Replies View Related

Enable SOAP On A Web-hosting That Don't Support SOAP?

Aug 21, 2010

In my php5 web-application i use zend mailMerge for constructing doc/pdf files from user data. Unfortunately, when i write a code, browser throws me an error: "Uncaught exception 'Zend_Soap_Client_Exception' with message 'SOAP extension is not loaded." I contacted with my hosting provider and asked about installation soap. He told me that my hosting doesn't support soap. Also i found a "nusoap" library. As written there, this library can if server don't support soap. But after enabling this library in my web-application, nothing changes.

View 1 Replies View Related

Consume A SOAP Response Using The SOAP Extension?

Apr 12, 2009

I am trying to consume a SOAP response using the PHP-SOAP extension - I have got everything to work except the actual element values returned - below is an excerpt from the xml returned:

<datasheet>
[code]....

View 2 Replies View Related

Setting Test Items In CodeIgniter Unit Test Not Effecting Report Output?

Oct 13, 2010

I'm running CodeIgniter 2.0 and I have a test controller setup with this code in the index function. It seems like no matter what I put in the "set_test_items" variable, the report never changes. It always show all of the possible information regarding the test. I feel like I must be missing something blatantly obvious here. What am I missing?

$this->unit->set_test_items(array('test_name', 'result'));
$this->_test_user_lib();
$this->_test_user_model();
echo $this->unit->report();

Also, I just tried to var_dump() on the visible items when the report is generated and the array only contains the two things I passed in, so it is being set correctly.

View 1 Replies View Related

Unit Testing - Are There Any Open Source SimpleTest Test Cases That Test It's SPL Interfaces

Apr 27, 2010

I have quite a few objects in my system that implement the PHP SPL Iterator interface. As I write them I also write tests. I know that writing tests is generally NOT a cut 'n paste job.

But, when it comes to testing classes that implement Standard PHP Library interfaces, surely it makes sense to have a few script snippets that can be borrowed and dropped in to a Test class - purely to test that particular interface. It seems sensible to have these publicly available. So, I was wondering if you knew of any?

View 1 Replies View Related

Updating An Existing Site - Setting Up Test Space - Set The Base Test URL?

Oct 30, 2009

I'm just logging into a products based site which has been developed by someone else (third party), but now we need to take it over. I have currently copied all live files into a "test" directory so that the test version of the website can be accessed via [URL]. The problem with this is that I need to modify a few central scripts, including .htaccess, to refer to URLs and php included files using the /test/ rather than trying to access the live files. For example, .htaccess live code:

RewriteRule ^brands/([a-z0-9_-]+)/([a-z0-9_-]+)/?$ /scripts/brand_list.html?brand=$1§ion=$2&%{QUERY_STRING}

has been modified by me, to:

RewriteRule ^brands/([a-z0-9_-]+)/([a-z0-9_-]+)/?$ /test/scripts/brand_list.html?brand=$1§ion=$2&%{QUERY_STRING}

(notice the test directory in there) However, I am finding that I need to continue to update certain files - for example, now I need to update the template files so that their URLs, which are currently structured as follows:

/brands/tommy/

need to be changed to:

/test/brands/tommy/

I am just wondering if there is a better way to do this. Rather than updating the template files, is there a way in PHP (or .htaccess) to tell the entire site in my test directory to refer to all directories WITHIN the test directory? Maybe something like < base href > in HTML?

View 1 Replies View Related

Create A Separate Seed For Some Test Inside One Test Class?

Apr 30, 2010

How do I create a separate seed for some test inside one test class? PHPUnit documentation includes this example

<?php
require_once 'PHPUnit/Extensions/Database/TestCase.php';
class DatabaseTest extends PHPUnit_Extensions_Database_TestCase
{

[Code]....

But in this example I have one seed for all the tests inside my class.

View 1 Replies View Related

Write Unit Test To Test The Stack Functionality?

Apr 21, 2011

I want to write a unit test for a class handling a stack of positive integers. There are 4 methods in such class: push($x), pop(), getSize(), purge().

class Stack {
private $stack = array();
public function __construct() {
}
public function push($data) {
array_push($this->stack, $data);
}
public function pop() {
return array_pop($this->stack);
[Code]....

View 1 Replies View Related

Linux - SOAP Local Server Error Soap-Error: Parsing WSDL: Couldn't Load?

Apr 13, 2011

I'm struggling to get SOAP working on server locally. It's running on server and from my local PC I can use it, but when I'm using ssh to the server (both PC on linux) php gives me the error:

Error occurred: SOAP-ERROR: Parsing WSDL: Couldn't load from 'url ?WSDL' : failed to load external entity "url"

I tried Lynx locally from server and it's working fine. So problem is somewhere in PHP, SOAP...

View 2 Replies View Related

PHPUnit Test - Unit Test Class?

Jan 20, 2010

I'm trying to get into Unit testing for the obvious positives it introduces, and I'm trying to write a Unit test for a class I wrote the other day. (I know this is the opposite to TDD, please bear with me) My class, Image, is used in conjunction with some others for image manipulation. Image essentially wraps a GD image resource and stores data along with it. For example, an instance of Image will always contain it's current state, i.e. its new width/height if resized, the original image data, etc. The Image class also contains methods for,

Creating itself from a file, string data, or URL, e.g. $image->loadFromPath() Creating a new GD image resource from the properties of the current Image instance, e.g. for image resizing to maintain background transparency, etc. Cloning the GD image resource for use in the manipulation classes

What I'm struggling with is how to Unit test this class properly with PHPUnit. I've done some reading and I have a few conflicting ideas on how to approach it and I don't know what's right. Do I, Write a test for each method of the class. I read somewhere that I should test each and every method. However, some of the methods run others (rightly so may I add), so you then have a chain of dependency.

But I also read that each Unit test should be independent from the other. So what do I do if this is the case? Write each test as a usage route of the class. I also read somewhere that each test should instead represent 1 path/usage route you can take with the class. Therefore if you cover every usage, you'll ultimately get complete code coverage.

View 3 Replies View Related

Why Does Filter_var($email - FILTER_VALIDATE_EMAIL) Allow Test@test

Aug 4, 2010

I was just setting up the validation for a form in which I decided to try using the filter_var function to check the validity of my email address. I can not find out what filter_var actually allows anywhere though (since the documentation is very simple), and I found out that it is allowing an email address like test@test. Doesn't there have to be a .com, .net etc... in the domain?

View 4 Replies View Related

Warning: Invalid Argument Supplied For Foreach() Running On A OS X Machine Running Apache 1.x And PHP 4.x.

Sep 21, 2004

The following script was running on a OS X machine running Apache 1.x and PHP 4.x. I just moved the script over to a Linux machine running Apache 2.0.51 and PHP 4.3.8, and now the foreach line does not work. It says Warning: Invalid argument supplied for foreach()

in /var/www/localhost/htdocs/warehouse/whse_order_submit.php on line 39

Here is the script:

<?php
//get the variables from the other page
$id=$_POST['id_no'];
$sku=$_POST['sku'];
$description=$_POST['description'];
$order=($_POST['order_qty']);
$store=$_POST['store'];
$comment=$_POST['comment'];

$ip=$REMOTE_ADDR;

//check if store is empty
if(empty($store)) {
die("Store is required. Please press the back button and enter in your store.");
}

//connect to the database
require('../inc/database_conn.php');

//$month=getdate(mon);
//$day=getdate(mday);
//$year=getdate(year);
//$today=$year . "-" . $month . "-" . $day
$today=date('Y-m-d');

// create the unique order number

$headerqry = "INSERT INTO misc_order_header (order_date, store, comment, ip) VALUES ('$today', '$store', '$comment', '$ip')";

mysql_query($headerqry, $conn) or die(mysql_error());
$order_no=mysql_insert_id();
foreach($order_qty as $id_no => $val) {
if($order_qty[$id_no] > 0) {
$detailqry = "INSERT INTO misc_order_detail (order_no, id_no, sku, order_qty, order_date, store) VALUES ('$order_no', '$id_no', '$sku', '".$order_qty[$id_no]."', '$today', '$store')";
mysql_query($detailqry, $conn) or die(mysql_error() . "<BR>" . $detailqry);
}
}

View 1 Replies View Related

Zend Studio 7.1 Unit Test Case Wizard Does Not Populate "Element To Test"?

Dec 24, 2009

When I follow the instructions in ZS documentation to create a phpunit test case, the wizard returns no objects to select on the "Element to Test" line. Selecting "browse" provides an empty dialog box. The PHPUnit path in my preferences shows "/Applications/zend/zs710/plugins/com.zend.php.phpunit_7.1.0.v20091120-0900/resources/library/". What else can I check to see why I cannot create a test case? I'm new to ZS and PHP, so I have no idea how to troubleshoot this.

View 2 Replies View Related

Test AssertArrayHasKey And Later Test Value Using AssertEquals?

Jul 5, 2011

Does it make sense to test assertArrayHasKey and later test it's value using assertEquals, or when I'm expecting specific value, I should ommit testing testArrayHasKey - I will get "Undefined index: id" in the next assertion anyway. I'm aware that difference is in feedback (F vs. E) but does it make any difference in real life?

View 1 Replies View Related

Running Long-running Scripts Independently Of Main Script?

Jan 16, 2010

I'm implementing a "scheduler" feature for a script I develop, that allows external modules that interact with the core script to register things to do at certain times. Basically it's just a cron jobber, only server independent and no-where near so accurate. So module A could say, "do THIS at THIS frequency", and the scheduler will take care of it.

To trigger the scheduler to check to see if there's anything to do, I'm adding a line of code that'll be executed anytime someone loads the page. Yes, I know this could be hours (or whatever) after the module requested their code be executed, but I think it's acceptable for my situation. Now here's the rub: the code in the scheduler queue could potentially take hours to complete. I don't want the page load to be slowed down too much. A second or two is acceptable, any longer is not.

#1: spawn a child process in PHP. This would be ideal, except my script has to work on the vast majority of web servers, so pctnl_fork() isn't an option (or can only be used as a fallback), enticing though it may be.

#2: in the page add an image that actually runs the scheduler:

Code:

<img src="runScheduler.php" width="0" height="0" />

Anyone have any experience with #2? Does this work for all servers running PHP? Are there any better solutions for #1...? Any other brilliant ideas...? Remember: I need this to run on the lowest common denominator web server.

View 1 Replies View Related

Equivalent Of Running SERVER['DOCUMENT_ROOT'] When Running In Terminal?

Apr 29, 2010

I was wondering if there is some variable that will return what $_SERVER['DOCUMENT_ROOT'] returns when I call PHP like this: ./somescript If not, how do people get around this case? I'm looking to be able to call the same script (a template compiler) in both the web browser and the terminal.

View 3 Replies View Related

Test "included" Classes - No Runnable Test Cases In [index.php]

Nov 26, 2010

I have de follow code:

include 'simpletest/autorun.php';
include 'config_test.case.php'; // <-- problem

But it not works. I get:

Bad TestSuite [index.php] with error [No runnable test cases in [index.php]]

But if I put the Config class code directly (no "include"), it works.

View 1 Replies View Related

Differents Between $GLOBALS["test"] And Global $test?

May 22, 2010

can any one please let me know the basic differences between

$GLOBALS["test"] and global $test

and, will it make sense that, if i use $GLOBALS["test"] instead of $_SESSION['test']?

View 2 Replies View Related

CURL - Post Xml Data To A Test Page.on My Test Page?

Apr 15, 2009

I have the below curl that post xml data to a test page.on my test page when i try and see what has been posted via print_r($_POST) i only see the the root element and nothing more?how can i get the xml file i am posting or see what i am posting?

my curl to post

PHP Code:

<?php
    /**
* Define POST URL and also payload
     */
/* define('XML_PAYLOAD', "<?xml version='1.0'?><member><name>name</name><last>last</last></member>");[code].....

View 24 Replies View Related

Project Work Properly On Local Server But Does Not Work Properly When Put It Online On The Web Server?

Jul 26, 2010

I'm working on a php project.. And I started building the admin login system and have already finished it and it works properly on my machine (local server) where I'm developing the project.. But when I moved it to a (web server) it didn't work properly as it was working on (local server).

the problem that showed up is that when the admin get authentication to log in to the admin area, once he clicks any link in the page or even he reloads the page that page disappear and the login page appear again which mean the admin forced to log out even he didn't.

View 2 Replies View Related

Run Selenium Server To Test My Selenium Test Cases?

Jun 29, 2011

I have just installed Selenium server and java on my system and tried to run selenium test case which i have created using Seleniun IDE but i did not get any result from selenium server.

View 1 Replies View Related

Access A .rar File 'test.rar' Contains A Txt File 'test.txt'?

Aug 17, 2009

I needed to access a .rar file 'test.rar' contains a txt file 'test.txt' on a Ubuntu server running PHP5.Here's the code -

Code:
$rar_file = rar_open('test.rar') or die("Failed to open Rar archive");
$entries = rar_list($rar_file);
[code].........

View 1 Replies View Related

Can I Test For More Than One Value W/ "IF" Or Must Test Individually W/ "SWITCH"

May 25, 2007

Is it possible to test for more than one value in an "if" statement or must each desired value be checked individually with something like a "switch" or "if-else"?

For example, if I'm checking $_SERVER["$HTTP_USER_AGENT"] and I am only interested in selecting for Safari or Opera and all the rest are "else" ...?

And, can I get a clear answer on the best checker for this: strpos(), strstr(), substr(), or match_preg()?

View 9 Replies View Related

SOAP Anyone?

Jul 25, 2001

I know soap some how related to microsucks technology, but does php allow to do that?

View 11 Replies View Related

SOAP, PHP, RPC And C# .Net

Jul 17, 2005

I have an app that calls a webservice written in PHP. I have
referenced the WSDL and when sending data to the server, methods like
following work fine:

soapservice MySoap=new soapservice ();
MySoap.search("arg1","arg2");

However, when I need to receive data from the server or extract
results, I am not sure what to do.

None of the methods list any data type returns. Of course, I know what
should be returned and we had been using "RPCResult" and XML documents
from a SoapReader in VB6 using the SOAP SDK.

Assuming I am going to retrieve an RPCResult and XML file from the
above method, does anyone have any advice?

View 1 Replies View Related

Soap In PHP

Jul 29, 2005

What do people use for SOAP in PHP?

There are a few choices from articles I've seen on the web. The articles look old, though it may not have changed.

I don't think I can recompile or add to the core PHP modules. My hosting has PHP Version 4.3.11.

View 1 Replies View Related

SOAP Via SSL

Mar 19, 2007

I want to access a Lotus Notes Database via SOAP.

PHP Version is 5.2.0, OpenSSL support is active (OpenSSL Version
OpenSSL 0.9.7e 25 Oct 2004)

But I get this error message:

Warning: SoapClient::SoapClient() [function.SoapClient-SoapClient]:
Unable to set private key file `test.cer' in
/abbreviated/soap-test/index.php on line 7

Warning: SoapClient::SoapClient() [function.SoapClient-SoapClient]:
failed to create an SSL handle in /abbreviated/soap-test/index.php on line 7

Warning: SoapClient::SoapClient() [function.SoapClient-SoapClient]:
Failed to enable crypto in /abbreviated/soap-test/index.php on line 7

Warning:
SoapClient::SoapClient(https://notes.domain.tld/samson/sam...sf/Partner?WSDL)
[function.SoapClient-SoapClient]: failed to open stream: Operation now
in progress in /abbreviated/soap-test/index.php on line 7

Warning: SoapClient::SoapClient() [function.SoapClient-SoapClient]: I/O
warning : failed to load external entity
"https://notes.domain.tld/samson/samain20.nsf/Partner?WSDL" in
/abbreviated/soap-test/index.php on line 7

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing
WSDL: Couldn't load from
'https://notes.domain.tld/samson/samain20.nsf/Partner?WSDL' in
/abbreviated/soap-test/index.php:7 Stack trace: #0
/abbreviated/soap-test/index.php(7):
SoapClient->SoapClient('https://notes.s...', Array) #1 {main} thrown in
/abbreviated/soap-test/index.php on line 7

Here is my code snippet:
<?php
$wsdl = 'https://notes.domain.tld/samson/samain20.nsf/Partner?WSDL'
$options = array(
'local_cert' ='./test.cer',
);

$client = new SoapClient($wsdl, $options);
?>

The aquired the certificate with "openssl s_client -showcerts -connect
notes.domain.tld:443"

My question is now, wether I made a mistake or the SOAP server doesn't
work properly. But when I access the WSDL file via browser, I get a
valid XML file back.

Any ideas for me?

Thx
Peter

View 1 Replies View Related

Soap With PHP

Oct 2, 2005

I have a mysql Db with schedule data such as show names, episodes, start and end times etc.

I have created a soap server service and client which work - code is below. Currently I am passing the item name and retrieving its info. Now I would like to be able to retrieve multiple rows of data and return these to the client. I would like to query something like this Code:

View 6 Replies View Related

ADVERTISEMENT