Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Soap Installation


can anybody help me to implement soap into my system?..i think this is the answer to my problem but i really dont know how to do it..ive been reading about it but i really cant understand it..




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Problem: PEAR SOAP => PHP5 SOAP
I am having problems converting from Pear SOAP to
PHP5 SOAP, especially when it comes to complex types.
I would be grateful for any help on how this should be
translated:

require_once("SOAP/Client.php");

$wsdlurl = "http://myserver/myservices/mypage.php?wsdl";

$wsdl = new SOAP_WSDL($wsdlurl, array("timeout" => 360));
$soapclient = $wsdl->getProxy();
$soapclient->setEncoding("UTF-8");
$soapclient->__trace(1);

$mydata = array(
"fromDate" => new SOAP_Value("fromDate", "string", "2003-10-01"),
"toDate" => new SOAP_Value("toDate",
"string", "2004-02-31"));

$args = array(
"myId" => new SOAP_Value("myId","int", 1),
"criteria" => new SOAP_Value("criteria", "{urn:engine}myData", $mydata),
"start" => new SOAP_Value("start","int", 0),
"limit" => new SOAP_Value("limit","int", 20));

$res = $soapclient->searchData($args);

if(PEAR::isError($res)) {
echo "Error: ".$res->getMessage()."";
} else {
echo "Res:";
print_r($res);
echo "";
}

View Replies !
PHP5 Soap And XML Custom Soap Header
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 Replies !
PhpMyAdmin Installation - Thorough Installation Guide.
I am trying to install phpMyAdmin-2.6.3-pl1 on my machine because I am familiar with working with it itself, but not installing it. I have Apache 2.0.54, php 4.4.0, mysql 4.1.14 running on a Win XP Home machine. Like I said, I've never installed phpMyAdmin before and I've looked at the documentation and I can kinda make out what it says, but I'd rather try to find a very thorough installation guide.

View Replies !
SOAP Anyone?
I know soap some how related to microsucks technology, but does php allow to do that?

View Replies !
SOAP, PHP, RPC And C# .Net
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 Replies !
Soap + PHP
I have windows application on my local Client.

from this application I want to call a php page on some website. And that Page
will return a xml file to that windows application.

View Replies !
Php | Soap | Ssl?
Is it possible to transmit data to a secure server (https) using nusoap.php? Does it require cURL? or a version of PHP >= 4.3?

View Replies !
Soap In PHP
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 Replies !
SOAP Via SSL
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 Replies !
PHP And Soap
I am currently building a web site, and we've added a payments gateway to the site. The examples that I got from the payments gateway company, say (suggest) that we use Soap to send the data to them.

I tested the code on my box and all is good, but when I uploaded the script to our hosting server, I found out the server doesn't have Soap enabled / installed.

I had a look around the net and found "nusoap" and tried giving that a go, but I got this error

"Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/wti243/public_html/Payment/lib/nusoap.php on line 2161".

Can anyone shead some light on the error?

Is there anything else I can do? Another soap library etc.. Or is there another way to send the data? Before finding out about Soap, I used cURL, but I couldnt get the data to send in the correct format.

View Replies !
Use SOAP?
I have an apache server set up with PHP and MySQL but I am currently trying to get my head around XML and SOAP and would like to set up my server to work with this. 

I am sure on one of the earlier tutorials I found told me how to set up / enable SOAP and I think it involved downloading something but I can not find that tutorial again.  Can anybody help me with some step by step instructions on how to prepare my server to use SOAP? Code:

View Replies !
PHP Vs SOAP
I've been asked to create and establish a connection towards a system with a SOAP server. The company hosting the external application has provided me with example code of how to connect in .NET and Java. I don't have any skill in Java so I've tried to understand the .NET example and create the same thing in PHP.

So far i'm just getting a error message and the company who has provided the example doesn't have any who can support me within PHP. I hope someone here has the ability to give me a hand. Code:

View Replies !
Soap With PHP
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 Replies !
About Soap
what does it mean if i can use __getFunctions to list the avaliable functions in my wsdl, but none of the functions listed work. i keep getting a connection failed.

View Replies !
Soap
The only tuts I can find use nuSoap - which I'm already using but it may be the root of my high CPU usage. Well I've identified that the soap part of my code is whats causing the problem, now whether its something I'm doing or whether its something the other end is doing (searches are taking 40-70s to return - bleh).

I'm trying to track down - I have to figure that using a native php function has to be better than using nuSOAP - but I cant seem to figure out how to use it. I dont want to faff with complicated arrays or anytihng - I just want to give it the damn XML to send and grab my response. Currently all I have to do is

$soapclient = new nuSoapclient('http://domain.com/XmlService.asmx');
$soapclient->send($xmlMessage, "http://www.differentdomain.com/AvailabilitySearch");
$xmlString = $soapclient->response

View Replies !
XML And SOAP
right now the XML we are recieving is in UTF-8 encoding but we are charaters that are not supported which is giving us error.  is there a way to set the enconding for the XML through SOAP, which is the current way we are getting th eXML document in the first place?  We are running on linux running php 5.12 or higher if that helps in your answer.

View Replies !
What Is SOAP ? What Is The Use In Php?
what is SOAP ? What is the use in php?

View Replies !
SOAP And PHP 5
I have to use SOAP with PHP 5. Currently SOAP is disable with PHP. Do I have to recompile PHP? Or can I install a package. If so what package I should use?

View Replies !
Php Installation
i've just bought PHP and MySQL web development by luke welling and laura thomson. although this book comes with the software i'm finding it difficult understanding the installation instructions for apache php and mysql and linking them together, how come there's 2 folders for each, binary and source? it might be easier if i download the software from thier respective websites and start afresh, i'm using windows 98 and just looking to build a testing platform....

View Replies !
Installation On XP
I have to install php in my PC. My os is XP. What are the steps that i have to take in order to implement the above. If we once install mysql-admin we whether i can uninstall it from my system?

View Replies !
PHP 5 Installation
I've just downloaded the PHP5 Zip release. I followed the instructions and, like it said, got it working fine without extensions. I then tried enabling an extension to see if it worked, but I got a "DLL Not Found Message".

The path it gave was the correct path (C:Program FilesPHP5libsphp_mysql.dll) and I've checked and the file exists, so what could be going wrong?

View Replies !
GTK Installation
How to install PHP-GTK? The Windows binary installation packages found on gtk.php.net are missing .DLLs from winnt directory. Only php.ini is there. And I don't know where to find these.

I tried to install GTK using the unofficial Windows installer (michel.weimerskirch.net), and test scripts from gtk.php.net install packages work, but buttons are missing any text (and maybe more than just buttons). In other words, it doesn't work. Am I missing something super-obvious here,or ?

View Replies !
My Php Installation
I installed the php-4.4.7-Win32 and apache_2.2.6-win32-x86-openssl-0.9.8e manually. Apache can work well, but when use the test.php, which is located in C:Apachehtdocs, I get the following error:

erroe 403:
Forbidden
You don't have permission to access /php/php.exe/test.php on this server.

View Replies !
DLL Installation
I develop one astrological site,i use some DLL's like 'Swiss Ephemeris',my problem is how to use this DLL in my PHP program where i store this DLL file in my webserver.

View Replies !
5 / IIS 5.1 Installation
I have been using PHP5 on my Apple, but now I also have a Windows XP
and I'm having trouble completing the install.

I did a manual install and followed the directions from
http://us3.php.net/manual/en/install.windows.manual.php.
I am installing using the CGI binary rather than the ISAPI module.
The one step I couldn't figure out how to do is: Code:

View Replies !
Installation On MAC
offer an opinion on the best way to install PHP locally on my Mac OSx (10.4.6).I am currently working with a company who only have macs and I need to develop a PHP website. I want to be able to test my website locally alongside a MySQL database what's the easiest and most efficiant way to do this.

View Replies !
5 Installation
can anybody give me step by step instruction for php 5 installation or any link in windows XP. i am using apache 2.

View Replies !
PWS Installation
I used the easy windows install for php after i got my pws installed in win98. I had trouble saving files, but figured that out. Then, I got an error message, and figured out it was cause i needed to have execute clicked. So that was settled.

Then I was getting a "The page cannot be displayed" error. So I looked around, and I think here I read about someone who was having the same problem, but did the regedit thing and it worked.

I did the regedit thing, rebooted, and it still doesn't work. If I go through with http://localhost.. it gives me that 'the page cannot..' error. If i double click a php file, a blank IE page opens.

View Replies !
Soap Fault
I am trying to call a Web Service using Php and Soap.

Why does the following Php 5 code return?

try
{
//$ExchangeLoginResult = $ExchangeClient->Login(array("request" =>
array("username"=>"sportleisure",
$VendorAddResult = $VendorSoap->updateVendorSubscription(array("request"
=array("header"=>$BetfairRequestHeader,"username"=>$tok
[3],"vendorSoftwareId"=>342,"expiryDate"=>$date)));
}
catch (SoapFault $fault)
{
trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring:
{$fault->faultstring})");
print("Fault when trying to Add/Update API User ");
var_dump($fault);
}

Error Message - Fault when trying to Add/Update API User
["faultstring"]=string(22) "Rejected (from client)"
["faultcode"]=string(10) "env:Client"

View Replies !
Php 5 Soap Question
I am using PHP5 in the latest xampp distro to write a proof of concept
soap application with wsdl and cannot get it to recognise the <types>
element.

If I comment out the <typeselement and use basic types in the
message <part>, all works fine. But if I try and declare a
complextype in the <typeselement I get an error message stating
unexpected element <schema>.

My understanding is that the <schemaelement means that the types
defined inside it are imbedded rather than imported?

View Replies !
PHP 5.0 SOAP Documentation
I've noticed there is an experimental version of soap bundled with new PHP.
After some digging I've managed to find a piece of information how to use it.

It's inside the distribution, but it would be more usable if it is included with
the rest of the PHP documentation. The information that I am unable to find is:
how to use autogenerated wsdl file from php class. PEAR::SOAP has this ability,
using the same trick with php soap I didn't get any usable response.

Is there some relation between PEAR::SOAP and bundled soap? When is better to
use first and when the second?

Could someone enlighten me.

Has somebody used XUL/xxxx SOAP / PHP combination with success?

View Replies !
Soap On Apache
I'm trying to run a soap server on apache using ext/SOAP. It's not
working, and the error log has the line PHP Warning: PHP Startup:
Unable to load dynamic library './extphp_soap.dll' - The specified
module could not be found. in Unknown on line 0

The php.ini file enables the soap extension, and a command line client
has no problem running. I'm not sure where apache is taking the
starting point of the path from, obviously not e:/php which is in my
path variable and in the php.ini for included directories. So, how do
I get apache to look for the dll in the right place?

View Replies !
SOAP, SSL And PHP5
I am having a problem getting a SOAP connection to work and would
appreciate any suggestions.

The story so far:

1. I can point my browser at the service site (https://10.0.1.1:1234/)
and get a meaningful XML response.

2. My php5 code looks like this:

<?php
$client=new SoapClient("http://localhost/xxx/wsdl/xxx.wsdl",
array(
'uri'=> "https://10.0.1.1:1234/",
'userName'=> "xxx",
'password' => "xxx",
'trace' => 1,
'exceptions' => 1
)
);
$client->GetContents();

echo "Request:
".$client->__getLastRequest()."";
echo "Response:
".$client->__getLastResponse()."";
?>

View Replies !
SOAP Server In PHP 5
I'm having trouble while trying to map a php object to a wsdl one...
I've been googleing hours to find a doc about this subject, but I
could'nt find anything interesting.

Do you have anything in your bookmarks to share with me :) ?

View Replies !
PHP, SOAP And HTTPS
I am creating a webservice in PHP, but the results that the web service returns is confidential - what is the most secure way to ensure the data being returned is secure? My thinking is the following:

* Encrypt the data myself in the actual webservice
* The webservice must reside in a secure area and be accessed via HTTPS

Is there anything else I could use - any better ideas?

View Replies !
Php -> Wsdl (soap) ?
I want to use some php-functions in my Visual Basic 6 program. I want to do this by using SOAP. For that I already downloaded the MS SOAP Toolkit 2.0 SP 2. But I need a WSDL-file of my php-file to use these functions. How do I create it? Where do i find information about that? For example this easy function: PHP Code:

View Replies !
(nu)soap Web Service
i am new to writing soap servers adn clients.. i am using nu soap implementation of soap (or is it xmlrpc?)... i use adodb class for data extraction from database.. and $_RIIA_TValidate->check_int() checks if something is an integer or not.. its tweaked version of is_int() PHP Code:

View Replies !
PEAR::SOAP
I want to do some SOAP with PHP and found the SOAP package at PEAR. But I
didn't find any documentation for it. Can anybody tell, where to find docs?
Or can anybody tell how to use it?

View Replies !
Wsdl And Soap
I'm currently reading about web services, wsdl and soap. how is it implemented? is nusoap installed on the server can create web services itself? or do i need to install wsdl...

View Replies !
PHP SOAP Tutorial Please?
anyone got a decent PHP SOAP tutorial?

View Replies !
SOAP Issues
I have a "Hello World" web service written in C# running on a win2003 server. From a Linux server I have PHP code which tries to execute the web service. The problem is that when I print the results of the function I get "Object id #2" instead of "Hello World".

But if I inspect the response with _getLastResponse, the Hello World message is inside the XML. What Am I missing? Here is the code and the results afterwards. PHP Code:

View Replies !
PHP SOAP Toolkits
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 following packages?

View Replies !
Disabling SOAP PHP 5.2
How do I go about disabling SOAP extensions  with php 5.2? Is there a simple edit to php.ini? I am trying to use NuSoap and am getting a conflict problem.

View Replies !
PHP Soap Extension
i've been having problems mapping a php class to a complex type, how do you bind the attribute of a xsd to a specific php variable.

View Replies !
Soap W/ Classes
I have a SoapServer setup to use a class I wrote. The class has a constructor and I am not sure how to, on the Client side, initalize the SoapClient with the classes parameters.

so.

if SoapServer uses...
class Test {

private $param;

public function __construct($param) {
$this->param = $param;
}
}

... the on the client side do a SoapClient but passing $param along with it.

Anyone know?

View Replies !
Proxy With PHP & SOAP
I'm trying to use PHP to proxy a SOAP envelope. I tried various things like:

1) http://www.practicalwebmaster.com/entries/using-php-to-proxy-remote-url-ajax-requests.html

2) http://www.troywolf.com/articles/

They sort of work, but neither is able to send a SOAP envelope.

Here is a snippet of the code I would use:


    xmlDoc = // get an XMLHttpRequest object appropriate for browser type
    if(xmlDoc.overrideMimeType) xmlDoc.overrideMimeType('text/xml');

    url = 'http://services.xmethods.net/soap'; // url to proxy
    url = 'proxy.php?proxy_url=' + escape(url);  // assume proxy is in current directory
    xmlDoc.open('POST', url, true);
    xmlDoc.setRequestHeader('Content-Type', 'text/xml');
    xmlDoc.setRequestHeader('SOAPAction', '""');
    xmlDoc.onreadystatechange = getResults;
    req.send(
    // Soap Envelope
   );

Anyone have any ideas?

View Replies !
Configure SOAP
how to congfigure PHP with SOAP. I try to install pear soap but at time of installation it gives error that dependenices not fount and when i run this command pear install -a http://pear.php.net/get/soap-0.8.0.tgz . it runs and downloaded some dependencies but at time of Net_DIME package it terminates and says that this package is not stable so can't install.

View Replies !
SOAP Problem
I am trying to delete document on eXist Db via soap driver. Using removeDocument($path). But nothing is happened! No errors on log, no exceptions ! I have no problems to store documents, create collection, remove collection, remove user, get resources, move Document But when I am using removeDocument() function to delete arbitrary resource, it is there again. I don`t know where is my mistake !! All seems like removeCollection($path), removeUser() …. I am using eXist newcore version, php, XML-DB.Soap driver.

View Replies !
Soap Web Services
I'm trying to call a function from my webservice that I know works. I've called all the functions through php4 using nusoap and everything's good. I'm not sure of the syntax in php5 though. When I call my createUser web service function with an array of the users details I get this exception: Code:

View Replies !
Soap And Entities
Does anyone know if php by automatically does htmlentities() on soap objects?

I got the following function that creates a soap object:

function insertNote(){
$soap = new SoapClient ("http://you.com/note.asmx?WSDL",
array ('exceptions' => 0,
'encoding' => 'UTF-8',
'trace' => 1));
$result = $soap->insertNote (array ('id' => $in['id'],
'noteText' => $in['noteText']));
}

The $in variable contains:

Array
(
[id] => 21
[noteText] => Me & you
)


But the in the soap-object the '&' has been replaced with '&amp;':

Code:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="http://me.com/">
<SOAP-ENV:Body>
<ns1:InsertNote noteText="Me &amp; you"/>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Does anyone know why?

View Replies !
Soap Client
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 anything about it?

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved