[PHP] Re: SOAP

2012-01-18 Thread Carlos Medina
Am 17.01.2012 11:55, schrieb DPRJ Sistemas (OK Cosméticos):
> Hello!
> 
>  
> 
> I am looking for some help on Web Services (SOAP) client.
> 
>  
> 
> Is there anyone here who has already worked with such client?
> 
>  
> 
> Thank you
> 
>  
> 
> Deleo
> 
> 
Yes Me

Regards

Carlos Medina

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] RE: SOAP connect error

2010-02-12 Thread Richard Quadling
On 11 February 2010 16:04, Eric Lommatsch  wrote:
>
>>Are you using wsdl? If so, does the WSDL file contain the information that
> the port to use for the requests is on port 8080?
>>
>>--
>>-
>>Richard Quadling
>>"Standing on the shoulders of some very clever giants!"
>>EE : http://www.experts-exchange.com/M_248814.html
>>EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
>>Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
>>ZOPA : http://uk.zopa.com/member/RQuadling
>
> First, I am sorry for not getting back to this yesterday. I had some other
> things come up.
>
> As far as I know this website is using WSDL. I know that one of the early
> issues I ran into in trying to get this to work was not having the wsdl.php
> file in the path.
>
> That having been said are you talking about the wsdl file on the server that
> is providing the service or are you talking about the wsdl file on the system
> hosting the webpage.
>
> I can get everything to work correctly when I am working from our internal
> development server. But when I attempt to put the file on the hosted site our
> clients would ultimately be using I am getting the connect error.
>
> I have compared the wsdl.php files on these two servers and neither of them
> have specific information about the port in them.
>
> Here is the code that I am using to connect to the webservice:
>
>        $webservices_uri =
> "http://xx.xx.xx.xx:8080/jasperserver/services/repository";;
>
> Here is the code where I am trying to connect:
>
>        function ws_checkUsername($username, $password)
>        {
>                $connection_params = array("user" => $username, "pass" =>
> $password);
>                $info = new SOAP_client($GLOBALS["webservices_uri"], false,
> false, $connection_params);
>
>                $op_xml = " operationName=\"list\"> uriString=\"\" isNew=\"false\">".
>                "";
>
>                $params = array("request" => $op_xml );
>                $response = $info->call("list",$params,array('namespace' =>
> $GLOBALS["namespace"]));
>
>                return $response;
>        }
>
> This is working when I use the IP address of the server behind the firewall,
> but when I try to use the address that is open through the firewall it is not
> connecting. I can connect to the external IP address by entering it into the
> browser and it does ask for the username and password.
>
> Thank you
>
> Eric H. Lommatsch
> Programmer
> 360 Business
> 2087 South Grant Street
> Denver, CO 80210
> Tel 303-777-8939 Ext 23
> Fax 888-282-9927
>
> er...@360b.com
>

Run this at the command line ...

php -r "echo file_get_contents('http://www.google.com');"

Do you get the google home page?

I suspect your browser is using a proxy, but your default gateway is
set to something different


There should only be 1 WSDL url. That is the URL of the WSDL file
associated with the service you are using.

It may be cached to a physical file.

Either way, it probably doesn't know that YOU are behind a firewall.

So. You need to proxy the calls.

You can use the default stream context.

Take a look at my user note on
http://www.php.net/manual/en/function.stream-context-get-default.php.
The site it relates to is probably dead now.

You may be able to assign the proxy details to the SOAPClient.

"For HTTP authentication, the login and password options can be used
to supply credentials. For making an HTTP connection through a proxy
server, the options proxy_host, proxy_port, proxy_login and
proxy_password are also available. For HTTPS client certificate
authentication use local_cert and passphrase options. An
authentication may be supplied in the authentication option. The
authentication method may be either SOAP_AUTHENTICATION_BASIC
(default) or SOAP_AUTHENTICATION_DIGEST."
(http://www.php.net/manual/en/soapclient.soapclient.php#soapclient.soapclient.parameters)


Does any of that help?

-- 
-
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] RE: SOAP connect error

2010-02-11 Thread Eric Lommatsch

>Are you using wsdl? If so, does the WSDL file contain the information that
the port to use for the requests is on port 8080?
>
>--
>-
>Richard Quadling
>"Standing on the shoulders of some very clever giants!"
>EE : http://www.experts-exchange.com/M_248814.html
>EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
>Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
>ZOPA : http://uk.zopa.com/member/RQuadling

First, I am sorry for not getting back to this yesterday. I had some other
things come up.

As far as I know this website is using WSDL. I know that one of the early
issues I ran into in trying to get this to work was not having the wsdl.php
file in the path.

That having been said are you talking about the wsdl file on the server that
is providing the service or are you talking about the wsdl file on the system
hosting the webpage. 

I can get everything to work correctly when I am working from our internal
development server. But when I attempt to put the file on the hosted site our
clients would ultimately be using I am getting the connect error. 

I have compared the wsdl.php files on these two servers and neither of them
have specific information about the port in them.

Here is the code that I am using to connect to the webservice:

$webservices_uri =
"http://xx.xx.xx.xx:8080/jasperserver/services/repository";;

Here is the code where I am trying to connect:

function ws_checkUsername($username, $password)
{
$connection_params = array("user" => $username, "pass" =>
$password);
$info = new SOAP_client($GLOBALS["webservices_uri"], false,
false, $connection_params);

$op_xml = "".
"";

$params = array("request" => $op_xml );
$response = $info->call("list",$params,array('namespace' =>
$GLOBALS["namespace"]));

return $response;
}

This is working when I use the IP address of the server behind the firewall,
but when I try to use the address that is open through the firewall it is not
connecting. I can connect to the external IP address by entering it into the
browser and it does ask for the username and password.

Thank you
 
Eric H. Lommatsch
Programmer
360 Business 
2087 South Grant Street
Denver, CO 80210
Tel 303-777-8939 Ext 23
Fax 888-282-9927
 
er...@360b.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] RE: SOAP connect error

2010-02-10 Thread Richard Quadling
On 9 February 2010 22:14, Eric Lommatsch  wrote:
>>-Original Message-
>>From: Shawn McKenzie [mailto:nos...@mckenzies.net]
>>Sent: Tuesday, February 09, 2010 3:07 PM
>>To: Eric Lommatsch
>>Cc: php-general@lists.php.net
>>Subject: Re: SOAP connect error
>>
>>Eric Lommatsch wrote:
>>> Hello,
>>>
>>> I am working with the SOAP package of PHP and I am trying make a
>>> connection from a hosted website to a server in our office.
>>>
>>> I can get to the server perfectly fine from within our office, but I
>>> cannot connect from the eternal site.
>>>
>>> I have checked and I am certain that the firewall for the server is open.
>>> When I attempt to use the login page that I have created for the
>>> website I am getting the following error message:
>>>
>>> Connect Error to XX.XX.XX.XXX:8080
>>>
>>> Where XX.XX.XX.XXX mask the actual ip address of the server. I have
>>> tried to interogate all the values that soap_fault documents that it
>>> can return and the only information I have been able to find beside
>>> the above message, which is the $errorstring, is that my $faultcode =
> "HTTP".
>>>
>>> The information that I am getting is very cryptic. if I include our ip
>>> address when I search I get no results. If I put in connect error
>>> :8080 I get millions of meaningless results.
>>>
>>> Can someone please help to figure out how to get more meaningful
>>> information from soap_fault for this problem so that I can figure out how
> to fix it.
>>>
>>> Thank you
>>>
>>> Eric H. Lommatsch
>>> Programmer
>>> 360 Business
>>> 2087 South Grant Street
>>> Denver, CO 80210
>>> Tel 303-777-8939 Ext 23
>>> Fax 888-282-9927
>>>
>>> er...@360b.com
>>>
>>>
>>
>>If you go home or to Starbucks can you get to http://XX.XX.XX.XXX:8080 ?
>> If not, then the external server can't either.  It could be a network
> firewall/proxy sever in your office, or any number of things.
>>
>>--
>>Thanks!
>>-Shawn
>>http://www.spidean.com
>
>
> I have connected to a clients computer that is remote from our office and I
> am able to get to http://XX.XX.XX.XXX:8080. I probably should have mentioned
> that when I try to get the webservice outside of the PHP site I am developing
> I can get into that just fine. It is just when I try to use the PHP SOAP
> client to access the webservice that I am getting the issue.
>
>
> Thank you
>
> Eric H. Lommatsch
> Programmer
> 360 Business
> 2087 South Grant Street
> Denver, CO 80210
> Tel 303-777-8939 Ext 23
> Fax 888-282-9927
>
> er...@360b.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Are you using wsdl? If so, does the WSDL file contain the information
that the port to use for the requests is on port 8080?

-- 
-
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] RE: SOAP connect error

2010-02-09 Thread Eric Lommatsch
>-Original Message-
>From: Shawn McKenzie [mailto:nos...@mckenzies.net] 
>Sent: Tuesday, February 09, 2010 3:07 PM
>To: Eric Lommatsch
>Cc: php-general@lists.php.net
>Subject: Re: SOAP connect error
>
>Eric Lommatsch wrote:
>> Hello,
>>  
>> I am working with the SOAP package of PHP and I am trying make a 
>> connection from a hosted website to a server in our office.
>>  
>> I can get to the server perfectly fine from within our office, but I 
>> cannot connect from the eternal site.
>>  
>> I have checked and I am certain that the firewall for the server is open.
>> When I attempt to use the login page that I have created for the 
>> website I am getting the following error message:
>>  
>> Connect Error to XX.XX.XX.XXX:8080
>>  
>> Where XX.XX.XX.XXX mask the actual ip address of the server. I have 
>> tried to interogate all the values that soap_fault documents that it 
>> can return and the only information I have been able to find beside 
>> the above message, which is the $errorstring, is that my $faultcode =
"HTTP".
>>  
>> The information that I am getting is very cryptic. if I include our ip 
>> address when I search I get no results. If I put in connect error 
>> :8080 I get millions of meaningless results.
>>  
>> Can someone please help to figure out how to get more meaningful 
>> information from soap_fault for this problem so that I can figure out how
to fix it.
>>  
>> Thank you
>>  
>> Eric H. Lommatsch
>> Programmer
>> 360 Business
>> 2087 South Grant Street
>> Denver, CO 80210
>> Tel 303-777-8939 Ext 23
>> Fax 888-282-9927
>>  
>> er...@360b.com
>>  
>> 
>
>If you go home or to Starbucks can you get to http://XX.XX.XX.XXX:8080 ?
> If not, then the external server can't either.  It could be a network
firewall/proxy sever in your office, or any number of things.
>
>--
>Thanks!
>-Shawn
>http://www.spidean.com


I have connected to a clients computer that is remote from our office and I
am able to get to http://XX.XX.XX.XXX:8080. I probably should have mentioned
that when I try to get the webservice outside of the PHP site I am developing
I can get into that just fine. It is just when I try to use the PHP SOAP
client to access the webservice that I am getting the issue.


Thank you
 
Eric H. Lommatsch
Programmer
360 Business 
2087 South Grant Street
Denver, CO 80210
Tel 303-777-8939 Ext 23
Fax 888-282-9927
 
er...@360b.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: SOAP connect error

2010-02-09 Thread Shawn McKenzie
Eric Lommatsch wrote:
> Hello,
>  
> I am working with the SOAP package of PHP and I am trying make a connection
> from a hosted website to a server in our office. 
>  
> I can get to the server perfectly fine from within our office, but I cannot
> connect from the eternal site.
>  
> I have checked and I am certain that the firewall for the server is open.
> When I attempt to use the login page that I have created for the website I am
> getting the following error message:
>  
> Connect Error to XX.XX.XX.XXX:8080
>  
> Where XX.XX.XX.XXX mask the actual ip address of the server. I have tried to
> interogate all the values that soap_fault documents that it can return and
> the only information I have been able to find beside the above message, which
> is the $errorstring, is that my $faultcode = "HTTP".
>  
> The information that I am getting is very cryptic. if I include our ip
> address when I search I get no results. If I put in connect error :8080 I get
> millions of meaningless results.
>  
> Can someone please help to figure out how to get more meaningful information
> from soap_fault for this problem so that I can figure out how to fix it.
>  
> Thank you
>  
> Eric H. Lommatsch
> Programmer
> 360 Business 
> 2087 South Grant Street
> Denver, CO 80210
> Tel 303-777-8939 Ext 23
> Fax 888-282-9927
>  
> er...@360b.com
>  
> 

If you go home or to Starbucks can you get to http://XX.XX.XX.XXX:8080 ?
 If not, then the external server can't either.  It could be a network
firewall/proxy sever in your office, or any number of things.

-- 
Thanks!
-Shawn
http://www.spidean.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: SOAP - return a list of items

2008-08-18 Thread Dan Joseph
On Sun, Aug 17, 2008 at 8:32 AM, Luke <[EMAIL PROTECTED]> wrote:

> why use soap for this? I just use a javascript array for this kind of
> thing...
>
> 2008/8/13 Dan Joseph <[EMAIL PROTECTED]>
>
> Maybe more info will help:
>>
>> Here is what I have so far for the WSDL...
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>> type="tns:ArrayOfgetQuoteHistoryResult" />
>>
>>
>>
>>
>>
>>> name="getQuoteHistoryResult" nillable="true"
>> type="tns:getQuoteHistoryResult" />
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> This validates fine in soapUI, and seems to work fine when the client
>> connects to it.
>>
>> The piece from PHP:
>>
>>$count = 0;
>>
>>while ( $data = $this->dbconn->fetchrow( $res ) )
>>{
>>foreach ( $data as $key => $value )
>>{
>>$quotes[$count][$key] = $value;
>>}
>>
>>$count++;
>>}
>>
>> return $quotes;
>>
>> This is the soap response:
>>
>> http://schemas.xmlsoap.org/soap/encoding/"; xmlns:SOAP-ENV="
>> http://schemas.xmlsoap.org/soap/envelope/";
>> xmlns:ns1="urn:ursquoteservice"
>> xmlns:ns2="urn:ursquote" xmlns:xsd="http://www.w3.org/2001/XMLSchema";
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:SOAP-ENC="
>> http://schemas.xmlsoap.org/soap/encoding/";>
>>   
>>  
>> 
>>  
>>   
>> 
>>
>> It seems like I am just missing something somewhere.
>>
>> Anyone able to help?
>>
>> --
>> -Dan Joseph
>>
>> www.canishosting.com - Plans start @ $1.99/month.
>>
>> "Build a man a fire, and he will be warm for the rest of the day.
>> Light a man on fire, and will be warm for the rest of his life."
>>
>
>
>
> --
> Luke Slater
>

I'm using SOAP because its a web service, in this situation, JavaScript
wouldn't be an option.

I did figure this all out.  The problem was in my WSDL.  I had to add [] to
the end of my responses that return an array list.  Example:





-- 
-Dan Joseph

www.canishosting.com - Plans start @ $1.99/month.

"Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm for the rest of his life."


Re: [PHP] Re: SOAP - return a list of items

2008-08-17 Thread Luke
why use soap for this? I just use a javascript array for this kind of
thing...

2008/8/13 Dan Joseph <[EMAIL PROTECTED]>

> Maybe more info will help:
>
> Here is what I have so far for the WSDL...
>
>
>
>
>
>
>
>
>
>
>
>
> type="tns:ArrayOfgetQuoteHistoryResult" />
>
>
>
>
>
> name="getQuoteHistoryResult" nillable="true"
> type="tns:getQuoteHistoryResult" />
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> This validates fine in soapUI, and seems to work fine when the client
> connects to it.
>
> The piece from PHP:
>
>$count = 0;
>
>while ( $data = $this->dbconn->fetchrow( $res ) )
>{
>foreach ( $data as $key => $value )
>{
>$quotes[$count][$key] = $value;
>}
>
>$count++;
>}
>
> return $quotes;
>
> This is the soap response:
>
> http://schemas.xmlsoap.org/soap/encoding/"; xmlns:SOAP-ENV="
> http://schemas.xmlsoap.org/soap/envelope/"; xmlns:ns1="urn:ursquoteservice"
> xmlns:ns2="urn:ursquote" xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:SOAP-ENC="
> http://schemas.xmlsoap.org/soap/encoding/";>
>   
>  
> 
>  
>   
> 
>
> It seems like I am just missing something somewhere.
>
> Anyone able to help?
>
> --
> -Dan Joseph
>
> www.canishosting.com - Plans start @ $1.99/month.
>
> "Build a man a fire, and he will be warm for the rest of the day.
> Light a man on fire, and will be warm for the rest of his life."
>



-- 
Luke Slater


[PHP] Re: SOAP - return a list of items

2008-08-13 Thread Dan Joseph
Maybe more info will help:

Here is what I have so far for the WSDL...




































This validates fine in soapUI, and seems to work fine when the client
connects to it.

The piece from PHP:

$count = 0;

while ( $data = $this->dbconn->fetchrow( $res ) )
{
foreach ( $data as $key => $value )
{
$quotes[$count][$key] = $value;
}

$count++;
}

return $quotes;

This is the soap response:

http://schemas.xmlsoap.org/soap/encoding/"; xmlns:SOAP-ENV="
http://schemas.xmlsoap.org/soap/envelope/"; xmlns:ns1="urn:ursquoteservice"
xmlns:ns2="urn:ursquote" xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:SOAP-ENC="
http://schemas.xmlsoap.org/soap/encoding/";>
   
  
 
  
   


It seems like I am just missing something somewhere.

Anyone able to help?

-- 
-Dan Joseph

www.canishosting.com - Plans start @ $1.99/month.

"Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm for the rest of his life."


[PHP] Re: SOAP Server in PHP4

2008-03-19 Thread Eric Gorr
> > Looks like I will be unable to use PHP5 to do a SOAP server. I  
believe

> > it was possible to do such a thing in PHP4, but perhaps not as
> > cleanly.
>
>
> is this because you arent able to use php5 in your current situation,

Yes.

> because php can do soap servers in php5.

I know...I have one working in php5 now.

> > Unfortunately, I am unable to locate the appropriate
> > documentation on php.net for some reason...perhaps I am just blind.
>
>
> there was no native support for soap w/ php4.

Thanks.

> i dont even know if nusoap offered this,

Apparently, it does.

http://www.scottnichol.com/nusoapprogwsdl.htm



[PHP] Re: [SOAP] potential fix for bug 42637

2007-10-05 Thread Brian A. Seklecki
On Mon, 2007-10-01 at 11:58 -0400, Bill Moran wrote:
> I posted this to internals@ on Friday and haven't heard anything.
> 

Hi Bill!

This patch is *great*.  In fact, I'll take two!  It's a steal!  I was
running into the same problem and your patch is a life saver! 

Free beer for Bill in the future!

Hopefully PHP 5.2.5 will be released soon and will include this fix!?


One would think that PHP would have automated regression testing running
on a build farm somewhere that would find a bug like this!

Did you see the CVS changelog between 1.106 and 1.107?  Its flagged as
as "MFB".  What's that mean, then? "Merge from branch"?  "More
functionality breakage?"

I personally prefer the NetBSD CVS commit message policy: 

- Explain in detail what your CVS commit changes
- Why you did it
- What it could break
- What trouble tickets/problem reports are related to
- What release engineering branches are affected?
- Who peer-reviewed your change and approved your commit.

Otherwise they'll just cane you.

~BAS

> I believe the fix I posted to this bug fixes it.  At least, changing
> line 921 makes the problem go away in our testing environment.
> 
> Anyone available to have a look at this?
> 
> http://bugs.php.net/bug.php?id=42637
> 
> -- 
> Bill Moran
> Collaborative Fusion Inc.
> http://people.collaborativefusion.com/~wmoran/
> 
> [EMAIL PROTECTED]
> Phone: 412-422-3463x4023

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: SOAP: xsd:choice maxOccurs=unbounded, and element order

2007-05-24 Thread Caroline Maynard

Simon Detheridge wrote:


Incidentally, the full-blown (and rather complicated I'm afraid) 
schema/wsdl for what I'm *actually* trying to do is at 
http://www.widgit.com/cml/symgate.wsdl if that helps.


404

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: [SOAP] problems with SOAP-PHP5 and heritage

2006-11-09 Thread Ronaldo Reis Junior
Em Quarta 08 Novembro 2006 00:48, Adam Ashley escreveu:
> On Tue, 7 Nov 2006 10:06:28 -0200, Ronaldo Reis Junior
>
> <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I'm making a webservice using SOAP-PHP5. It working fine. But when I use
> > a method in a class that use a heritage, it fails. The class wrok fine
> > out of the webservice, but dont work on webservice.
>
>  From the look of the files you attached they appear to be part of the
> client yes?
>
> If so you're looking in the wrong spot according to that error message
> the server did not generate a response. if you are using PHP5 SOAP it
> often means a parse or fatal error server side.
>
> Also what php version you using?
>
> Adam Ashley

Hi,

I try to make a more detailed example of the problem.

In attached file has a complete simple example.

./ServerTeste
./ServerTeste/classes
./ServerTeste/classes/Personnel.php
./ServerTeste/classes/User.php
./ServerTeste/wsdl
./ServerTeste/wsdl/WSDL_Gen.php
./ServerTeste/wsdl/generate.php
./ServerTeste/wsdl/User.wsdl
./ServerTeste/personnel.php
./ServerTeste/user.php
./teste.php
./User.wsdl

To make it work just copy to /var/www or other path. Change the permission of 
files to apache users write files. Change the line 10 from 
file ./ServerTeste/wsdl/generate.php to point to your webserver and path. 
Execute this file and copy the new ./ServerTeste/wsdl/User.wsdl 
to ./User.wsdl. Now point yout browser to 
http://youraddress/yourpath/teste.php.

You see the OK, the soap work. 

The problem is with this file: ./ServerTeste/classes/User.php

This is the code that work (without inheritance):



But, when I active the inheritance:



I received this error:

SoapFault exception: [Client] looks like we got no XML document 
in /var/www/bioma/WSTest/teste.php:5 Stack trace: #0 [internal function]: 
SoapClient->__call('checklogin', Array) 
#1 /var/www/bioma/WSTest/teste.php(5): SoapClient->checklogin('c', 'c') #2 
{main}

I dont find what is the problem? It is with inheritance?

Thanks for all explanations.

Inte
Ronaldo
ps. my attach file is blocked by server, I can send it in private
pss. my e-mail is going do the list? Please, reply if yes.
--
> Prof. Ronaldo Reis Júnior
|  .''`. UNIMONTES/Depto. Biologia Geral/Lab. Ecologia Evolutiva
| : :'  : Campus Universitário Prof. Darcy Ribeiro, Vila Mauricéia
| `. `'` CP: 126, CEP: 39401-089, Montes Claros - MG - Brasil
|   `- Fone: (38) 3229-8190 | [EMAIL PROTECTED]
| ICQ#: 5692561 | LinuxUser#: 205366

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: [SOAP] problems with SOAP-PHP5 and heritage

2006-11-08 Thread Ronaldo Reis Junior
Em Quarta 08 Novembro 2006 00:48, Adam Ashley escreveu:
> On Tue, 7 Nov 2006 10:06:28 -0200, Ronaldo Reis Junior
>
> <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I'm making a webservice using SOAP-PHP5. It working fine. But when I use
> > a method in a class that use a heritage, it fails. The class wrok fine
> > out of the webservice, but dont work on webservice.
>
>  From the look of the files you attached they appear to be part of the
> client yes?
>
> If so you're looking in the wrong spot according to that error message
> the server did not generate a response. if you are using PHP5 SOAP it
> often means a parse or fatal error server side.
>
> Also what php version you using?
>
> Adam Ashley

Hi,

I try to make a more detailed example of the problem.

In attached file has a complete simple example.

./ServerTeste
./ServerTeste/classes
./ServerTeste/classes/Personnel.php
./ServerTeste/classes/User.php
./ServerTeste/wsdl
./ServerTeste/wsdl/WSDL_Gen.php
./ServerTeste/wsdl/generate.php
./ServerTeste/wsdl/User.wsdl
./ServerTeste/personnel.php
./ServerTeste/user.php
./teste.php
./User.wsdl

To make it work just copy to /var/www or other path. Change the permission of 
files to apache users write files. Change the line 10 from 
file ./ServerTeste/wsdl/generate.php to point to your webserver and path. 
Execute this file and copy the new ./ServerTeste/wsdl/User.wsdl 
to ./User.wsdl. Now point yout browser to 
http://youraddress/yourpath/teste.php.

You see the OK, the soap work. 

The problem is with this file: ./ServerTeste/classes/User.php

This is the code that work (without inheritance):



But, when I active the inheritance:



I received this error:

SoapFault exception: [Client] looks like we got no XML document 
in /var/www/bioma/WSTest/teste.php:5 Stack trace: #0 [internal function]: 
SoapClient->__call('checklogin', Array) 
#1 /var/www/bioma/WSTest/teste.php(5): SoapClient->checklogin('c', 'c') #2 
{main}

I dont find what is the problem? It is with inheritance?

Thanks for all explanations.

Inte
Ronaldo
ps. my attach file is blocked by server, I can send it in private
--
> Prof. Ronaldo Reis Júnior
|  .''`. UNIMONTES/Depto. Biologia Geral/Lab. Ecologia Evolutiva
| : :'  : Campus Universitário Prof. Darcy Ribeiro, Vila Mauricéia
| `. `'` CP: 126, CEP: 39401-089, Montes Claros - MG - Brasil
|   `- Fone: (38) 3229-8190 | [EMAIL PROTECTED]
| ICQ#: 5692561 | LinuxUser#: 205366

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: SOAP and PHP

2005-11-17 Thread James Benson



Petr Smith wrote:

Torgny Bjers wrote:


Angelo Zanetti wrote:



Hi guys.

I've googled but found so many pages that I'm not sure what to use.

I want to use PHP to make use of SOAP.

I've found:
-nuSoap
-libxml(2)
-php-soap
-and others which seemed less important.

Can you recommend which one to use? and which one is the most supported.
Also if I've missed some that you feel I should know about please let
me know.
Thanks in advance.

Angelo





Not sure, but there's already a couple of relevant classes in PEAR:
http://pear.php.net/search.php?q=soap&in=packages&x=0&y=0

A hot tip is to always search in the packages there. :)
http://pear.php.net/packages.php

Warm Regards,
Torgny



Who uses PEAR? Mess of old unsupported and undocumented libraries which 
only their authors (maybe) can use?





LOL, what does your code look like huh?

I use pear when documentation is available or API docs are easily 
understood.


DB, Mime_Mail, HTTP_REQUEST are a few Ive used and still do, your 
obviously not experienced enough to read and reuse others code




I would recommend PHP5 SOAP extension, based on libxml2. It works 
without problems and without messing with PEAR.


You can start with this tutorial: 
http://www-128.ibm.com/developerworks/library/os-phpws/?ca=dgr-lnxw06PHP5soap 



Petr


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: SOAP and PHP

2005-11-16 Thread Paul Waring
On Wed, Nov 16, 2005 at 12:40:21PM +0100, Petr Smith wrote:
> Who uses PEAR? Mess of old unsupported and undocumented libraries which 
> only their authors (maybe) can use?

I use PEAR for a few things, such as database abstraction. I admit that
a lot of the less popular modules haven't been updated/documented in a
long time though, which is a shame.

Paul

-- 
Rogue Tory
http://www.roguetory.org.uk

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: SOAP and PHP

2005-11-16 Thread Petr Smith

Torgny Bjers wrote:

Angelo Zanetti wrote:



Hi guys.

I've googled but found so many pages that I'm not sure what to use.

I want to use PHP to make use of SOAP.

I've found:
-nuSoap
-libxml(2)
-php-soap
-and others which seemed less important.

Can you recommend which one to use? and which one is the most supported.
Also if I've missed some that you feel I should know about please let
me know.
Thanks in advance.

Angelo




Not sure, but there's already a couple of relevant classes in PEAR:
http://pear.php.net/search.php?q=soap&in=packages&x=0&y=0

A hot tip is to always search in the packages there. :)
http://pear.php.net/packages.php

Warm Regards,
Torgny



Who uses PEAR? Mess of old unsupported and undocumented libraries which 
only their authors (maybe) can use?


I would recommend PHP5 SOAP extension, based on libxml2. It works 
without problems and without messing with PEAR.


You can start with this tutorial: 
http://www-128.ibm.com/developerworks/library/os-phpws/?ca=dgr-lnxw06PHP5soap


Petr

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: SOAP w/PHP 4

2004-10-31 Thread Ben Ramsey
Dan Joseph wrote:
Does PHP 4 support SOAP, or does something have to be added to it??
I know I've already given you some pointers on this, and hopefully 
you're on your way to playing with PHP and SOAP, but I noticed a 
potentially helpful article in the current issue of PHP Magazine.

It's by Adam Trachtenberg and entitled "Talking to eBay with PHP & SOAP."
Unfortunately, it's not available on-line, but you may be able to find a 
copy in a bookstore or order it from the PHP Magazine Web site.


--
Regards,
Ben Ramsey
http://benramsey.com
---
Atlanta PHP - http://www.atlphp.org/
The Southeast's premier PHP community.
---
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: SOAP w/PHP 4

2004-10-29 Thread Ben Ramsey
Dan Joseph wrote:
Ahh ok.  I actually thought about PEAR, but I don't think I have the
option to install it on our web server I'm working with.
If you need to, you can just download the appropriate PEAR packages and 
use the classes without needing to "install" anything. It's definitely 
easier just to use the PEAR installer, but you can also just download 
the packages and put them in a place where your application can find 
them. Be sure to download the package dependencies (and their 
dependencies), too, and make sure that the packages can find each other, 
as well. (The dependencies are listed on the package download page.)

It's a bit of a pain to do all that, but if you can't use the PEAR 
installer, it's a way around it. :-)

--
Regards,
Ben Ramsey
http://benramsey.com
---
Atlanta PHP - http://www.atlphp.org/
The Southeast's premier PHP community.
---
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: SOAP w/PHP 4

2004-10-29 Thread Dan Joseph
> Check out these functions, which are listed as "experimental":
> 
> Or this PEAR package, which is still in "beta" stage:
> 

Ahh ok.  I actually thought about PEAR, but I don't think I have the
option to install it on our web server I'm working with.  I'll look at
the experimental ones.  I'll also investigate Pear, I've heard good
things about it on this list.  Heck, maybe I'll just see if we can
upgrade to PHP 5.

-Dan Joseph

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: SOAP w/PHP 4

2004-10-29 Thread Ben Ramsey
Dan Joseph wrote:
Does PHP 4 support SOAP, or does something have to be added to it??
Check out these functions, which are listed as "experimental":

Or this PEAR package, which is still in "beta" stage:

--
Regards,
Ben Ramsey
http://benramsey.com
---
Atlanta PHP - http://www.atlphp.org/
The Southeast's premier PHP community.
---
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: [SOAP] web services

2003-03-28 Thread Mark 'Kamikaze' Hughes
Fri, Mar 21, 2003 at 05:23:10PM -0500 in <[EMAIL PROTECTED]>,
Bill Kearney <[EMAIL PROTECTED]> spake:
>Unless, of course, you need real text encoding.
>XML-RPC *only* supports USASCII.  No unicode, not even ISO-8859-1.  And it's
>spec author actively fights /against/ improving this situation.

  And that's just a complete deal-breaker, because Cthulhu knows it's so
hard to urlencode text if you're trying to send non-ASCII characters in
XML-RPC.

  Dave probably should have made it Unicode from the start, or made a
new spec supporting it, no question.  But he hasn't, because he didn't
want to fragment the market, it works fine for 99% of the applications,
and the easy way around the problem makes it unlikely that he'll ever
need to release a new spec.

-- 
 http://kuoi.asui.uidaho.edu/~kamikaze/";> Mark Hughes 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: [SOAP] web services

2003-03-22 Thread Bill Kearney
Unless, of course, you need real text encoding.

XML-RPC *only* supports USASCII.  No unicode, not even ISO-8859-1.  And it's
spec author actively fights /against/ improving this situation.

-Bill Kearney

"Tony Bibbs" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> That seems network intensive to me.  Offering web services for some basic
> tasks makes sense but not making an entire application that does all
> functionality over the web will be slow and impractical.
>
> Also, consider XML-RPC.  Some people insist on hammering a nail with a
> sledgehammer (soap) when a XML-RPC implementation (the hammer) is better
> suited.
>
> That said, I use both raw XML, XML-RPC and SOAP for various tasks.
>
> It doesn't have to be all or the other (not that you implied that)...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: [SOAP] web services

2003-03-20 Thread Tony Bibbs
That seems network intensive to me.  Offering web services for some basic 
tasks makes sense but not making an entire application that does all 
functionality over the web will be slow and impractical.

Also, consider XML-RPC.  Some people insist on hammering a nail with a 
sledgehammer (soap) when a XML-RPC implementation (the hammer) is better 
suited.

That said, I use both raw XML, XML-RPC and SOAP for various tasks.

It doesn't have to be all or the other (not that you implied that)...

--Tony

 On Fri, 21 Mar 
2003, Merlin wrote:

> Hi everybody,
> 
> I am currently trying to understand how to place content on a different site
> without giving away my code. SOAP seems to be the solution. I am absolutly
> new to web services. What I did understand so far is that it is basicly
> pritty simple to transfer some data like a currency exchange rate over the
> web service. But how about a complete web portal? Connected to the same DB,
> the php files hosted on my server, but the application served by a different
> server. Like co branding the portal. Is this possible as well?
> 
> Maybe someone can point me into the right direction.
> 
> Thanx a lot,
> 
> Merlin
> 
> 
> 
> 

-- 
Tony Bibbs  "I guess you have to remember that those who don't
[EMAIL PROTECTED]  hunt or fish often see those of us who do as  
harmlessly strange and sort of amusing. When you  
think about it, that might be a fair assessment." 
--Unknown



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] RE: [SOAP] web services

2003-03-20 Thread Paul Miller
You could also check into a RSS implementation. Take the standardized
approach to XML-RPC.

http://backend.userland.com/rss

- Paul

-Original Message-
From: Tony Bibbs [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 4:23 PM
To: Merlin
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [SOAP] web services


That seems network intensive to me.  Offering web services for some basic
tasks makes sense but not making an entire application that does all
functionality over the web will be slow and impractical.

Also, consider XML-RPC.  Some people insist on hammering a nail with a
sledgehammer (soap) when a XML-RPC implementation (the hammer) is better
suited.

That said, I use both raw XML, XML-RPC and SOAP for various tasks.

It doesn't have to be all or the other (not that you implied that)...

--Tony

 On Fri, 21 Mar
2003, Merlin wrote:

> Hi everybody,
>
> I am currently trying to understand how to place content on a different
site
> without giving away my code. SOAP seems to be the solution. I am absolutly
> new to web services. What I did understand so far is that it is basicly
> pritty simple to transfer some data like a currency exchange rate over the
> web service. But how about a complete web portal? Connected to the same
DB,
> the php files hosted on my server, but the application served by a
different
> server. Like co branding the portal. Is this possible as well?
>
> Maybe someone can point me into the right direction.
>
> Thanx a lot,
>
> Merlin
>
>
>
>

--
Tony Bibbs  "I guess you have to remember that those who don't
[EMAIL PROTECTED]  hunt or fish often see those of us who do as
harmlessly strange and sort of amusing. When you
think about it, that might be a fair assessment."
--Unknown



--
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: SOAP

2003-03-11 Thread Alexandru COSTIN
Hello,
There is a way, but you have to use our free platform Krysalis to do this
this.

Read
ftp://www.interakt.ro/pub/Krysalis/Professional%20web%20services%20with%20Kr
ysalis.pdf for more details
(Creating web services with Krysalis - WROX online chapter in Professional
PHP web services)

also check http://www.interakt.ro/products/Krysalis/

Alexandru


--
Alexandru COSTIN
Chief Operating Officer
http://www.interakt.ro/
+4021 411 2610
"Darren Young" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Is there any way to act as a SOAP client with PHP other than with pear?
>
> Thx.
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: [SOAP] Re: soap post and http 1.1 100 continue

2003-01-25 Thread Danny Shepherd

- Original Message -
From: "Dominik Wittenbeck" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 25, 2003 3:28 PM
Subject: [SOAP] Re: soap post and http 1.1 100 continue


> Yep, know that one,
>
> Why it does happen:
> although the HTTP 1.1 spec states that a HTTP 100 SHOULD NOT (or was it
MUST
> NOT ;-) to the client, unless it requires it by a specific header, IIS
does
> it with webservices and thereby about any that are published and
maintained
> with .NET ;-)

Not quite right :

An origin server SHOULD NOT send a 100 (Continue) response if the request
message does not include an Expect request-header field with the
"100-continue" expectation, and MUST NOT send a 100 (Continue) response if
such a request comes from an HTTP/1.0 (or earlier) client. There is an
exception to this rule: for compatibility with RFC 2068, a server MAY send a
100 (Continue) status in response to an HTTP/1.1 PUT or POST request that
does not include an Expect request-header field with the "100-continue"
expectation. This exception, the purpose of which is to minimize any client
processing delays associated with an undeclared wait for 100 (Continue)
status, applies only to HTTP/1.1 requests, and not to requests with any
other HTTP-version value.

> Solution:
> A HTTP 100 basically states: "ok I am ready for your content now". You
have
> probably submitted your content already... resend it, but the content
only,
> without the \r\n\r\n mark that separates headers from payload with HTTP.
> To serve a clean solution you should however go ahead and implement a
> listener that tries to hear a HTTP 100. With PHP this is kind of tiresome.
> In my implementation I also just resend the payload ;-)

A HTTP 100 basically states "ok based on your headers I won't reject your
body data, so send it now" - handy for services which need to check specific
headers. Imagine if the client sent 5MBs of data only to have it knocked
back because an authorization header wasn't present. :-)

I suppose a better solution would be to use the 100-Continue properly (i.e.
send headers + with an expect header and no body) or send HTTP/1.0 requests.

HTH

Danny.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: SOAP status

2002-02-25 Thread Henrik Hansen

[EMAIL PROTECTED] (Robert Mena) wrote:

 > Hi,
>
 > I was wondering if anyone has developed web services
 > using SOAP with php.  I'd like to use it in a future
 > project but was wondering which  "tools" (classes,
 > exemples) do we have and how stable are they.

I think something is cooking in the PEAR project, maybe ask on pear-general?

-- 
Henrik Hansen

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: SOAP Tool Kit for PHP | Solved | PHP-Tomcat-Apache HOWTO

2001-10-02 Thread Rasmus Lerdorf

Thanks for the step-by-step.  I am sure it will come in handy to people.
Now if only this fancy system of yours could find me a cool job...  ;)

-Rasmus

> A bit of background. I work at a company that has a web-based staffing
> software (jobs, candidates, you get the idea). We are about 5 developers
> (close to 15 w/ all other projects). Jobs and candidates are a perfect
> example of where XML and web-services are applicable. Use our software and
> post your job to monster, or any staffing agency w/ a compliant web service
> listener. Later receive a candiate response via the same protocol (defined
> by XML.org or whomever).
>
> Anyway, I figured out an apache configuration that allows us to use the ease
> and speed of PHP and the power of java (all the SOAP tool kits from IBM,
> etc). Here is the apache conf.
>
>
> PHP, Tomcat, Apache HOWTO
> -
>
> (assume jdk1.3.1 installed under /usr/java/) This was done on RH7.1
>
> tomcat-3.2.3-1.noarch.rpm
> jakarta-tomcat-3.2.3-src.tar.gz
> apache_1.3.19.tar.gz
> php-4.0.6.tar.gz
>
> Untar these packages within the same dir. I use /usr/src/. Install the rpm
>
> vi /etc/rc.d/init.d/tomcat
> (make it look something like this)
> export
> PATH=$PATH:/usr/java/jdk1.3.1_01/bin:/usr/java/jdk1.3.1_01/jre/bin
> export JAVA_HOME=/usr/java/jdk1.3.1_01
> export TOMCAT_HOME=/var/tomcat
>
> cd apache_1.3.19
> ./configure --enable-module=so
> make
> make install
>
> cd php-4.0.6
> ./configure --with-apxs=/usr/local/apache/bin/apxs
> make
> make install
>   (of course you'll want --with-* that represent your env)
>
> cd /usr/src/jakarta-tomcat-3.2.3-src/src/native/apache1.3
> /usr/local/apache/bin/apxs -o mod_jk.so -I ../jk -I
> /usr/java/jdk1.3.1_01/include -I  /usr/java/jdk1.3.1_01/include/linux -c *.c
> ../jk/*.c
>
> cp mod_jk.so /usr/local/apache/libexec/
>
> add the following line to the bottom of httpd.conf
>   (do the regular conf of apache for php as well)
>
> include /var/tomcat/conf/mod_jk.conf-auto
>
>
> That is it. Now any empty directory in your DocumentRoot (that you define in
> the tomcat conf) is handled via tomcat/mod_jk and any .php file is handled
> by mod_php. It'll take a while for me to get really familar with tomcat
> conf, but once I am virtual servers and the rest should be possible.
>
>
>
> Anyway, I'm happy I get the apache soap and XML java based tools for the web
> services and get to keep the rapid development environment of php.
>
>
> Hope this is of use to some people. - Eric
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]