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.





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 Complete Forum Thread with Replies

Related Forum Messages:
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 !
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 !
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 & Php5
I have some code that works in php4, and uses nusoap.php. If I remove the include to nusoap for php5, I get errors. Do I need to do something other than removing the include? Here's the code:

<?php

  /* display SOAP errors */
  function showErrors( $soapclient, $results ) {
    echo 'Request: <xmp>'.$soapclient->request.'</xmp>';
    echo 'Response: <xmp>'.$soapclient->response.'</xmp>';
    echo 'Debug log: <pre>'.$soapclient->debug_str.'</pre>';
    echo $results['faultstring'];
  }

  //require_once('./nusoap/nusoap.php'); //php5 is supposed to have its own soap, so I shouldn't need this.
  $soapclient = new soapclient('http://www.biblegateway.com/usage/votd/');
..............................

View Replies !
NuSOAP, PEAR::SOAP
I'm having some difficulty here and I need some advice.

I recently spent some time with NuSOAP and calling a Microsoft .NET web services...after some hacking of the code of the xml generating part of NuSOAP, I was able to send a 'suitable' xml enclosed soap payload and get a response back.

However when NuSOAP was calling the xml_parse function, I was losing a value from the original payload that was coming back from the web service. I have no idea why, or how, but I could look at the raw xml being returned from the webservice and after xml_parse, this value would dissapear and become a different value in the resulting array. This would only happen when the outgoing payload to the web service was a certain value. Other than that it would parse the values correctly and give me back what was expected.

Anyway, it was quite frustrating...I've been looking at the PEAR::SOAP classes and wondering if I should use them...they aren't installed on my host and I tried just placing them in a folder to simulate them being installed and then modified my include path to account for that. However I've been getting some errors...

Finally I will need to use https when/if I get http working at all.

Have any of you had similar frustrations/anxieties/screaming fits?? Any advice/tranquilizers graciously accepted.

View Replies !
How To Configure Pear/soap
on a win 2k server
apparantly it is saying i dont have it. or it cant find it.
im using mySQL 4.1
php 4.3.x
apache 3.0.53

im new to php and am doing some tutorials, but when i run the sripts it
tells mea it can not run pear/soap, because it can not be found.the book im
learning form does not tell me how to install or configure this extension.
so now im looking for help.

is it possible? if so how do i config it with php 4.3.x and apache 2.0.53 ?
followed a tutorial and ran my script only to find out that i dont have 1)
it installed 2) not configured.

View Replies !
Pear SOAP Oddity
I'm having some trouble with PEAR soap and a response from a webservice
when the number of results is one or more than one.

Versions are PHP 4.4.2-1build1, PEAR-1.4.6, SOAP-0.9.4 running in
Linux (Ubuntu Dapper)

When we have multiple items in the result, all goes well, and I can use
the result straight away (I do some JSON translation afterwards, but
that's beyond the scope of my question).

Multiple result:

Actual XML sent back from webservice (sniffed off the connection):

[snipped headers]

<GetChildCategoriesResult>
<item>
<CategoryId>1</CategoryId>
<Name>Cultura</Name>
<ParentCategoryId>0</ParentCategoryId>
</item>
<item>
<CategoryId>2</CategoryId>
<Name>Autom..veis</Name>
<ParentCategoryId>0</ParentCategoryId>
</item>
</GetChildCategoriesResult>
[snipped trailing markup]

How PEAR::SOAP translates:

array(2) {
[0]=>
object(stdClass)(3) {
["CategoryId"]=>
string(1) "1"
["Name"]=>
string(7) "Cultura"
["ParentCategoryId"]=>
string(1) "0"
}
[1]=>
object(stdClass)(3) {
["CategoryId"]=>
string(1) "2"
["Name"]=>
string(11) "Automóveis"
["ParentCategoryId"]=>
string(1) "0"
}
}

View Replies !
PEAR SOAP Installed
i have installed PHP,MYSQL and PEAR on a win2003 box with iis6. Everything seems to work fine, but pear. My pear files are seen, as if i uninstall a package, i see the PHP file not found errors, but when i try to use a created web service, i receive blank pages where SOAP output should be. I created a PHP web service, that works fine online, i have it on my webhost.

This service takes search parameters and finds Properties in a property database. I have moved this to an internal server, freshly formatted and setup for the job. When i enter search parameters, i am sent to the output page, but the page is blank, and Internet Explorer says that processing is complete on that page('done' message, no progress bar etc). i am currently at a loss, i have tried reinstalling PEAR from scratch, to no effect, and need this working this week! I have been searching the PEAR site, and other forums, and am not getting any answers.

View Replies !
PEAR::SOAP Still Doesn't Work
I've tried so many examples now and the only one that works, is that amazon
example, which is too complex for me to understand. Code:

View Replies !
PEAR SOAP Question
I have a (hopefully) simple question about the PEAR SOAP class. I want to use the SOAP 'serialize' function, but I cant seem to get it to work.

I've included the SOAP/Value.php file, but when I call $soap->serialize($something) I get a "Call to undefined function: serialize()" error.

View Replies !
Pear SOAP Client
I use Pear SOAP library. I have WEB service:
=====================
<complexType name="Order">
<sequence>
........
<element maxOccurs="unbounded" name="payment" type="tns1:PaymentType"/>
........
</sequence>
</complexType>
=====================

I need to put this complex type as parameter. How I can build parameters for calling service? If I build parameter "payment" as array with elements then I receive error from service: "No deserializer defined for array type PaymentType".

View Replies !
PEAR::SOAP SOAP_Value
Does anyone have any good examples of using SOAP_Value with PEAR::SOAP? I'm trying to embed some binary data (a jpg file) into a SOAP message and I'm not sure how to go about it. I didn't have any luck setting the type to 'hexBinary' in the SOAP_Value() constructor.

View Replies !
Any PEAR:SOAP Expert Here ?
I m using this successfuly while connecting to web services on HTTP but on HTTPS it does not connect.

View Replies !
Compile Pear & SOAP Into Php 4.3.10?
what we need to compile Pear and SOAP with php 4.3.x? We're trying to get a cart working with the Paypal Pro API, and have hit a brick wall... php 5 doesn't work with the cart, but still requires Pear and SOAP to be compiled with a 4.x ver of php...

View Replies !
SOAP Exceptions With Php/pear
I have php4 and I want to catch soap exceptions. is_soap_fault and Try{}catch(SOAPFault){} work only with php5. How do this?

View Replies !
PHP5 SOAP And Https
I have a problem with Soap class in PHP5. I'm trying to connect to
webservice (I have links, login, password etc.) Wsdl file, which the
soapclient takes from webservice address forces the communication
through https (section port in wsdl). Is this connect possible with
php5 soap class ? Mabye I must install other components (for example
nuSOAP) ?

In my simple example I obtained this message:

Notice: SoapClient::__doRequest() [function.--doRequest]: Unable to
find the wrapper "https" - did you forget to enable it when you
configured PHP? in f:wwwgxmlzapyt.php on line 12

Fatal error: Uncaught SoapFault exception: [HTTP] SSL support is not
available in this build in f:wwwgxmlzapyt.php:12 Stack trace: #0
[internal function]: SoapClient->__doRequest('<?xml version="...',
'https://ws....', 'http://webservi...', 1) #1
f:wwwgxmlzapyt.php(12): SoapClient->__call('SubmitXml', Array) #2
{main} thrown in f:wwwgxmlzapyt.php on line 12

View Replies !
Soap, Allposters And PHP5
I used to use a nusoap based script to grab stuff through Allposters webservices. I hadn't toyed with it since I upgraded to PHP5 and it's built in SOAP.

Rather than invent the wheel, I'm just wondering if anyone out there is successfully using SOAP, Allposters and PHP5. If so, could you post an example.

View Replies !
Enabling SOAP In PHP5
I am using PHP v5.1.1. It is the pre-compiled windows version. I have been having difficulty enabling SOAP. I have checked to make sure that php_soap.dll is in my "c:phpext" folder. To my php.ini file I have added:

extension=php_soap.dll

Also, to my php.ini file I have added the extensions directory: ; Directory in which the loadable extensions (modules) reside. extension_dir = "c:phpext" I have confirmed that SOAP is not enabled using the following:

<?
phpinfo();
?>

View Replies !
Php5 Soap And .net Web Service
I have problems when I try to send string as parameter to my .net web service in php.No problem at all if I use nusoap, but I failed by using php5 soap. Can anyone help..

I've got this msg :

Fatal error: Uncaught SoapFault exception: [soap:Server] Server was unable to process request. --> Object reference not set to an instance of an object. in c:InetpubwwwrootPHPprojectclientPHP.php:38 Stack trace: #0 [internal function]: SoapClient->__call('test', Array) #1 c:InetpubwwwrootPHPprojectclientPHP.php(38): SoapClient->test(Array) #2 {main} thrown in c:InetpubwwwrootPHPprojectclientPHP.php on line 38

this is my code: ....

View Replies !
PEAR SOAP And Global Variables
I am so frustrated with PEAR SOAP, I have it working, but it seems
when I include a file and in that file is a function with global
variables, those globals are not set. Anyone have ANY knowledge of
this?? Here is an example:

file: server.php

View Replies !
Pear::soap Proxy Server
I am creating soap "proxy", of sorts, to hide a fubar soap server implemented by some proprietary guys. The point of the proxy server is to provide a SOAP 1.1 interface with described by WSDL. So the interface methods will simply propogate the request and replies from the fubar soap server, with some conversion in between.

Here is where the problem is, when I create the source to hold both the interface soap server and the backend soap client in one php script on apache, the php interpreter starts complaining or failing. It seems to me that the php environment is messed up by having the server and client code declarations at one time in the current interpreter environment, probably by redefinitions or similar.

I tried moving the server and the client into different functions with the include statement within the functions, but that did not help. I tested the scripts separately and then they work nicely but if connected so as to run in the same interpreter it is messed up.

Does anybody have any ideas of how to solve this? Is there f.ex. anyway during the processing of a request one can separate out a new and independent environment to execute the subfunction? Is it possible to do a php shell to start the subfunction which then f.ex uses stdout to redirect output back to the caller? I would prefer a much cleaner solution, but then again, making a proxy to hide a damaged soap server is not really a clean solution either.

View Replies !
PHP5 SOAP Attributes (Redux)
I think something is not working as stated. According to the php.net site, the XML:

<foo bar="blah">12345</foo>

should be represented as:
array('foo' => array('_' => 12345, 'bar' => 'blah'));

or equivalently,

$something['foo'] = array('_' => 12345, 'bar' => 'blah');

If I feed this into PHP5 SOAP and then do a getLastRequest(), I get:

<ns1:foo>
<item>
<key>_</key>
<value>12345</value>
</item>
<item>
<key>bar</key>
<value>blah</key>
</item>
</ns1:foo>

Which to me says that it is treating the 'bar' as an element not an attribute.

Is the example on the php.net site wrong? Am I confused about something?

View Replies !
PEAR:SOAP -> NULL Values To C#-client?
I wrote a PEAR:SOAP webservice reading data out of a database and
returning it in form of a struct to a C#-client. The problem is, that
C# can't read NULL values for datatypes like INT, DOUBLE etc. When I
use the attribut "nil=true" for an element of the struct it works fine
with strings. In C# the string in the struct is also NULL. But INT,
DOUBLE etc are initialized with "0" by C#. How can I return NULL
values to the client? I thought about using the SqlTypes, because
these are able to get the value NULL.
But how can I implement these Types in my PEAR:SOAP webservice? Where
do I get such a schema? Or is there any other solution for this
problem?

View Replies !
PEAR::SOAP Class Variable Access
I've a problem with PHP5 + PEAR::SOAP. I Have the following 2 script that implements a simple web service:

The Server Code running on WinXP + PHP5 + Apache 2.x:
----------------------------------------------------

<?php
require_once('SOAP/Server.php');
require_once('SOAP/Disco.php');
class pearsoaptest .....

View Replies !
PEAR SOAP Pass Function Parameters
I'm very new to pear soap and would appreciate help calling a function on the java web service in order to get this working correctly.

The proxy code generation is as follows, (WSDL file at the bottom of this email)

class WebService_LDAPAuthGen_LDAPAuthGenSEIPort extends SOAP_Client {

function WebService_LDAPAuthGen_LDAPAuthGenSEIPort(
$path='http://solldap2:8080/LDAPAuthGen/LDAPAuthGen')
{
$this->SOAP_Client($path, 0); }

function &authenticate() {
$result = $this->call('authenticate', $v = null,
array('namespace' =>'urn:LDAPAuthGen/wsdl',
'soapaction' => '',
'style' => 'document',
'use' => 'literal'));
return $result;
}
}

So I try to call this via pear soap client e.g.

require 'SOAP/Client.php'

$param = array('String_1' => 'foo', 'String_2' => 'bar', 'String_3' => 'foo1', 'String_4' => 'bar2');

$wsdl = new ....

View Replies !
Enable Soap, Mysql PHP5 Windows Xp
I have tried to find a good ref. on how to enable soap and mysql in
PHP5 on windows xp but without luck.

Can any one take me through the process? I need to enable both soap and
mysql I'm not running apache.

I need to know how to recomplie my PHP5 on windows xp.

View Replies !
PHP5 + Soap Extension + WSDL Mode
I'm trying use a webservice with PHP5 soap extension in WSDL mode. I generated the php classes using wsdl2php. The problem is that 'auth' member of loginRequest (witch is a complex type) dosen't get serialized. The 'version' member witch is decimal is being serialized and sent to the server. I am doing something wrong ?

full source code, including generated php classes........

View Replies !
PHP5 SOAP :: Access And Utilize A Web Service
I'm trying to access and utilize a web service. A simplified snippet of the request I need to send looks like this:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<MethodName xmlns="http://www.example.com/">
<ClassName>
<MemberOne>string</MemberOne>
<MemberTwo>string</MemberTwo>
</ClassName>
</MethodName>
</soap:Body>
</soap:Envelope>

As seen above, the method expects an object type as parameter. The web service does not provide any means of fetching the class definition for this, so I tried the following:

$scli = new SoapClient('http://www.example.com/?WSDL', array('trace'=>1));
$scli->__soapCall('MethodName', array('ClassName' => array('MemberOne' => 'Somevalue', 'MemberTwo' => 'SomeOtherValue')));

This does not work, so I examine the request sent by PHP. For some reason, all that is sent is this:

<SOAP-ENV:Envelope>
<SOAP-ENV:Body>
<ns1:MethodName/>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Can anyone give me a hint on what I'm not doing right? I don't understand why the parameters aren't in my request? Or is this a problem with SoapClient->__getLastResponse()?

View Replies !
PHP5 SOAP Complex Data Types
I am having problems passing complex data types from a SOAP server constructed using the built-in PHP5 SOAP extension to a SOAP client using nusoap.php or PEAR::SOAP.

This is what the WSDL file looks like:

Code: .....

View Replies !
Calling A .NET Webservice PEAR::SOAP, Passing Parameters
I'm trying to call a webservice written in .NET that takes some parameters. I can get it working on a machine with php5 but when I try to call the function from machine using php4 and PEAR::SOAP I get no input values returned. Code:

View Replies !
Calling Pear SOAP Service From GSOAP Client
I'm having problem in calling Pear WS from gsoap ... problem is it is
always returning null from client.

my service returns an string ... but on client it always return null
(char*) Any one got xperience with such issue ?

View Replies !
Receiving An Array With Php5/soap From A Gsoap Server
So I have a gsoap server and a PHP soap client and I am trying to return a list (vector) of objects to the PHP client. However, the client seems to only store the last element of the array ... Any ideas on how to solve that?

$rs = $client->get( new SoapParam($request, "request") , new
SoapParam($response, "response" ) );
print_r($rs);

REQUEST: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:mgrin="urn:dmanager-internal"><SOAP-ENV:Body><mgrin:getResponse><response
xsi:type="SinglePair"><name>result</name><value>SUCCESS</value></response><response
xsi:type="SinglePair"><name>jobid</name><value>12345</value></response></mgrin:getResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

Array ( [response] => stdClass Object ( [name] => jobid [value] => 12345 ) )


View Replies !
PEAR::SOAP Installed, But Script Execution Just Stops On Include
i have PEAR::SOAP installed correctly (beta, all dependent packages are
installed). When i try out the following simple Script

<?php
print "Include is ... ";
include_once("SOAP/Server.php");
print " ok!";
?>

the Server only outputs "Include is...". The PEAR-Packages are
includable, i checked all server settings, nothing is wrong with the
apache/php config, so it must be another problem which i can't figure
out. The Server does not report any errors at all when executing the
test-script above. I have the same problem on my local machine (XAMPP
installation, using PHP4), so i think it's a problem with PEAR::SOAP
and not a server config.

Running on a linux machine with Apache 2 and PHP 4.3.8.

Installed packages:
===================
Package Version State
Archive_Tar 1.3.1 stable
Console_Getopt 1.2 stable
DB 1.7.6 stable
Date 1.4.5 stable
File 1.2.2 stable
HTTP_Request 1.3.0 stable
Log 1.9.0 stable
Mail 1.1.9 stable
Mail_Mime 1.3.1 stable
Net_DIME 0.3 beta
Net_Socket 1.0.6 stable
Net_URL 1.0.14 stable
PEAR 1.3.5 stable
SOAP 0.9.1 beta
XML_RPC 1.4.4 stable

View Replies !
Problem Receiving An Array With Php5/soap From A Gsoap Server
server and a PHP soap client and I am trying to
return a list (vector) of objects to the PHP client. However, the
client seems to only store the last element of the array ... Any ideas
on how to solve that?

$rs = $client->get( new SoapParam($request, "request") , new
SoapParam($response, "response" ) );
print_r($rs);

REQUEST: <?xml version="1.0" encoding="UTF-8"?<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:mgrin="urn:dmanager-internal"><SOAP-ENV:Body><mgrin:getResponse><response
xsi:type="SinglePair"><name>result</name><value>SUCCESS</value></response><response
xsi:type="SinglePair"><name>jobid</name><value>12345</value></response></mgrin:getResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

Array ( [response] =stdClass Object ( [name] =jobid [value] =>
12345 ) )

View Replies !
PEAR::SOAP - Server Returns Only "Object" As Answer
I am new to Web Services. Therefore I ve set up a PHP Installation on Windows
(PHP 4.3.2 and Apache 1.3.29). I have tested PHP alone and then installed
PEAR. Now I am stuck there (Before that, I had many problems with the
PHP-dlls)

I've set up several SOAP Testscripts that I found on WebSites and in PHP-Books
to get a PHP Client and a PHP Server communicate over Web Services
(using PEAR::SOAP). Code:

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 !
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 !

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