<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-162</id>
	<title>Nabble - Php - Soap</title>
	<updated>2009-11-27T02:12:34Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Php---Soap-f162.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Php---Soap-f162.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26540308</id>
	<title>SOAP_SINGLE_ELEMENT_ARRAYS doesn't work</title>
	<published>2009-11-27T02:12:34Z</published>
	<updated>2009-11-27T02:12:34Z</updated>
	<author>
		<name>nsteen</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;&lt;br&gt;I am kind-a new to this whole SOAP world, but my boss wants a SOAP (WSDL) webservice, so I am going to learn it.
&lt;br&gt;&lt;br&gt;I have a problem tho, my SOAPServer returns an array of ComplexType's. So far so good. It even works!
&lt;br&gt;One problem, PHP returns a object in stead of the array when there is only one element in the array.
&lt;br&gt;&lt;br&gt;I searched on Google and found the following bug: &lt;a href=&quot;http://bugs.php.net/bug.php?id=36226&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bugs.php.net/bug.php?id=36226&lt;/a&gt;&lt;br&gt;That's exactly my problem! So I tried that feature SOAP_SINGLE_ELEMENT_ARRAYS, didn't work.
&lt;br&gt;I searched again; found: &lt;a href=&quot;http://bugs.php.net/bug.php?id=47492&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bugs.php.net/bug.php?id=47492&lt;/a&gt;&lt;br&gt;No news on that page yet (except for my reply).
&lt;br&gt;&lt;br&gt;Is this a known issue? or some work-around available?
&lt;br&gt;&lt;br&gt;Help would be very appreciated...
&lt;br&gt;&lt;br&gt;Regards!</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SOAP_SINGLE_ELEMENT_ARRAYS-doesn%27t-work-tp26540308p26540308.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26529250</id>
	<title>function to parse XML into an array</title>
	<published>2009-11-26T05:11:15Z</published>
	<updated>2009-11-26T05:11:15Z</updated>
	<author>
		<name>Borys Paweł Krupa</name>
	</author>
	<content type="html">Hi All,
&lt;br&gt;&lt;br&gt;this simple function parses XML data given in $S string
&lt;br&gt;into $M array.
&lt;br&gt;Any repetitive tags are indexed and accessible using M['tag'][1..n]
&lt;br&gt;&lt;br&gt;hope this makes your life easier ;)
&lt;br&gt;&lt;br&gt;Paweł
&lt;br&gt;&lt;br&gt;function ParseXML(&amp;$M,$S) {
&lt;br&gt;&amp;nbsp; while(1) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; $a=strpos($S,&amp;quot;&amp;lt;&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; if($a===false) { if(!is_array($M)) $M=$S; return; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; $b=strpos($S,&amp;quot;&amp;gt;&amp;quot;,$a);
&lt;br&gt;&amp;nbsp; &amp;nbsp; $tag=substr($S,$a+1,$b-$a-1);
&lt;br&gt;&amp;nbsp; &amp;nbsp; if($tag[0]=='?') { $S=substr($S,$b+1); continue; } //ignoring meta tags
&lt;br&gt;&amp;nbsp; &amp;nbsp; $c=strpos($S,&amp;quot;&amp;lt;/$tag&amp;gt;&amp;quot;,$b);
&lt;br&gt;&amp;nbsp; &amp;nbsp; $T=substr($S,$b+1,$c-$b-1);
&lt;br&gt;&amp;nbsp; &amp;nbsp; $S=substr($S,$c+3+strlen($tag));
&lt;br&gt;&amp;nbsp; &amp;nbsp; if(isset($M[$tag])) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if(is_array($M[$tag])) $k=count($M[$tag]);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; else { $tmp=$M[$tag]; $M[$tag]=array(); $M[$tag][0]=$tmp; $k=1;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ParseXML($M[$tag][$k],$T);
&lt;br&gt;&amp;nbsp; &amp;nbsp; } else
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ParseXML($M[$tag],$T);
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Soap Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/function-to-parse-XML-into-an-array-tp26529250p26529250.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26528984</id>
	<title>SOAP: Return object to client</title>
	<published>2009-11-26T04:47:00Z</published>
	<updated>2009-11-26T04:47:00Z</updated>
	<author>
		<name>Manoj Singh</name>
	</author>
	<content type="html">Hi All,
&lt;br&gt;&lt;br&gt;I am implementing the web service through PHP SOAP library.
&lt;br&gt;&lt;br&gt;Actually I want to return the object to the client through web service so
&lt;br&gt;that client can call all the methods of that object.
&lt;br&gt;&lt;br&gt;Please help me out.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Manoj
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SOAP%3A-Return-object-to-client-tp26528984p26528984.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26519339</id>
	<title>Re: size limit for message sub-nodes?</title>
	<published>2009-11-25T11:59:42Z</published>
	<updated>2009-11-25T11:59:42Z</updated>
	<author>
		<name>Brian Miles</name>
	</author>
	<content type="html">&lt;br&gt;Hello,
&lt;br&gt;&lt;br&gt;I have narrowed my problem down more. &amp;nbsp;Firstly, the truncation is happening for base64 images that are as small as 2,010 bytes. &amp;nbsp;Further, the data being passed into the function &amp;quot;submitSighting&amp;quot; appears to be fine. &amp;nbsp;That is, I compared the length of the $photovideo argument within submitSighting on the SOAP server with the length of the image on the client side, before it is sent to the SOAP server, and they are identical. &amp;nbsp;So I am lead to believe that the base64_encode function producing strings that are not the same as those my client are producing.
&lt;br&gt;&lt;br&gt;My solution for now is to just rip the original client-formatted base64 representation of the image out of the request as follows:
&lt;br&gt;&lt;br&gt;if (preg_match('/&amp;lt;photovideo xsi:type=&amp;quot;xsd:base64Binary&amp;quot;&amp;gt;(.*)&amp;lt;\/photovideo&amp;gt;/ims', $request, $matches)) {
&lt;br&gt;&amp;nbsp; $myPhotoVideo = $matches[1];
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;This is less than ideal, and opens me up to potential security vulnerabilities, but it works for now.
&lt;br&gt;&lt;br&gt;If anyone has any advice, I'd love to hear it.
&lt;br&gt;&lt;br&gt;Best,
&lt;br&gt;&lt;br&gt;Brian
&lt;br&gt;&lt;br&gt;On Nov 25, 2009, at 1:35 AM, Brian Miles wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I have defined a SOAP message for submitting mixed data, including a base64 encoded image. &amp;nbsp;Everything works fine when the images I send are small (640x480). &amp;nbsp;However when my images grow too large (1024x768), the image data coming out of the SOAP request appears to be truncated. &amp;nbsp;For example, instead of being 169,048 bytes, it is 166,448 bytes.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; What I'm doing is re-encoding the image data that SoapServer has decoded for me for the purpose of storing it in a text field in a mysql table. &amp;nbsp;So it may be that SoapServer is truncating the data. &amp;nbsp;Or (less likely?) it may be that base64_encode is truncating the data.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is there a size limit for message sub-nodes that SoapServer can handle?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I have attached relevant sections of my server and WSDL file below.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks in advance for any advice.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Brian
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Here are the relevant parts of my SOAP server:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;lt;?php
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; function submitSighting($collector_id, 
&lt;br&gt;&amp;gt; 	 		$species_common_name, 
&lt;br&gt;&amp;gt; 			$sighting_datetime,
&lt;br&gt;&amp;gt; 			$location_lat,
&lt;br&gt;&amp;gt; 			$location_long,
&lt;br&gt;&amp;gt; 			$notes = NULL,
&lt;br&gt;&amp;gt; 			$alive_flag = true,
&lt;br&gt;&amp;gt; 			$photovideo = NULL) {
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;$species_common_name = mysql_real_escape_string($species_common_name);
&lt;br&gt;&amp;gt; &amp;nbsp;$sighting_datetime = mysql_real_escape_string($sighting_datetime);
&lt;br&gt;&amp;gt; &amp;nbsp;$location_lat = mysql_real_escape_string($location_lat);
&lt;br&gt;&amp;gt; &amp;nbsp;$location_long = mysql_real_escape_string($location_long);
&lt;br&gt;&amp;gt; &amp;nbsp;if (NULL != $notes) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;$notes = mysql_real_escape_string($notes);
&lt;br&gt;&amp;gt; &amp;nbsp;} else {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;$notes = &amp;quot;&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp;if (true == $alive_flag) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;$alive_flag = 'Y';
&lt;br&gt;&amp;gt; &amp;nbsp;} else {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;$alive_flag = 'N';
&lt;br&gt;&amp;gt; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp;if (NULL != $photovideo) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;$photovideo = base64_encode($photovideo);
&lt;br&gt;&amp;gt; &amp;nbsp;} else {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;$photovideo = &amp;quot;&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp;}
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;$species_id = getSpeciesIdFromCommonName($species_common_name, $link); // function definition removed from this snippet
&lt;br&gt;&amp;gt; &amp;nbsp;if (!$species_id) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; $msg = &amp;nbsp;&amp;quot;The species &amp;quot; . $species_common_name . &amp;quot; is unknown.&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp;}
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;// Insert into the sightings table
&lt;br&gt;&amp;gt; &amp;nbsp;$query = sprintf(&amp;quot;insert into pws_sightings values (NULL, %d, %d, 'N', '%s', %f, %f, '%s', '%s', '%s')&amp;quot;,
&lt;br&gt;&amp;gt; &amp;nbsp;	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $collector_id, 
&lt;br&gt;&amp;gt; 		 &amp;nbsp; $species_id,
&lt;br&gt;&amp;gt; 		 &amp;nbsp; $sighting_datetime,
&lt;br&gt;&amp;gt; 		 &amp;nbsp; $location_lat,
&lt;br&gt;&amp;gt; 		 &amp;nbsp; $location_long,
&lt;br&gt;&amp;gt; 		 &amp;nbsp; $notes,
&lt;br&gt;&amp;gt; 		 &amp;nbsp; $alive_flag,
&lt;br&gt;&amp;gt; 		 &amp;nbsp; $photovideo);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;$result = mysql_query($query);
&lt;br&gt;&amp;gt; &amp;nbsp;if ($result) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; $msg = &amp;quot;Success&amp;quot;; 
&lt;br&gt;&amp;gt; &amp;nbsp;} else {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; $msg .= &amp;quot; was NOT successfully submitted due to error: &amp;quot; . mysql_error(); 
&lt;br&gt;&amp;gt; &amp;nbsp;}
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;error_log($msg, 0);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;return $msg;
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; // SOAP stuff
&lt;br&gt;&amp;gt; ini_set(&amp;quot;soap.wsdl_cache_enabled&amp;quot;, &amp;quot;1&amp;quot;); // Enable WSDL cache
&lt;br&gt;&amp;gt; $server = new SoapServer(&amp;quot;pws.wsdl&amp;quot;);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; $server-&amp;gt;addFunction(&amp;quot;submitSighting&amp;quot;);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; $server-&amp;gt;handle();
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ?&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Here is the relevant excerpt from my WSDL file:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;lt;message name='submitSightingRequest'&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;part name='collector_id' type='xsd:integer'/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;part name='species_common_name' type='xsd:string'/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;part name='sighting_datetime' type='xsd:dateTime'/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;part name='location_lat' type='xsd:double'/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;part name='location_long' type='xsd:double'/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;part name='notes' type='xsd:string'/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;part name='alive_flag' type='xsd:boolean'/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;part name='photovideo' type='xsd:base64Binary'/&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/message&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;message name='submitSightingResponse'&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;part name='Result' type='xsd:string'/&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/message&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;PHP Soap Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/size-limit-for-message-sub-nodes--tp26508165p26519339.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26508165</id>
	<title>size limit for message sub-nodes?</title>
	<published>2009-11-24T22:35:51Z</published>
	<updated>2009-11-24T22:35:51Z</updated>
	<author>
		<name>Brian Miles</name>
	</author>
	<content type="html">&lt;br&gt;Hello,
&lt;br&gt;&lt;br&gt;I have defined a SOAP message for submitting mixed data, including a base64 encoded image. &amp;nbsp;Everything works fine when the images I send are small (640x480). &amp;nbsp;However when my images grow too large (1024x768), the image data coming out of the SOAP request appears to be truncated. &amp;nbsp;For example, instead of being 169,048 bytes, it is 166,448 bytes.
&lt;br&gt;&lt;br&gt;What I'm doing is re-encoding the image data that SoapServer has decoded for me for the purpose of storing it in a text field in a mysql table. &amp;nbsp;So it may be that SoapServer is truncating the data. &amp;nbsp;Or (less likely?) it may be that base64_encode is truncating the data.
&lt;br&gt;&lt;br&gt;Is there a size limit for message sub-nodes that SoapServer can handle?
&lt;br&gt;&lt;br&gt;I have attached relevant sections of my server and WSDL file below.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks in advance for any advice.
&lt;br&gt;&lt;br&gt;Brian
&lt;br&gt;&lt;br&gt;&lt;br&gt;Here are the relevant parts of my SOAP server:
&lt;br&gt;&lt;br&gt;&amp;lt;?php
&lt;br&gt;&lt;br&gt;function submitSighting($collector_id, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;		$species_common_name, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $sighting_datetime,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $location_lat,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $location_long,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $notes = NULL,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $alive_flag = true,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $photovideo = NULL) {
&lt;br&gt;&lt;br&gt;&amp;nbsp; $species_common_name = mysql_real_escape_string($species_common_name);
&lt;br&gt;&amp;nbsp; $sighting_datetime = mysql_real_escape_string($sighting_datetime);
&lt;br&gt;&amp;nbsp; $location_lat = mysql_real_escape_string($location_lat);
&lt;br&gt;&amp;nbsp; $location_long = mysql_real_escape_string($location_long);
&lt;br&gt;&amp;nbsp; if (NULL != $notes) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; $notes = mysql_real_escape_string($notes);
&lt;br&gt;&amp;nbsp; } else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; $notes = &amp;quot;&amp;quot;;
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&amp;nbsp; if (true == $alive_flag) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; $alive_flag = 'Y';
&lt;br&gt;&amp;nbsp; } else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; $alive_flag = 'N';
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&amp;nbsp; if (NULL != $photovideo) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; $photovideo = base64_encode($photovideo);
&lt;br&gt;&amp;nbsp; } else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; $photovideo = &amp;quot;&amp;quot;;
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; $species_id = getSpeciesIdFromCommonName($species_common_name, $link); // function definition removed from this snippet
&lt;br&gt;&amp;nbsp; if (!$species_id) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;$msg = &amp;nbsp;&amp;quot;The species &amp;quot; . $species_common_name . &amp;quot; is unknown.&amp;quot;;
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; // Insert into the sightings table
&lt;br&gt;&amp;nbsp; $query = sprintf(&amp;quot;insert into pws_sightings values (NULL, %d, %d, 'N', '%s', %f, %f, '%s', '%s', '%s')&amp;quot;,
&lt;br&gt;&amp;nbsp; 	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $collector_id, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$species_id,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$sighting_datetime,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$location_lat,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$location_long,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$notes,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$alive_flag,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$photovideo);
&lt;br&gt;&lt;br&gt;&amp;nbsp; $result = mysql_query($query);
&lt;br&gt;&amp;nbsp; if ($result) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;$msg = &amp;quot;Success&amp;quot;; 
&lt;br&gt;&amp;nbsp; } else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;$msg .= &amp;quot; was NOT successfully submitted due to error: &amp;quot; . mysql_error(); 
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; error_log($msg, 0);
&lt;br&gt;&lt;br&gt;&amp;nbsp; return $msg;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;// SOAP stuff
&lt;br&gt;ini_set(&amp;quot;soap.wsdl_cache_enabled&amp;quot;, &amp;quot;1&amp;quot;); // Enable WSDL cache
&lt;br&gt;$server = new SoapServer(&amp;quot;pws.wsdl&amp;quot;);
&lt;br&gt;&lt;br&gt;$server-&amp;gt;addFunction(&amp;quot;submitSighting&amp;quot;);
&lt;br&gt;&lt;br&gt;$server-&amp;gt;handle();
&lt;br&gt;&lt;br&gt;?&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;Here is the relevant excerpt from my WSDL file:
&lt;br&gt;&lt;br&gt;&amp;lt;message name='submitSightingRequest'&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;part name='collector_id' type='xsd:integer'/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;part name='species_common_name' type='xsd:string'/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;part name='sighting_datetime' type='xsd:dateTime'/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;part name='location_lat' type='xsd:double'/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;part name='location_long' type='xsd:double'/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;part name='notes' type='xsd:string'/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;part name='alive_flag' type='xsd:boolean'/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;part name='photovideo' type='xsd:base64Binary'/&amp;gt;
&lt;br&gt;&amp;lt;/message&amp;gt;
&lt;br&gt;&amp;lt;message name='submitSightingResponse'&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;part name='Result' type='xsd:string'/&amp;gt;
&lt;br&gt;&amp;lt;/message&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;--
&lt;br&gt;PHP Soap Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/size-limit-for-message-sub-nodes--tp26508165p26508165.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26424231</id>
	<title>HTML Form Generation From WSDL</title>
	<published>2009-11-19T02:51:27Z</published>
	<updated>2009-11-19T02:51:27Z</updated>
	<author>
		<name>mulder-6</name>
	</author>
	<content type="html">Hi all!
&lt;br&gt;&lt;br&gt;I would like to parse a WSDL file and automatically create the corresponding
&lt;br&gt;html form in order to call the web service. What is the best method?
&lt;br&gt;&lt;br&gt;Should i use __getTypes and __getFunctions in order to get functions and
&lt;br&gt;types and then construct the form?
&lt;br&gt;&lt;br&gt;Thank you in advance.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/HTML-Form-Generation-From-WSDL-tp26424050p26424231.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26424050</id>
	<title>HTML Form Generation From WSDL</title>
	<published>2009-11-19T02:39:16Z</published>
	<updated>2009-11-19T02:39:16Z</updated>
	<author>
		<name>mulder-6</name>
	</author>
	<content type="html">Hi all!
&lt;br&gt;&lt;br&gt;I would like to parse a WSDL file and automatically create the corresponding
&lt;br&gt;html form in order to call the web service. What is the best method?
&lt;br&gt;&lt;br&gt;Should i use __getTypes and __getFunctions in order to get functions and
&lt;br&gt;types and then construct the form?
&lt;br&gt;&lt;br&gt;Thank you in advance.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/HTML-Form-Generation-From-WSDL-tp26424050p26424050.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26319146</id>
	<title>Грузоперевозки  8-906-7 8 2-9 1 3 4</title>
	<published>2009-11-11T15:16:42Z</published>
	<updated>2009-11-11T15:16:42Z</updated>
	<author>
		<name>Ленок</name>
	</author>
	<content type="html">&amp;nbsp;Грузоперевозки по Москве, московской области и регионам России.
&lt;br&gt;&amp;nbsp;ООО Э к с п р е с с 3 4 5
&lt;br&gt;&amp;nbsp;Телефон: 8-9 0 6-7 8 2-9 1 3 4 или 8-9 1 6-9 4 9-1 3 0 6
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%D0%93%D1%80%D1%83%D0%B7%D0%BE%D0%BF%D0%B5%D1%80%D0%B5%D0%B2%D0%BE%D0%B7%D0%BA%D0%B8--8-906-7-8-2-9-1-3-4-tp26319146p26319146.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26157744</id>
	<title>PHP SOAP - Timeout from the target service</title>
	<published>2009-11-02T09:13:09Z</published>
	<updated>2009-11-02T09:13:09Z</updated>
	<author>
		<name>jimmyk</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I am new to SOAP and working on a project to retrieve documents using a wsdl but getting a timeout from the server.
&lt;br&gt;&lt;br&gt;I am using WAMP 2 PHP SOAP Client. 
&lt;br&gt;&lt;br&gt;Here is my code for retrieving the documents: 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; $client = new SoapClient(&amp;quot;&lt;a href=&quot;http://test:9650/XDSbReg/services/DocumentRegistry_Service?wsdl&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://test:9650/XDSbReg/services/DocumentRegistry_Service?wsdl&lt;/a&gt;&amp;quot;,array(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'trace' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; 1,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'exceptions' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; 0,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'soap_version' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; 'SOAP_1_2',
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'style' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; 'SOAP_RPC|SOAP_DOCUMENT',
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'use' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; 'SOAP_ENCODED|SOAP_LITERAL',
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'encoding' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; 'UTF-8',
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'runType' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; 'SEQUENTIAL',
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'action' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; 'AdhocQueryResponse',
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'compression' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; 'SOAP_COMPRESSION_ACCEPT|SOAP_COMPRESSION_GZIP|SOAP_COMPRESSION_DEFLATE',
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'timeout' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; 6000,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'connection_timout' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; 6000,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'default_socket_timeout' &amp;nbsp; =&amp;gt; 6000,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'target_timeout' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; 6000,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'location' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; '&lt;a href=&quot;http://test:9650/XDSbReg/services/DocumentRegistry_Service'&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://test:9650/XDSbReg/services/DocumentRegistry_Service'&lt;/a&gt;,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'uri' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt; '&lt;a href=&quot;http://test:9650/XDSbReg/services/DocumentRegistry_Service'));&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://test:9650/XDSbReg/services/DocumentRegistry_Service'));&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; $client-&amp;gt;DocumentRegistry_RegistryStoredQuery('AdhocQueryRequest',&amp;quot;$body&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; print &amp;quot;&amp;lt;pre&amp;gt;\n&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; print &amp;quot;Request :\n&amp;quot;.$client-&amp;gt;__getLastRequest() .&amp;quot;\n&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; print &amp;quot;Response:\n&amp;quot;.$client-&amp;gt;__getLastResponse().&amp;quot;\n&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; print &amp;quot;Headers:\n&amp;quot;.$client-&amp;gt;__getLastResponseHeaders().&amp;quot;\n&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; print &amp;quot;&amp;lt;/pre&amp;gt;&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;The headers are returning but the Response is getting the following error: Timeout from the target service
&lt;br&gt;&lt;br&gt;Here is my request: 
&lt;br&gt;&lt;br&gt;POST &lt;a href=&quot;http://test:9650/XDSbReg/services/DocumentRegistry_Service&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://test:9650/XDSbReg/services/DocumentRegistry_Service&lt;/a&gt;&amp;nbsp;HTTP/1.1
&lt;br&gt;Accept-Encoding: gzip,deflate
&lt;br&gt;Content-Type: application/soap+xml;charset=UTF-8;action=&amp;quot;urn:ihe:iti:2007:RegistryStoredQuery&amp;quot;
&lt;br&gt;User-Agent: Jakarta Commons-HttpClient/3.1
&lt;br&gt;Host: planck:9650
&lt;br&gt;Content-Length: 836
&lt;br&gt;&amp;lt;soapenv:Envelope xmlns:soapenv=&amp;quot;&lt;a href=&quot;http://www.w3.org/2003/05/soap-envelope&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2003/05/soap-envelope&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp;&amp;lt;soapenv:Body&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;query:AdhocQueryRequest xmlns:query=&amp;quot;urn:oasis:names:tc:ebxml-regrep:xsd:query:3.0&amp;quot; xmlns:rim=&amp;quot;urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;query:ResponseOption returnComposedObjects=&amp;quot;true&amp;quot; returnType=&amp;quot;LeafClass&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;rim:AdhocQuery id=&amp;quot;urn:uuid:14d4debf-8f97-4251-9a74-a90016b0af0d&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;rim:Slot name=&amp;quot;$XDSDocumentEntryPatientId&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;rim:ValueList&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;rim:Value&amp;gt;'300000^^^&amp;amp;2.22.111.1.111111.1.111.1.1.1000.1&amp;amp;ISO'&amp;lt;/rim:Value&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/rim:ValueList&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/rim:Slot&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;rim:Slot name=&amp;quot;$XDSDocumentEntryStatus&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;rim:ValueList&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;rim:Value&amp;gt;('urn:oasis:names:tc:ebxml-regrep:StatusType:Approved')&amp;lt;/rim:Value&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/rim:ValueList&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/rim:Slot&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;/query:AdhocQueryRequest&amp;gt;
&lt;br&gt;&amp;nbsp;&amp;lt;/soapenv:Body&amp;gt;
&lt;br&gt;&amp;lt;/soapenv:Envelope&amp;gt;
&lt;br&gt;&lt;br&gt;This request works in SOAPUI (Third Party Tool) but I really want to get it to work in PHP so I can run queries etc etc. 
&lt;br&gt;&lt;br&gt;I have tried every possible combination of new SoapClient but nothing has worked so far. &amp;nbsp;Like I mentioned, I am new to SOAP and would really appreciate any help at all. 
&lt;br&gt;&lt;br&gt;Thanks in advance. </content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PHP-SOAP---Timeout-from-the-target-service-tp26157744p26157744.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26159564</id>
	<title>Re: Changing version from PHP4 to PHP5</title>
	<published>2009-11-02T00:13:24Z</published>
	<updated>2009-11-02T00:13:24Z</updated>
	<author>
		<name>I.N.T. - Luis</name>
	</author>
	<content type="html">Gracias Iván,
&lt;br&gt;&lt;br&gt;Ya lo he resuelto. Tan sencillo como:
&lt;br&gt;&lt;br&gt;function checkUser($user, $pass)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; $client = new 
&lt;br&gt;soapclient(&amp;quot;&lt;a href=&quot;http://80.32.91.149:25000/servicioXYZ.asmx?WSDL&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://80.32.91.149:25000/servicioXYZ.asmx?WSDL&lt;/a&gt;&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; $params = array(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'RutaTabla' &amp;nbsp;=&amp;gt; &amp;quot;d:\\ourpw\\&amp;quot;,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'ElUsuario' &amp;nbsp;=&amp;gt; $user,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'ElPassword' =&amp;gt; $pass,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'QuienEs' &amp;nbsp; &amp;nbsp;=&amp;gt; 'CLIENTE'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; $ok = $client-&amp;gt;AutentificaPW($params);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; $result = $ok-&amp;gt;AutentificaPWResult;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; $tagsToSearch = Array(&amp;quot;nombre&amp;quot;, &amp;quot;situacion&amp;quot;, &amp;quot;email&amp;quot;, &amp;quot;codigo&amp;quot;, 
&lt;br&gt;&amp;quot;pagina&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; $tagObj = publis_TagsToArray($result, $tagsToSearch);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; return $tagObj;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;Gracias a todos
&lt;br&gt;&lt;br&gt;Thank you
&lt;br&gt;&lt;br&gt;&lt;br&gt;Ivan Rodriguez escribió:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hola Luis, te contesto en castellano por que creo que eres 
&lt;br&gt;&amp;gt; hispanohablante :-)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; El problema que tienes es que tienes que migrar el cliente utilizando 
&lt;br&gt;&amp;gt; la API que tiene PHP para ellos, para eso cuentas con la clase 
&lt;br&gt;&amp;gt; SoapClient, y utilizar los métodos de esa clase. Actualmente esta 
&lt;br&gt;&amp;gt; haciendo uso de algo que no existe, como es el método getProxy(), el 
&lt;br&gt;&amp;gt; objeto entiende que ese método no esta definido en el fichero WSDL.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Te recomiendo que visites y leas &lt;a href=&quot;http://php.net/soap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://php.net/soap&lt;/a&gt;&amp;nbsp;ahí encontrarás 
&lt;br&gt;&amp;gt; ejemplos de como crear un cliente SOAP utilzando PHP5.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Recuerda que puedes ver los métodos disponibles y los tipos de datos 
&lt;br&gt;&amp;gt; utilizando la función __getFunctions() y __getTypes() respectivamente.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Un saludo
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Sat, Oct 31, 2009 at 3:32 PM, I.N.T. - Luis &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26159564&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;luis@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26159564&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;luis@...&lt;/a&gt;&amp;gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Hi everybody,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; We have some code written for PHP4 using the SOAP libraries for
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; connect as a CLIENT to a web service. The web service SERVER is
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; not ours, we don´t know how it is programed. The code is:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; require_once('lib/nusoap.php'); // where we are publishing the
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; SOAP libraries
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; function checkUser($user, $pass)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $client = new
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; soapclient(&amp;quot;&lt;a href=&quot;http://80.32.91.149:25000/servicioXYZ.asmx?WSDL&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://80.32.91.149:25000/servicioXYZ.asmx?WSDL&lt;/a&gt;&amp;quot;, &amp;quot;wsdl&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $params = array(
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'RutaTabla' &amp;nbsp;=&amp;gt; &amp;quot;d:\\ourpw\\&amp;quot;,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'ElUsuario' &amp;nbsp;=&amp;gt; $user,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'ElPassword' =&amp;gt; $pass,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'QuienEs' &amp;nbsp; &amp;nbsp;=&amp;gt; 'CLIENTE'
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $theProxy = $client-&amp;gt;getProxy();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $ok = $theProxy-&amp;gt;AutentificaPW($params);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $result = $ok[&amp;quot;AutentificaPWResult&amp;quot;];
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $tagsToSearch = Array(&amp;quot;nombre&amp;quot;, &amp;quot;situacion&amp;quot;, &amp;quot;email&amp;quot;,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;quot;codigo&amp;quot;, &amp;quot;pagina&amp;quot;);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $tagObj = publis_TagsToArray($result, $tagsToSearch); &amp;nbsp;//
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; this is a internal function we use
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return $tagObj;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; IT WORKED FINE!!!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Now we have actualized our systems to PHP5 obligatory.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; The error is:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; *Warning*: SoapClient::SoapClient() expects parameter 2 to be
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; array, string given in *xxx.php* on line *13*
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; *Fatal error*: Uncaught SoapFault exception: [Client]
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; SoapClient::SoapClient() [&amp;lt;a
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; href='soapclient.soapclient'&amp;gt;soapclient.soapclient&amp;lt;/a&amp;gt;]: Invalid
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; parameters in xxx.php:13 Stack trace: #0 xxx.php(13):
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; SoapClient-&amp;gt;SoapClient('&lt;a href=&quot;http://80.32.91...'&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://80.32.91...'&lt;/a&gt;, 'wsdl') #1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; xxx.php(163): checkUser('XXX', 'YYY') #2 {main} thrown in
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; *xxx.php* on line *13
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; *OK, looking for &amp;quot;new&amp;quot; SOAP functions, I change my code as:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; //require_once('lib/nusoap.php'); // using internal SOAP PHP libraries
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; function checkUser($user, $pass)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $client = new
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; soapclient(&amp;quot;&lt;a href=&quot;http://80.32.91.149:25000/servicioXYZ.asmx?WSDL&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://80.32.91.149:25000/servicioXYZ.asmx?WSDL&lt;/a&gt;&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $params = array(
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'RutaTabla' &amp;nbsp;=&amp;gt; &amp;quot;d:\\ourpw\\&amp;quot;,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'ElUsuario' &amp;nbsp;=&amp;gt; $user,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'ElPassword' =&amp;gt; $pass,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'QuienEs' &amp;nbsp; &amp;nbsp;=&amp;gt; 'CLIENTE'
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $theProxy = $client-&amp;gt;getProxy();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $ok = $theProxy-&amp;gt;AutentificaPW($params);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $result = $ok[&amp;quot;AutentificaPWResult&amp;quot;];
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $tagsToSearch = Array(&amp;quot;nombre&amp;quot;, &amp;quot;situacion&amp;quot;, &amp;quot;email&amp;quot;,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;quot;codigo&amp;quot;, &amp;quot;pagina&amp;quot;);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $tagObj = publis_TagsToArray($result, $tagsToSearch); &amp;nbsp;//
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; this is a internal function we use
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return $tagObj;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; The error is:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; *Fatal error*: Uncaught SoapFault exception: [Client] Function
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; (&amp;quot;getProxy&amp;quot;) is not a valid method for this service in xxx.php:22
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Stack trace: #0 [internal function]:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; SoapClient-&amp;gt;__call('getProxy', Array) #1 xxx.php(22):
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; SoapClient-&amp;gt;getProxy() #2 xxx.php(163): checkUser('XXX', 'YYY') #3
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; {main} thrown in *xxx.php* on line *22
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; *As you can see I need the variable $theProxy to authenticate the
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; password against the proxy. Looking for help in the web, I haven't
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; find valid ideas to correct this.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; How could I do it? The code, in my opinion is very simple, but I'm
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; not able to correct or adapt it to PHP5 with ne new SOAP libraries
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; (functions).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; What's wrong? Any idea?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Thank you very much
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changing-version-from-PHP4-to-PHP5-tp26143333p26159564.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26154625</id>
	<title>Re: Changing version from PHP4 to PHP5</title>
	<published>2009-11-01T12:48:45Z</published>
	<updated>2009-11-01T12:48:45Z</updated>
	<author>
		<name>Ivan Rodriguez</name>
	</author>
	<content type="html">Hola Luis, te contesto en castellano por que creo que eres hispanohablante
&lt;br&gt;:-)
&lt;br&gt;&lt;br&gt;El problema que tienes es que tienes que migrar el cliente utilizando la API
&lt;br&gt;que tiene PHP para ellos, para eso cuentas con la clase SoapClient, y
&lt;br&gt;utilizar los métodos de esa clase. Actualmente esta haciendo uso de algo que
&lt;br&gt;no existe, como es el método getProxy(), el objeto entiende que ese método
&lt;br&gt;no esta definido en el fichero WSDL.
&lt;br&gt;&lt;br&gt;Te recomiendo que visites y leas &lt;a href=&quot;http://php.net/soap&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://php.net/soap&lt;/a&gt;&amp;nbsp;ahí encontrarás
&lt;br&gt;ejemplos de como crear un cliente SOAP utilzando PHP5.
&lt;br&gt;&lt;br&gt;Recuerda que puedes ver los métodos disponibles y los tipos de datos
&lt;br&gt;utilizando la función __getFunctions() y __getTypes() respectivamente.
&lt;br&gt;&lt;br&gt;Un saludo
&lt;br&gt;&lt;br&gt;On Sat, Oct 31, 2009 at 3:32 PM, I.N.T. - Luis &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26154625&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;luis@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi everybody,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; We have some code written for PHP4 using the SOAP libraries for connect as
&lt;br&gt;&amp;gt; a CLIENT to a web service. The web service SERVER is not ours, we don´t know
&lt;br&gt;&amp;gt; how it is programed. The code is:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; require_once('lib/nusoap.php'); // where we are publishing the SOAP
&lt;br&gt;&amp;gt; libraries
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; function checkUser($user, $pass)
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; $client = new soapclient(&amp;quot;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://80.32.91.149:25000/servicioXYZ.asmx?WSDL&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://80.32.91.149:25000/servicioXYZ.asmx?WSDL&lt;/a&gt;&amp;quot;, &amp;quot;wsdl&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; $params = array(
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'RutaTabla' &amp;nbsp;=&amp;gt; &amp;quot;d:\\ourpw\\&amp;quot;,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'ElUsuario' &amp;nbsp;=&amp;gt; $user,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'ElPassword' =&amp;gt; $pass,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'QuienEs' &amp;nbsp; &amp;nbsp;=&amp;gt; 'CLIENTE'
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; $theProxy = $client-&amp;gt;getProxy();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; $ok = $theProxy-&amp;gt;AutentificaPW($params);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; $result = $ok[&amp;quot;AutentificaPWResult&amp;quot;];
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; $tagsToSearch = Array(&amp;quot;nombre&amp;quot;, &amp;quot;situacion&amp;quot;, &amp;quot;email&amp;quot;, &amp;quot;codigo&amp;quot;,
&lt;br&gt;&amp;gt; &amp;quot;pagina&amp;quot;);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; $tagObj = publis_TagsToArray($result, $tagsToSearch); &amp;nbsp;// this is a
&lt;br&gt;&amp;gt; internal function we use
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; return $tagObj;
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; IT WORKED FINE!!!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Now we have actualized our systems to PHP5 obligatory.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The error is:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; *Warning*: SoapClient::SoapClient() expects parameter 2 to be array, string
&lt;br&gt;&amp;gt; given in *xxx.php* on line *13*
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; *Fatal error*: Uncaught SoapFault exception: [Client]
&lt;br&gt;&amp;gt; SoapClient::SoapClient() [&amp;lt;a
&lt;br&gt;&amp;gt; href='soapclient.soapclient'&amp;gt;soapclient.soapclient&amp;lt;/a&amp;gt;]: Invalid parameters
&lt;br&gt;&amp;gt; in xxx.php:13 Stack trace: #0 xxx.php(13): SoapClient-&amp;gt;SoapClient('
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://80.32.91...'&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://80.32.91...'&lt;/a&gt;, 'wsdl') #1 xxx.php(163): checkUser('XXX', 'YYY') #2
&lt;br&gt;&amp;gt; {main} thrown in *xxx.php* on line *13
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; *OK, looking for &amp;quot;new&amp;quot; SOAP functions, I change my code as:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; //require_once('lib/nusoap.php'); // using internal SOAP PHP libraries
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; function checkUser($user, $pass)
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; $client = new soapclient(&amp;quot;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://80.32.91.149:25000/servicioXYZ.asmx?WSDL&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://80.32.91.149:25000/servicioXYZ.asmx?WSDL&lt;/a&gt;&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; $params = array(
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'RutaTabla' &amp;nbsp;=&amp;gt; &amp;quot;d:\\ourpw\\&amp;quot;,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'ElUsuario' &amp;nbsp;=&amp;gt; $user,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'ElPassword' =&amp;gt; $pass,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'QuienEs' &amp;nbsp; &amp;nbsp;=&amp;gt; 'CLIENTE'
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; $theProxy = $client-&amp;gt;getProxy();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; $ok = $theProxy-&amp;gt;AutentificaPW($params);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; $result = $ok[&amp;quot;AutentificaPWResult&amp;quot;];
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; $tagsToSearch = Array(&amp;quot;nombre&amp;quot;, &amp;quot;situacion&amp;quot;, &amp;quot;email&amp;quot;, &amp;quot;codigo&amp;quot;,
&lt;br&gt;&amp;gt; &amp;quot;pagina&amp;quot;);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; $tagObj = publis_TagsToArray($result, $tagsToSearch); &amp;nbsp;// this is a
&lt;br&gt;&amp;gt; internal function we use
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; return $tagObj;
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The error is:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; *Fatal error*: Uncaught SoapFault exception: [Client] Function (&amp;quot;getProxy&amp;quot;)
&lt;br&gt;&amp;gt; is not a valid method for this service in xxx.php:22 Stack trace: #0
&lt;br&gt;&amp;gt; [internal function]: SoapClient-&amp;gt;__call('getProxy', Array) #1 xxx.php(22):
&lt;br&gt;&amp;gt; SoapClient-&amp;gt;getProxy() #2 xxx.php(163): checkUser('XXX', 'YYY') #3 {main}
&lt;br&gt;&amp;gt; thrown in *xxx.php* on line *22
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; *As you can see I need the variable $theProxy to authenticate the password
&lt;br&gt;&amp;gt; against the proxy. Looking for help in the web, I haven't find valid ideas
&lt;br&gt;&amp;gt; to correct this.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; How could I do it? The code, in my opinion is very simple, but I'm not able
&lt;br&gt;&amp;gt; to correct or adapt it to PHP5 with ne new SOAP libraries (functions).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What's wrong? Any idea?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thank you very much
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changing-version-from-PHP4-to-PHP5-tp26143333p26154625.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26143331</id>
	<title>Changing version from PHP4 to PHP5</title>
	<published>2009-10-31T07:37:42Z</published>
	<updated>2009-10-31T07:37:42Z</updated>
	<author>
		<name>I.N.T. - Luis</name>
	</author>
	<content type="html">Hi everybody,
&lt;br&gt;&lt;br&gt;We have some code written for PHP4 using the SOAP libraries for connect 
&lt;br&gt;as a CLIENT to a web service. The web service SERVER is not ours, we 
&lt;br&gt;don´t know how it is programed. The code is:
&lt;br&gt;&lt;br&gt;require_once('lib/nusoap.php'); // where we are publishing the SOAP 
&lt;br&gt;libraries
&lt;br&gt;&lt;br&gt;function checkUser($user, $pass)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $client = new 
&lt;br&gt;soapclient(&amp;quot;&lt;a href=&quot;http://80.32.91.149:25000/servicioXYZ.asmx?WSDL&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://80.32.91.149:25000/servicioXYZ.asmx?WSDL&lt;/a&gt;&amp;quot;, &amp;quot;wsdl&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $params = array(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'RutaTabla' &amp;nbsp;=&amp;gt; &amp;quot;d:\\ourpw\\&amp;quot;,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'ElUsuario' &amp;nbsp;=&amp;gt; $user,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'ElPassword' =&amp;gt; $pass,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'QuienEs' &amp;nbsp; &amp;nbsp;=&amp;gt; 'CLIENTE'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $theProxy = $client-&amp;gt;getProxy();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $ok = $theProxy-&amp;gt;AutentificaPW($params);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $result = $ok[&amp;quot;AutentificaPWResult&amp;quot;];
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $tagsToSearch = Array(&amp;quot;nombre&amp;quot;, &amp;quot;situacion&amp;quot;, &amp;quot;email&amp;quot;, &amp;quot;codigo&amp;quot;, 
&lt;br&gt;&amp;quot;pagina&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $tagObj = publis_TagsToArray($result, $tagsToSearch); &amp;nbsp;// this 
&lt;br&gt;is a internal function we use
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return $tagObj;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;IT WORKED FINE!!!
&lt;br&gt;&lt;br&gt;Now we have actualized our systems to PHP5 obligatory.
&lt;br&gt;&lt;br&gt;The error is:
&lt;br&gt;&lt;br&gt;*Warning*: SoapClient::SoapClient() expects parameter 2 to be array, 
&lt;br&gt;string given in *xxx.php* on line *13*
&lt;br&gt;&lt;br&gt;*Fatal error*: Uncaught SoapFault exception: [Client] 
&lt;br&gt;SoapClient::SoapClient() [&amp;lt;a 
&lt;br&gt;href='soapclient.soapclient'&amp;gt;soapclient.soapclient&amp;lt;/a&amp;gt;]: Invalid 
&lt;br&gt;parameters in xxx.php:13 Stack trace: #0 xxx.php(13): 
&lt;br&gt;SoapClient-&amp;gt;SoapClient('&lt;a href=&quot;http://80.32.91...'&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://80.32.91...'&lt;/a&gt;, 'wsdl') #1 xxx.php(163): 
&lt;br&gt;checkUser('XXX', 'YYY') #2 {main} thrown in *xxx.php* on line *13
&lt;br&gt;&lt;br&gt;*OK, looking for &amp;quot;new&amp;quot; SOAP functions, I change my code as:
&lt;br&gt;&lt;br&gt;//require_once('lib/nusoap.php'); // using internal SOAP PHP libraries
&lt;br&gt;&lt;br&gt;function checkUser($user, $pass)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $client = new 
&lt;br&gt;soapclient(&amp;quot;&lt;a href=&quot;http://80.32.91.149:25000/servicioXYZ.asmx?WSDL&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://80.32.91.149:25000/servicioXYZ.asmx?WSDL&lt;/a&gt;&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $params = array(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'RutaTabla' &amp;nbsp;=&amp;gt; &amp;quot;d:\\ourpw\\&amp;quot;,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'ElUsuario' &amp;nbsp;=&amp;gt; $user,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'ElPassword' =&amp;gt; $pass,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'QuienEs' &amp;nbsp; &amp;nbsp;=&amp;gt; 'CLIENTE'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $theProxy = $client-&amp;gt;getProxy();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $ok = $theProxy-&amp;gt;AutentificaPW($params);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $result = $ok[&amp;quot;AutentificaPWResult&amp;quot;];
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $tagsToSearch = Array(&amp;quot;nombre&amp;quot;, &amp;quot;situacion&amp;quot;, &amp;quot;email&amp;quot;, &amp;quot;codigo&amp;quot;, 
&lt;br&gt;&amp;quot;pagina&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $tagObj = publis_TagsToArray($result, $tagsToSearch); &amp;nbsp;// this 
&lt;br&gt;is a internal function we use
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return $tagObj;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;The error is:
&lt;br&gt;&lt;br&gt;*Fatal error*: Uncaught SoapFault exception: [Client] Function 
&lt;br&gt;(&amp;quot;getProxy&amp;quot;) is not a valid method for this service in xxx.php:22 Stack 
&lt;br&gt;trace: #0 [internal function]: SoapClient-&amp;gt;__call('getProxy', Array) #1 
&lt;br&gt;xxx.php(22): SoapClient-&amp;gt;getProxy() #2 xxx.php(163): checkUser('XXX', 
&lt;br&gt;'YYY') #3 {main} thrown in *xxx.php* on line *22
&lt;br&gt;&lt;br&gt;*As you can see I need the variable $theProxy to authenticate the 
&lt;br&gt;password against the proxy. Looking for help in the web, I haven't find 
&lt;br&gt;valid ideas to correct this.
&lt;br&gt;&lt;br&gt;How could I do it? The code, in my opinion is very simple, but I'm not 
&lt;br&gt;able to correct or adapt it to PHP5 with ne new SOAP libraries (functions).
&lt;br&gt;&lt;br&gt;What's wrong? Any idea?
&lt;br&gt;&lt;br&gt;Thank you very much
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changing-version-from-PHP4-to-PHP5-tp26143331p26143331.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26143333</id>
	<title>Changing version from PHP4 to PHP5</title>
	<published>2009-10-31T07:32:38Z</published>
	<updated>2009-10-31T07:32:38Z</updated>
	<author>
		<name>I.N.T. - Luis</name>
	</author>
	<content type="html">Hi everybody,
&lt;br&gt;&lt;br&gt;We have some code written for PHP4 using the SOAP libraries for connect 
&lt;br&gt;as a CLIENT to a web service. The web service SERVER is not ours, we 
&lt;br&gt;don´t know how it is programed. The code is:
&lt;br&gt;&lt;br&gt;require_once('lib/nusoap.php'); // where we are publishing the SOAP 
&lt;br&gt;libraries
&lt;br&gt;&lt;br&gt;function checkUser($user, $pass)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $client = new 
&lt;br&gt;soapclient(&amp;quot;&lt;a href=&quot;http://80.32.91.149:25000/servicioXYZ.asmx?WSDL&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://80.32.91.149:25000/servicioXYZ.asmx?WSDL&lt;/a&gt;&amp;quot;, &amp;quot;wsdl&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $params = array(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'RutaTabla' &amp;nbsp;=&amp;gt; &amp;quot;d:\\ourpw\\&amp;quot;,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'ElUsuario' &amp;nbsp;=&amp;gt; $user,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'ElPassword' =&amp;gt; $pass,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'QuienEs' &amp;nbsp; &amp;nbsp;=&amp;gt; 'CLIENTE'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $theProxy = $client-&amp;gt;getProxy();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $ok = $theProxy-&amp;gt;AutentificaPW($params);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $result = $ok[&amp;quot;AutentificaPWResult&amp;quot;];
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $tagsToSearch = Array(&amp;quot;nombre&amp;quot;, &amp;quot;situacion&amp;quot;, &amp;quot;email&amp;quot;, &amp;quot;codigo&amp;quot;, 
&lt;br&gt;&amp;quot;pagina&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $tagObj = publis_TagsToArray($result, $tagsToSearch); &amp;nbsp;// this 
&lt;br&gt;is a internal function we use
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return $tagObj;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;IT WORKED FINE!!!
&lt;br&gt;&lt;br&gt;Now we have actualized our systems to PHP5 obligatory.
&lt;br&gt;&lt;br&gt;The error is:
&lt;br&gt;&lt;br&gt;*Warning*: SoapClient::SoapClient() expects parameter 2 to be array, 
&lt;br&gt;string given in *xxx.php* on line *13*
&lt;br&gt;&lt;br&gt;*Fatal error*: Uncaught SoapFault exception: [Client] 
&lt;br&gt;SoapClient::SoapClient() [&amp;lt;a 
&lt;br&gt;href='soapclient.soapclient'&amp;gt;soapclient.soapclient&amp;lt;/a&amp;gt;]: Invalid 
&lt;br&gt;parameters in xxx.php:13 Stack trace: #0 xxx.php(13): 
&lt;br&gt;SoapClient-&amp;gt;SoapClient('&lt;a href=&quot;http://80.32.91...'&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://80.32.91...'&lt;/a&gt;, 'wsdl') #1 xxx.php(163): 
&lt;br&gt;checkUser('XXX', 'YYY') #2 {main} thrown in *xxx.php* on line *13
&lt;br&gt;&lt;br&gt;*OK, looking for &amp;quot;new&amp;quot; SOAP functions, I change my code as:
&lt;br&gt;&lt;br&gt;//require_once('lib/nusoap.php'); // using internal SOAP PHP libraries
&lt;br&gt;&lt;br&gt;function checkUser($user, $pass)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $client = new 
&lt;br&gt;soapclient(&amp;quot;&lt;a href=&quot;http://80.32.91.149:25000/servicioXYZ.asmx?WSDL&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://80.32.91.149:25000/servicioXYZ.asmx?WSDL&lt;/a&gt;&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $params = array(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'RutaTabla' &amp;nbsp;=&amp;gt; &amp;quot;d:\\ourpw\\&amp;quot;,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'ElUsuario' &amp;nbsp;=&amp;gt; $user,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'ElPassword' =&amp;gt; $pass,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'QuienEs' &amp;nbsp; &amp;nbsp;=&amp;gt; 'CLIENTE'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $theProxy = $client-&amp;gt;getProxy();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $ok = $theProxy-&amp;gt;AutentificaPW($params);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $result = $ok[&amp;quot;AutentificaPWResult&amp;quot;];
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $tagsToSearch = Array(&amp;quot;nombre&amp;quot;, &amp;quot;situacion&amp;quot;, &amp;quot;email&amp;quot;, &amp;quot;codigo&amp;quot;, 
&lt;br&gt;&amp;quot;pagina&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $tagObj = publis_TagsToArray($result, $tagsToSearch); &amp;nbsp;// this 
&lt;br&gt;is a internal function we use
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return $tagObj;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;The error is:
&lt;br&gt;&lt;br&gt;*Fatal error*: Uncaught SoapFault exception: [Client] Function 
&lt;br&gt;(&amp;quot;getProxy&amp;quot;) is not a valid method for this service in xxx.php:22 Stack 
&lt;br&gt;trace: #0 [internal function]: SoapClient-&amp;gt;__call('getProxy', Array) #1 
&lt;br&gt;xxx.php(22): SoapClient-&amp;gt;getProxy() #2 xxx.php(163): checkUser('XXX', 
&lt;br&gt;'YYY') #3 {main} thrown in *xxx.php* on line *22
&lt;br&gt;&lt;br&gt;*As you can see I need the variable $theProxy to authenticate the 
&lt;br&gt;password against the proxy. Looking for help in the web, I haven't find 
&lt;br&gt;valid ideas to correct this.
&lt;br&gt;&lt;br&gt;How could I do it? The code, in my opinion is very simple, but I'm not 
&lt;br&gt;able to correct or adapt it to PHP5 with ne new SOAP libraries (functions).
&lt;br&gt;&lt;br&gt;What's wrong? Any idea?
&lt;br&gt;&lt;br&gt;Thank you very much
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Changing-version-from-PHP4-to-PHP5-tp26143333p26143333.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26028109</id>
	<title>Supporting WSDL V2.0</title>
	<published>2009-10-23T08:06:18Z</published>
	<updated>2009-10-23T08:06:18Z</updated>
	<author>
		<name>Richard Quadling</name>
	</author>
	<content type="html">Hi.
&lt;br&gt;&lt;br&gt;According to the current documentation, the SOAP extension for PHP
&lt;br&gt;only supports WSDL 1.1.
&lt;br&gt;&lt;br&gt;Are there any plans to support WSDL 2.0
&lt;br&gt;&lt;br&gt;What do you all mainly work with?
&lt;br&gt;&lt;br&gt;I'm starting out to provide web services using a web service helper
&lt;br&gt;(&lt;a href=&quot;http://www.jool.nl/jool-tech-zone/webservice-helper/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jool.nl/jool-tech-zone/webservice-helper/&lt;/a&gt;) which is
&lt;br&gt;generating a WSDL 1.1 file.
&lt;br&gt;&lt;br&gt;Any info would be appreciated.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Richard.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;-----
&lt;br&gt;Richard Quadling
&lt;br&gt;&amp;quot;Standing on the shoulders of some very clever giants!&amp;quot;
&lt;br&gt;EE : &lt;a href=&quot;http://www.experts-exchange.com/M_248814.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.experts-exchange.com/M_248814.html&lt;/a&gt;&lt;br&gt;Zend Certified Engineer : &lt;a href=&quot;http://zend.com/zce.php?c=ZEND002498&amp;r=213474731&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://zend.com/zce.php?c=ZEND002498&amp;r=213474731&lt;/a&gt;&lt;br&gt;ZOPA : &lt;a href=&quot;http://uk.zopa.com/member/RQuadling&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://uk.zopa.com/member/RQuadling&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Soap Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Supporting-WSDL-V2.0-tp26028109p26028109.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26005921</id>
	<title>Error: no data present after HTTP headers</title>
	<published>2009-10-22T01:28:03Z</published>
	<updated>2009-10-22T01:28:03Z</updated>
	<author>
		<name>AJR65</name>
	</author>
	<content type="html">I got a soapclient that most of the time doesn't give a response or it returns Error: HTTP Error: no data present after HTTP headers or it returns the right tekst.
&lt;br&gt;I am testing this as a prove of concept so it on my localhost.
&lt;br&gt;&lt;br&gt;Does $client-&amp;gt;Call('HelloWorld',array()); wait for an answer and than start the rest of the script or not and if not how can I change that?
&lt;br&gt;&lt;br&gt;here is my code
&lt;br&gt;&amp;lt;?php
&lt;br&gt;// no direct access
&lt;br&gt;echo '&amp;lt;div class=&amp;quot;componentheading&amp;quot;&amp;gt;HW Titel
&lt;br&gt;&amp;lt;/div&amp;gt;';
&lt;br&gt;&amp;nbsp;print rand(1,100) . &amp;quot;&amp;lt;br&amp;gt;&amp;quot; ;
&lt;br&gt;&lt;br&gt;&lt;br&gt;require_once(&amp;quot;nusoap.php&amp;quot;);
&lt;br&gt;$client = new nusoap_client('&lt;a href=&quot;http://localhost/ServiceDJ/IsapiDJ.dll/soap/IServiceDJ'&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost/ServiceDJ/IsapiDJ.dll/soap/IServiceDJ'&lt;/a&gt;, false);
&lt;br&gt;&lt;br&gt;$antwoord = $client-&amp;gt;Call('HelloWorld',array());
&lt;br&gt;&lt;br&gt;// Check for a fault
&lt;br&gt;if ($client-&amp;gt;fault) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; echo '&amp;lt;p&amp;gt;&lt;b&gt;Fault: ';
&lt;br&gt;&amp;nbsp; &amp;nbsp; print_r($antwoord);
&lt;br&gt;&amp;nbsp; &amp;nbsp; echo '&lt;/b&gt;&amp;lt;/p&amp;gt;';
&lt;br&gt;} else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; // Check for errors
&lt;br&gt;&amp;nbsp; &amp;nbsp; $err = $client-&amp;gt;getError();
&lt;br&gt;&amp;nbsp; &amp;nbsp; if ($err) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Display the error
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo '&amp;lt;p&amp;gt;&lt;b&gt;Error: ' . $err . '&lt;/b&gt;&amp;lt;/p&amp;gt;';
&lt;br&gt;&amp;nbsp; &amp;nbsp; } else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Display the result
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print_r($antwoord) . &amp;quot;&amp;lt;br&amp;gt;&amp;quot; ;
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;?&amp;gt;
&lt;br&gt;&lt;br&gt;The webservice is made in Delphi so I can change things at that site as well.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Error%3A-no-data-present-after-HTTP-headers-tp26005921p26005921.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25977870</id>
	<title>Re: SOAP message structure passing between SOAP client/server</title>
	<published>2009-10-20T09:02:52Z</published>
	<updated>2009-10-20T09:02:52Z</updated>
	<author>
		<name>noddle</name>
	</author>
	<content type="html">OK, last one for a while. It's not easy to lean PHP, XML, XSD, SOAP, &amp; WSDL all at the same time.
&lt;br&gt;&lt;br&gt;All my grief was again a namespace problem because simplexml_load_string didn't know what to do with the namespace prefix 'tnt' that I had to prepend to the Amazon schemas in order to get the PHP WSDL &amp; SOAP extension to create the PHP types out of the complex types in the schemas and so simplexml_load_string was returning FALSE.
&lt;br&gt;&lt;br&gt;I changed this:
&lt;br&gt;$xmlobj &amp;nbsp; &amp;nbsp; &amp;nbsp;= simplexml_load_string($xmlstr);
&lt;br&gt;&lt;br&gt;to this:
&lt;br&gt;$xmlobj &amp;nbsp; &amp;nbsp; &amp;nbsp;= simplexml_load_string($xmlstr, NULL, NULL, &amp;quot;tnt&amp;quot;, true);
&lt;br&gt;&lt;br&gt;and now get back a simplexml object as expected.
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;noddle wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hello,
&lt;br&gt;&lt;br&gt;I am trying to write a SOAP client / server app &amp; cannot get the SOAP message structures passed back and forth between the client &amp; servers:
&lt;br&gt;&lt;br&gt;Attached are the WSDL, XSDs, XML example, &amp; PHP that is causing me so much grieve.
&lt;br&gt;&lt;br&gt;Has anyone any ideal what I am doing wrong?
&lt;br&gt;&lt;br&gt;I've not attached some of the schemas and skeleton php files. 
&lt;br&gt;&lt;br&gt;This is Mac osX, PHP 5.3 with SOAP extension &amp; apache 2.2.x. 
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/AmazonServices.wsdl&quot; target=&quot;_top&quot;&gt;AmazonServices.wsdl&lt;/a&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/AmazonServicesClient.php&quot; target=&quot;_top&quot;&gt;AmazonServicesClient.php&lt;/a&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/AmazonServicesServer.php&quot; target=&quot;_top&quot;&gt;AmazonServicesServer.php&lt;/a&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/amzn-envelope.xml&quot; target=&quot;_top&quot;&gt;amzn-envelope.xml&lt;/a&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/AmazonServices.php&quot; target=&quot;_top&quot;&gt;AmazonServices.php&lt;/a&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/XMLlibrary.php&quot; target=&quot;_top&quot;&gt;XMLlibrary.php&lt;/a&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/amzn-envelope.xsd&quot; target=&quot;_top&quot;&gt;amzn-envelope.xsd&lt;/a&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/amzn-base.xsd&quot; target=&quot;_top&quot;&gt;amzn-base.xsd&lt;/a&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/amzn-header.xsd&quot; target=&quot;_top&quot;&gt;amzn-header.xsd&lt;/a&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/FulfillmentCenter.xsd&quot; target=&quot;_top&quot;&gt;FulfillmentCenter.xsd&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SOAP-message-structure-passing-between-SOAP-client-server-tp25950961p25977870.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25967875</id>
	<title>Re: SOAP message structure passing between SOAP client/server</title>
	<published>2009-10-19T17:16:09Z</published>
	<updated>2009-10-19T17:16:09Z</updated>
	<author>
		<name>noddle</name>
	</author>
	<content type="html">Well I'm back to square one.
&lt;br&gt;&lt;br&gt;My previous message broke the import of the complex type imported from the schema and so PHP was passing a XML document as a string back and forth between the SOAP client / server making it look like it was working.
&lt;br&gt;&lt;br&gt;Sorry to bother you.</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SOAP-message-structure-passing-between-SOAP-client-server-tp25950961p25967875.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25964818</id>
	<title>Re: SOAP message structure passing between SOAP client/server</title>
	<published>2009-10-19T13:09:40Z</published>
	<updated>2009-10-19T13:09:40Z</updated>
	<author>
		<name>noddle</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;Well I figured it out. It wasn't that the complex types weren't defined, but the my confusion over similarly named existing and newly defined name spaces that seem arbitrary in some examples and well defined URLs in others. 
&lt;br&gt;&lt;br&gt;Anyway, because mangle namespaces seem to be the root of most questions I've seen regarding SOAP and to help other newbies in SOAP, WSDL, and WebSerives I'll port my mistake &amp; correction here:
&lt;br&gt;&lt;br&gt;In my AmazonServices.wsdl file I had:
&lt;br&gt;&lt;br&gt;&amp;lt;wsdl:definitions name=&amp;quot;AmazonServices&amp;quot; targetNamespace=&amp;quot;&lt;a href=&quot;http://127.0.0.1/Amazon/AmazonServices.wsdl&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://127.0.0.1/Amazon/AmazonServices.wsdl&lt;/a&gt;&amp;quot; xmlns:tntsoap=&amp;quot;&lt;a href=&quot;http://127.0.0.1/Amazon/AmazonServices.wsdl&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://127.0.0.1/Amazon/AmazonServices.wsdl&lt;/a&gt;&amp;quot; xmlns:soap=&amp;quot;&lt;a href=&quot;http://schemas.xmlsoap.org/wsdl/soap/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://schemas.xmlsoap.org/wsdl/soap/&lt;/a&gt;&amp;quot; xmlns:wsdl=&amp;quot;&lt;a href=&quot;http://schemas.xmlsoap.org/wsdl/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://schemas.xmlsoap.org/wsdl/&lt;/a&gt;&amp;quot; xmlns:xsd=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;&amp;quot; xmlns:ns=&amp;quot;&lt;a href=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://schemas.xmlsoap.org/soap/encoding/&lt;/a&gt;&amp;quot; xmlns:tnt=&amp;quot;urn:schemas:tnt&amp;quot;&amp;gt;
&lt;br&gt;&lt;br&gt;with needed to be changed to:
&lt;br&gt;&lt;br&gt;&amp;lt;wsdl:definitions name=&amp;quot;AmazonServices&amp;quot; targetNamespace=&amp;quot;&lt;a href=&quot;http://127.0.0.1/Amazon/AmazonServices&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://127.0.0.1/Amazon/AmazonServices&lt;/a&gt;&amp;quot; xmlns:tntsoap=&amp;quot;&lt;a href=&quot;http://127.0.0.1/Amazon/AmazonServices&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://127.0.0.1/Amazon/AmazonServices&lt;/a&gt;&amp;quot; xmlns:soap=&amp;quot;&lt;a href=&quot;http://schemas.xmlsoap.org/wsdl/soap/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://schemas.xmlsoap.org/wsdl/soap/&lt;/a&gt;&amp;quot; xmlns:wsdl=&amp;quot;&lt;a href=&quot;http://schemas.xmlsoap.org/wsdl/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://schemas.xmlsoap.org/wsdl/&lt;/a&gt;&amp;quot; xmlns:xsd=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;&amp;quot; xmlns:ns=&amp;quot;&lt;a href=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://schemas.xmlsoap.org/soap/encoding/&lt;/a&gt;&amp;quot; xmlns:tnt=&amp;quot;urn:schemas:tnt&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;because lower down in the WSDL I defined as the operation endpoint:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;wsdl:operation name=&amp;quot;AmazonServices&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;soap:operation soapAction=&amp;quot;&lt;a href=&quot;http://127.0.0.1/Amazon/AmazonServices&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://127.0.0.1/Amazon/AmazonServices&lt;/a&gt;&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;wsdl:input&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;soap:body use=&amp;quot;literal&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/wsdl:input&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;wsdl:output&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;soap:body use=&amp;quot;literal&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/wsdl:output&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/wsdl:operation&amp;gt;
&lt;br&gt;&lt;br&gt;---
&lt;br&gt;targetNamespace=&amp;quot;&lt;a href=&quot;http://127.0.0.1/Amazon/AmazonServices.wsdl&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://127.0.0.1/Amazon/AmazonServices.wsdl&lt;/a&gt;&amp;quot; xmlns:tntsoap=&amp;quot;&lt;a href=&quot;http://127.0.0.1/Amazon/AmazonServices.wsdl&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://127.0.0.1/Amazon/AmazonServices.wsdl&lt;/a&gt;&amp;quot; 
&lt;br&gt;+++
&lt;br&gt;targetNamespace=&amp;quot;&lt;a href=&quot;http://127.0.0.1/Amazon/AmazonServices&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://127.0.0.1/Amazon/AmazonServices&lt;/a&gt;&amp;quot; xmlns:tntsoap=&amp;quot;&lt;a href=&quot;http://127.0.0.1/Amazon/AmazonServices&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://127.0.0.1/Amazon/AmazonServices&lt;/a&gt;&amp;quot; 
&lt;br&gt;&lt;br&gt;I suppose I could have changed the wsdl:operation endpoint to end as in the wsdl:definitions.
&lt;br&gt;&lt;br&gt;What I don't like is the the operation endpoint defined pointed nowhere until fixed the wsdl:definitions but the soap client or server didn't complain about not being able to bind to the defined endpoint namespace but then I guess that is cloud computing. 
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Andrew
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;noddle wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hello,
&lt;br&gt;&lt;br&gt;I am trying to write a SOAP client / server app &amp; cannot get the SOAP message structures passed back and forth between the client &amp; servers:
&lt;br&gt;&lt;br&gt;Attached are the WSDL, XSDs, XML example, &amp; PHP that is causing me so much grieve.
&lt;br&gt;&lt;br&gt;Has anyone any ideal what I am doing wrong?
&lt;br&gt;&lt;br&gt;I've not attached some of the schemas and skeleton php files. 
&lt;br&gt;&lt;br&gt;This is Mac osX, PHP 5.3 with SOAP extension &amp; apache 2.2.x. 
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/AmazonServices.wsdl&quot; target=&quot;_top&quot;&gt;AmazonServices.wsdl&lt;/a&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/AmazonServicesClient.php&quot; target=&quot;_top&quot;&gt;AmazonServicesClient.php&lt;/a&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/AmazonServicesServer.php&quot; target=&quot;_top&quot;&gt;AmazonServicesServer.php&lt;/a&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/amzn-envelope.xml&quot; target=&quot;_top&quot;&gt;amzn-envelope.xml&lt;/a&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/AmazonServices.php&quot; target=&quot;_top&quot;&gt;AmazonServices.php&lt;/a&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/XMLlibrary.php&quot; target=&quot;_top&quot;&gt;XMLlibrary.php&lt;/a&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/amzn-envelope.xsd&quot; target=&quot;_top&quot;&gt;amzn-envelope.xsd&lt;/a&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/amzn-base.xsd&quot; target=&quot;_top&quot;&gt;amzn-base.xsd&lt;/a&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/amzn-header.xsd&quot; target=&quot;_top&quot;&gt;amzn-header.xsd&lt;/a&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/FulfillmentCenter.xsd&quot; target=&quot;_top&quot;&gt;FulfillmentCenter.xsd&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SOAP-message-structure-passing-between-SOAP-client-server-tp25950961p25964818.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25963175</id>
	<title>Re: SOAP message structure passing between SOAP client/server</title>
	<published>2009-10-19T11:24:33Z</published>
	<updated>2009-10-19T11:24:33Z</updated>
	<author>
		<name>noddle</name>
	</author>
	<content type="html">Also it would propably help if I showed the output I am currently getting from the SOAP client/server. 
&lt;br&gt;&lt;br&gt;This is from the client PHP SOAP extension output functions. The first part of the output isjust where I echoed the XML file before converting it to a PHP array structure to pass through the SOAP server class call.
&lt;br&gt;&lt;br&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;lt;tnt:AmazonEnvelope xmlns:tnt=&amp;quot;urn:schemas:tnt&amp;quot; xmlns:xsi=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/a&gt;&amp;quot; xsi:schemaLocation=&amp;quot;urn:schemas:tnt schemas/Amazon/amzn-envelope.xsd&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;tnt:Header&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;tnt:DocumentVersion&amp;gt;1.1&amp;lt;/tnt:DocumentVersion&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;tnt:MerchantIdentifier&amp;gt;M_STORENAME_8675309&amp;lt;/tnt:MerchantIdentifier&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;tnt:OverrideReleaseId&amp;gt;1.0&amp;lt;/tnt:OverrideReleaseId&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;/tnt:Header&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;tnt:MessageType&amp;gt;FulfillmentCenter&amp;lt;/tnt:MessageType&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;lt;tnt:PurgeAndReplace&amp;gt;true&amp;lt;/tnt:PurgeAndReplace&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;tnt:EffectiveDate&amp;gt;2009-10-31T00:00:00&amp;lt;/tnt:EffectiveDate&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;tnt:Message&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;tnt:MessageID&amp;gt;8675309&amp;lt;/tnt:MessageID&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;tnt:OperationType&amp;gt;Update&amp;lt;/tnt:OperationType&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;tnt:FulfillmentCenter&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tnt:FulfillmentCenterID&amp;gt;TrollAndToadStore&amp;lt;/tnt:FulfillmentCenterID&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tnt:SupportsInStorePickup&amp;gt;true&amp;lt;/tnt:SupportsInStorePickup&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tnt:OperatingHours&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tnt:Monday&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tnt:Open&amp;gt;09:00:00&amp;lt;/tnt:Open&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tnt:Close&amp;gt;17:00:00&amp;lt;/tnt:Close&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/tnt:Monday&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tnt:Tuesday&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tnt:Open&amp;gt;09:00:00&amp;lt;/tnt:Open&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tnt:Close&amp;gt;17:00:00&amp;lt;/tnt:Close&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/tnt:Tuesday&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tnt:Wednesday&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tnt:Open&amp;gt;09:00:00&amp;lt;/tnt:Open&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tnt:Close&amp;gt;17:00:00&amp;lt;/tnt:Close&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/tnt:Wednesday&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tnt:Thursday&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tnt:Open&amp;gt;09:00:00&amp;lt;/tnt:Open&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tnt:Close&amp;gt;17:00:00&amp;lt;/tnt:Close&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/tnt:Thursday&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tnt:Friday&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tnt:Open&amp;gt;09:00:00&amp;lt;/tnt:Open&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tnt:Close&amp;gt;17:00:00&amp;lt;/tnt:Close&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/tnt:Friday&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tnt:Saturday&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tnt:Open&amp;gt;09:00:00&amp;lt;/tnt:Open&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tnt:Close&amp;gt;17:00:00&amp;lt;/tnt:Close&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/tnt:Saturday&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tnt:Sunday&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tnt:Open&amp;gt;09:00:00&amp;lt;/tnt:Open&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tnt:Close&amp;gt;17:00:00&amp;lt;/tnt:Close&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/tnt:Sunday&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/tnt:OperatingHours&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/tnt:FulfillmentCenter&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;/tnt:Message&amp;gt;
&lt;br&gt;&amp;lt;/tnt:AmazonEnvelope&amp;gt;
&lt;br&gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;Dumping request headers: &amp;lt;br/&amp;gt;POST /Amazon/AmazonServicesServer.php HTTP/1.1
&lt;br&gt;Host: 127.0.0.1
&lt;br&gt;Connection: Keep-Alive
&lt;br&gt;User-Agent: PHP-SOAP/5.3.0
&lt;br&gt;Content-Type: application/soap+xml; charset=utf-8; action=&amp;quot;&lt;a href=&quot;http://127.0.0.1/Amazon/AmazonServices&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://127.0.0.1/Amazon/AmazonServices&lt;/a&gt;&amp;quot;
&lt;br&gt;Content-Length: 222
&lt;br&gt;&lt;br&gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;Dumping request: &amp;lt;/br/&amp;gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;lt;env:Envelope xmlns:env=&amp;quot;&lt;a href=&quot;http://www.w3.org/2003/05/soap-envelope&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2003/05/soap-envelope&lt;/a&gt;&amp;quot; xmlns:ns1=&amp;quot;&lt;a href=&quot;http://127.0.0.1/Amazon/AmazonServices.wsdl&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://127.0.0.1/Amazon/AmazonServices.wsdl&lt;/a&gt;&amp;quot;&amp;gt;&amp;lt;env:Body&amp;gt;&amp;lt;ns1:AmazonServicesPut/&amp;gt;&amp;lt;/env:Body&amp;gt;&amp;lt;/env:Envelope&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;Dumping response headers: &amp;lt;br/&amp;gt;HTTP/1.1 200 OK
&lt;br&gt;Date: Mon, 19 Oct 2009 13:16:28 GMT
&lt;br&gt;Server: Apache/2.2.11 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0
&lt;br&gt;X-Powered-By: PHP/5.3.0
&lt;br&gt;Content-Length: 222
&lt;br&gt;Keep-Alive: timeout=5, max=100
&lt;br&gt;Connection: Keep-Alive
&lt;br&gt;Content-Type: application/soap+xml; charset=utf-8
&lt;br&gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;Dumping response: &amp;lt;br/&amp;gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;lt;env:Envelope xmlns:env=&amp;quot;&lt;a href=&quot;http://www.w3.org/2003/05/soap-envelope&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2003/05/soap-envelope&lt;/a&gt;&amp;quot; xmlns:ns1=&amp;quot;&lt;a href=&quot;http://127.0.0.1/Amazon/AmazonServices.wsdl&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://127.0.0.1/Amazon/AmazonServices.wsdl&lt;/a&gt;&amp;quot;&amp;gt;&amp;lt;env:Body&amp;gt;&amp;lt;ns1:AmazonServicesGet/&amp;gt;&amp;lt;/env:Body&amp;gt;&amp;lt;/env:Envelope&amp;gt;
&lt;br&gt;&amp;lt;br/&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;br/&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;noddle wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hello,
&lt;br&gt;&lt;br&gt;I am trying to write a SOAP client / server app &amp; cannot get the SOAP message structures passed back and forth between the client &amp; servers:
&lt;br&gt;&lt;br&gt;Attached are the WSDL, XSDs, XML example, &amp; PHP that is causing me so much grieve.
&lt;br&gt;&lt;br&gt;Has anyone any ideal what I am doing wrong?
&lt;br&gt;&lt;br&gt;I've not attached some of the schemas and skeleton php files. 
&lt;br&gt;&lt;br&gt;This is Mac osX, PHP 5.3 with SOAP extension &amp; apache 2.2.x. 
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/AmazonServices.wsdl&quot; target=&quot;_top&quot;&gt;AmazonServices.wsdl&lt;/a&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/AmazonServicesClient.php&quot; target=&quot;_top&quot;&gt;AmazonServicesClient.php&lt;/a&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/AmazonServicesServer.php&quot; target=&quot;_top&quot;&gt;AmazonServicesServer.php&lt;/a&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/amzn-envelope.xml&quot; target=&quot;_top&quot;&gt;amzn-envelope.xml&lt;/a&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/AmazonServices.php&quot; target=&quot;_top&quot;&gt;AmazonServices.php&lt;/a&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/XMLlibrary.php&quot; target=&quot;_top&quot;&gt;XMLlibrary.php&lt;/a&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/amzn-envelope.xsd&quot; target=&quot;_top&quot;&gt;amzn-envelope.xsd&lt;/a&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/amzn-base.xsd&quot; target=&quot;_top&quot;&gt;amzn-base.xsd&lt;/a&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/amzn-header.xsd&quot; target=&quot;_top&quot;&gt;amzn-header.xsd&lt;/a&gt;&lt;a href=&quot;http://www.nabble.com/file/p25950961/FulfillmentCenter.xsd&quot; target=&quot;_top&quot;&gt;FulfillmentCenter.xsd&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SOAP-message-structure-passing-between-SOAP-client-server-tp25950961p25963175.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25950961</id>
	<title>SOAP message structure passing between SOAP client/server</title>
	<published>2009-10-18T15:05:14Z</published>
	<updated>2009-10-18T15:05:14Z</updated>
	<author>
		<name>noddle</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I am trying to write a SOAP client / server app &amp; cannot get the SOAP message structures passed back and forth between the client &amp; servers:
&lt;br&gt;&lt;br&gt;Attached are the WSDL, XSDs, XML example, &amp; PHP that is causing me so much grieve.
&lt;br&gt;&lt;br&gt;Has anyone any ideal what I am doing wrong?
&lt;br&gt;&lt;br&gt;I've not attached some of the schemas and skeleton php files. 
&lt;br&gt;&lt;br&gt;This is Mac osX, PHP 5.3 with SOAP extension &amp; apache 2.2.x. 
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/file/p25950961/AmazonServices.wsdl&quot; target=&quot;_top&quot;&gt;AmazonServices.wsdl&lt;/a&gt;&lt;a href=&quot;http://old.nabble.com/file/p25950961/AmazonServicesClient.php&quot; target=&quot;_top&quot;&gt;AmazonServicesClient.php&lt;/a&gt;&lt;a href=&quot;http://old.nabble.com/file/p25950961/AmazonServicesServer.php&quot; target=&quot;_top&quot;&gt;AmazonServicesServer.php&lt;/a&gt;&lt;a href=&quot;http://old.nabble.com/file/p25950961/amzn-envelope.xml&quot; target=&quot;_top&quot;&gt;amzn-envelope.xml&lt;/a&gt;&lt;a href=&quot;http://old.nabble.com/file/p25950961/AmazonServices.php&quot; target=&quot;_top&quot;&gt;AmazonServices.php&lt;/a&gt;&lt;a href=&quot;http://old.nabble.com/file/p25950961/XMLlibrary.php&quot; target=&quot;_top&quot;&gt;XMLlibrary.php&lt;/a&gt;&lt;a href=&quot;http://old.nabble.com/file/p25950961/amzn-envelope.xsd&quot; target=&quot;_top&quot;&gt;amzn-envelope.xsd&lt;/a&gt;&lt;a href=&quot;http://old.nabble.com/file/p25950961/amzn-base.xsd&quot; target=&quot;_top&quot;&gt;amzn-base.xsd&lt;/a&gt;&lt;a href=&quot;http://old.nabble.com/file/p25950961/amzn-header.xsd&quot; target=&quot;_top&quot;&gt;amzn-header.xsd&lt;/a&gt;&lt;a href=&quot;http://old.nabble.com/file/p25950961/FulfillmentCenter.xsd&quot; target=&quot;_top&quot;&gt;FulfillmentCenter.xsd&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SOAP-message-structure-passing-between-SOAP-client-server-tp25950961p25950961.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25931177</id>
	<title>Re: Help with Soap Client</title>
	<published>2009-10-16T12:40:30Z</published>
	<updated>2009-10-16T12:40:30Z</updated>
	<author>
		<name>noddle</name>
	</author>
	<content type="html">First retrieve the WSDLs for both services and look at the XML line at the top to see what encoding is specified. Then set your soap client to use the same encoding when you create it. Most of the time this is set to UTF-8.
&lt;br&gt;&lt;br&gt;Ciao,
&lt;br&gt;Andrew
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;EPA WC wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hi All,
&lt;br&gt;&lt;br&gt;I am using the following code to build a SoapClient with some web service:
&lt;br&gt;&lt;br&gt;////////////////
&lt;br&gt;&amp;lt;?php
&lt;br&gt;&lt;br&gt;ini_set(&amp;quot;soap.wsdl_cache_enabled&amp;quot;, &amp;quot;0&amp;quot;);
&lt;br&gt;ini_set('default_socket_timeout', 600);
&lt;br&gt;$client = new SoapClient(&amp;quot;&lt;a href=&quot;http://iaspub.epa.gov/webservices/StationService/index.html?WSDL&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://iaspub.epa.gov/webservices/StationService/index.html?WSDL&lt;/a&gt;&amp;quot;,array('trace'
&lt;br&gt;=&amp;gt; 1));
&lt;br&gt;try {
&lt;br&gt;&amp;nbsp;$sc = $client-&amp;gt;getStationCount(43.1,43.5,-83.5,-83.1);
&lt;br&gt;&amp;nbsp;print $sc;
&lt;br&gt;} catch (SoapFault $exception) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; echo $exception;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;?&amp;gt;
&lt;br&gt;//////////////
&lt;br&gt;&lt;br&gt;But I got the following error:
&lt;br&gt;///////////////
&lt;br&gt;Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing
&lt;br&gt;WSDL: Unspecified encodingStyle in /var/www/myphp/wqxststest.php:5
&lt;br&gt;Stack trace: #0 /var/www/myphp/wqxststest.php(5):
&lt;br&gt;SoapClient-&amp;gt;SoapClient('&lt;a href=&quot;http://iaspub.e...'&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://iaspub.e...'&lt;/a&gt;, Array) #1 {main} thrown
&lt;br&gt;in /var/www/myphp/wqxststest.php on line 5
&lt;br&gt;///////////////
&lt;br&gt;&lt;br&gt;Also when I tried same code (See below) with another service, it seems
&lt;br&gt;working fine.
&lt;br&gt;///////////////
&lt;br&gt;&amp;lt;?php
&lt;br&gt;$huc = $_REQUEST['huc'];
&lt;br&gt;ini_set(&amp;quot;soap.wsdl_cache_enabled&amp;quot;, &amp;quot;0&amp;quot;);
&lt;br&gt;ini_set('default_socket_timeout', 600);
&lt;br&gt;$client = new SoapClient(&amp;quot;&lt;a href=&quot;http://iaspub.epa.gov/webservices/WatershedSummaryService/index.html?WSDL&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://iaspub.epa.gov/webservices/WatershedSummaryService/index.html?WSDL&lt;/a&gt;&amp;quot;,array('trace'
&lt;br&gt;=&amp;gt; 1));
&lt;br&gt;try {
&lt;br&gt;&amp;nbsp;$client-&amp;gt;getCharacteristicSummary($huc);
&lt;br&gt;&amp;nbsp;print $client-&amp;gt;__getLastResponse();
&lt;br&gt;} catch (SoapFault $exception) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; echo $exception;
&lt;br&gt;}
&lt;br&gt;///////////////
&lt;br&gt;?&amp;gt;
&lt;br&gt;&lt;br&gt;I tried to find what's causing this error on Google but no success.
&lt;br&gt;Anyone know what's going on?
&lt;br&gt;&lt;br&gt;Your help is highly appreciated!
&lt;br&gt;&lt;br&gt;Tom
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Soap Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Help-with-Soap-Client-tp23119586p25931177.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25930937</id>
	<title>Re: SOAP-ERROR: Parsing WSDL</title>
	<published>2009-10-16T12:23:45Z</published>
	<updated>2009-10-16T12:23:45Z</updated>
	<author>
		<name>noddle</name>
	</author>
	<content type="html">Hello ha75,
&lt;br&gt;&lt;br&gt;If you go to the URL listed in the new SoapClient call you make in your web browser you will get an error message from that web server saying that URL does not exist.
&lt;br&gt;&lt;br&gt;That is your problem.
&lt;br&gt;&lt;br&gt;Ciao,
&lt;br&gt;Andrew
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;ha75 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hello,
&lt;br&gt;&lt;br&gt;I am trying to connect to a webservice with WSDL but get the following 
&lt;br&gt;error-message:
&lt;br&gt;&lt;br&gt;SOAP-ERROR: Parsing WSDL: Unknown required WSDL extension 
&lt;br&gt;'&lt;a href=&quot;http://schemas.xmlsoap.org/wsdl/soap/'&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://schemas.xmlsoap.org/wsdl/soap/'&lt;/a&gt;&lt;br&gt;&lt;br&gt;This is how I try to instanciate the Client:
&lt;br&gt;&lt;br&gt;$client=new 
&lt;br&gt;SoapClient('&lt;a href=&quot;http://api.rkd.reuters.com/schemas/wsdl/Charts_1_HttpAndRKDToken.wsdl');&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://api.rkd.reuters.com/schemas/wsdl/Charts_1_HttpAndRKDToken.wsdl');&lt;/a&gt;&lt;br&gt;&lt;br&gt;I am new to webservices and therefore have no idea what is the problem 
&lt;br&gt;and what might be a solution to this. Could anyone help me?
&lt;br&gt;&lt;br&gt;Thank you!
&lt;br&gt;Harald
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Soap Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SOAP-ERROR%3A-Parsing-WSDL-tp24697549p25930937.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25930863</id>
	<title>Re: SoapClient/WSDL Port Problem</title>
	<published>2009-10-16T12:18:39Z</published>
	<updated>2009-10-16T12:18:39Z</updated>
	<author>
		<name>noddle</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I'd don't know how new you are to web services so I'll have to assume you substituted &lt;a href=&quot;http://crash:8090/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://crash:8090/&lt;/a&gt;&amp;nbsp;for the real location because crash is not a valid name, if you fix that 
&lt;br&gt;you may fix the problem. 
&lt;br&gt;&lt;br&gt;Rewrite to line in the WSDL to say:
&lt;br&gt;&lt;br&gt;&amp;lt;xs:include schemaLocation=&amp;quot;../schemas/flightHazardsService/request_flight_hazards.xsd&amp;quot;/&amp;gt;
&lt;br&gt;&lt;br&gt;because the wsdl &amp; schemas you have here is located I suppose in a directory structure like this:
&lt;br&gt;&lt;br&gt;wsdl/flightHazardsService.wsdl
&lt;br&gt;&amp;
&lt;br&gt;schemas/request_flight_hazards.xsd
&lt;br&gt;&lt;br&gt;Ciao,
&lt;br&gt;Andrew
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;brent.ertz wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hello All,
&lt;br&gt;&lt;br&gt;I am trying to use PHP5 SoapClient to integrate a web-service that is running on a specific port.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://crash:8090/FlightHazardsService?wsdl&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://crash:8090/FlightHazardsService?wsdl&lt;/a&gt;&lt;br&gt;&lt;br&gt;The wsdl contains several xs:include/import statements, an example is shown below.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;xs:include schemaLocation=&amp;quot;&lt;a href=&quot;http://crash:8090/FlightHazardsService?xsd=../schemas/flightHazardsService/request_flight_hazards.xsd&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://crash:8090/FlightHazardsService?xsd=../schemas/flightHazardsService/request_flight_hazards.xsd&lt;/a&gt;&amp;quot;/&amp;gt;
&lt;br&gt;&lt;br&gt;Whenever I try to create a SoapClient, I get the following error. &amp;nbsp;I see that the port (8090) is not included in the url below and assume that it why things are not working.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [WSDL] SOAP-ERROR: Parsing Schema: can't import schema from '&lt;a href=&quot;http://crash/FlightHazardsService?xsd=../schemas/owsExceptionReport.xsd'&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://crash/FlightHazardsService?xsd=../schemas/owsExceptionReport.xsd'&lt;/a&gt;&lt;br&gt;&lt;br&gt;Here is the code that I am using to create the SoapClient.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $soapClient = new SoapClient(&amp;quot;&lt;a href=&quot;http://crash:8090/FlightHazardsService?wsdl&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://crash:8090/FlightHazardsService?wsdl&lt;/a&gt;&amp;quot;,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; array('soap_version' =&amp;gt; SOAP_1_2,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'trace' =&amp;gt; 1));
&lt;br&gt;&lt;br&gt;Can anyone offer advice on how to resolve this issue?
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Brent
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SoapClient-WSDL-Port-Problem-tp24954806p25930863.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25930499</id>
	<title>Re: Get values from wsdl:types</title>
	<published>2009-10-16T11:53:25Z</published>
	<updated>2009-10-16T11:53:25Z</updated>
	<author>
		<name>noddle</name>
	</author>
	<content type="html">Hello Marco,
&lt;br&gt;&lt;br&gt;I was looking to do the same thing. The best tool I have been able to find so far is at:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://trac.substring.no/url/pst/browser/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.substring.no/url/pst/browser/&lt;/a&gt;&amp;nbsp;(PST!)
&lt;br&gt;&lt;br&gt;I don't know yet how robust it is though.
&lt;br&gt;&lt;br&gt;Ciao,
&lt;br&gt;Andrew
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Marco-172 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;I need to read the values from &amp;lt;wsdl:types&amp;gt;, but I don't find how to
&lt;br&gt;do this using SOAPClient.
&lt;br&gt;&lt;br&gt;I have an WSDL with this types:
&lt;br&gt;&lt;br&gt;&amp;lt;wsdl:types&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;xsd:schema targetNamespace=&amp;quot;&lt;a href=&quot;http://soap.domain.com/v2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://soap.domain.com/v2&lt;/a&gt;&amp;quot;
&lt;br&gt;xmlns=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;simpleType name=&amp;quot;Language&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;restriction base=&amp;quot;string&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;enumeration value=&amp;quot;EN&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;enumeration value=&amp;quot;DE&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;enumeration value=&amp;quot;ES&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;enumeration value=&amp;quot;FR&amp;quot;/&amp;gt;	
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;enumeration value=&amp;quot;GR&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;enumeration value=&amp;quot;IT&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;enumeration value=&amp;quot;PL&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;enumeration value=&amp;quot;RU&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/restriction&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/simpleType&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;complexType name=&amp;quot;Access&amp;quot;&amp;gt;	
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;account&amp;quot; type=&amp;quot;tns:Account&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;subAccount&amp;quot; type=&amp;quot;tns:Account&amp;quot; minOccurs=&amp;quot;0&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;reference&amp;quot; type=&amp;quot;string&amp;quot; minOccurs=&amp;quot;0&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;attribute name=&amp;quot;language&amp;quot; type=&amp;quot;tns:Language&amp;quot; use=&amp;quot;optional&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/complexType&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/xsd:schema&amp;gt;
&lt;br&gt;&amp;lt;/wsdl:types&amp;gt;
&lt;br&gt;&lt;br&gt;Using the &amp;quot;__getTypes()&amp;quot; function only returns something like this:
&lt;br&gt;&lt;br&gt;array
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 =&amp;gt; string 'string Language' (length=15)
&lt;br&gt;&amp;nbsp; &amp;nbsp; 1 =&amp;gt; string 'struct Access {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Account account; Account subAccount;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string reference;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; boolean testMode;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Language language;
&lt;br&gt;&amp;nbsp; &amp;nbsp; }' (length=114)
&lt;br&gt;&lt;br&gt;Is it possible to read the &amp;quot;enumeration&amp;quot; values from the &amp;quot;Language&amp;quot;
&lt;br&gt;type or must this be done using an XML Parser!?
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Marco
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Soap Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Get-values-from-wsdl%3Atypes-tp25887884p25930499.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25887884</id>
	<title>Get values from wsdl:types</title>
	<published>2009-10-14T02:24:41Z</published>
	<updated>2009-10-14T02:24:41Z</updated>
	<author>
		<name>Marco-172</name>
	</author>
	<content type="html">I need to read the values from &amp;lt;wsdl:types&amp;gt;, but I don't find how to
&lt;br&gt;do this using SOAPClient.
&lt;br&gt;&lt;br&gt;I have an WSDL with this types:
&lt;br&gt;&lt;br&gt;&amp;lt;wsdl:types&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;xsd:schema targetNamespace=&amp;quot;&lt;a href=&quot;http://soap.domain.com/v2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://soap.domain.com/v2&lt;/a&gt;&amp;quot;
&lt;br&gt;xmlns=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;simpleType name=&amp;quot;Language&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;restriction base=&amp;quot;string&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;enumeration value=&amp;quot;EN&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;enumeration value=&amp;quot;DE&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;enumeration value=&amp;quot;ES&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;enumeration value=&amp;quot;FR&amp;quot;/&amp;gt;	
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;enumeration value=&amp;quot;GR&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;enumeration value=&amp;quot;IT&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;enumeration value=&amp;quot;PL&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;enumeration value=&amp;quot;RU&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/restriction&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/simpleType&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;complexType name=&amp;quot;Access&amp;quot;&amp;gt;	
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;account&amp;quot; type=&amp;quot;tns:Account&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;subAccount&amp;quot; type=&amp;quot;tns:Account&amp;quot; minOccurs=&amp;quot;0&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;reference&amp;quot; type=&amp;quot;string&amp;quot; minOccurs=&amp;quot;0&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;attribute name=&amp;quot;language&amp;quot; type=&amp;quot;tns:Language&amp;quot; use=&amp;quot;optional&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/complexType&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/xsd:schema&amp;gt;
&lt;br&gt;&amp;lt;/wsdl:types&amp;gt;
&lt;br&gt;&lt;br&gt;Using the &amp;quot;__getTypes()&amp;quot; function only returns something like this:
&lt;br&gt;&lt;br&gt;array
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 =&amp;gt; string 'string Language' (length=15)
&lt;br&gt;&amp;nbsp; &amp;nbsp; 1 =&amp;gt; string 'struct Access {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Account account; Account subAccount;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string reference;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; boolean testMode;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Language language;
&lt;br&gt;&amp;nbsp; &amp;nbsp; }' (length=114)
&lt;br&gt;&lt;br&gt;Is it possible to read the &amp;quot;enumeration&amp;quot; values from the &amp;quot;Language&amp;quot;
&lt;br&gt;type or must this be done using an XML Parser!?
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Marco
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Soap Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Get-values-from-wsdl%3Atypes-tp25887884p25887884.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25696520</id>
	<title>[faultstring] =&gt; Could not connect to host [faultcode] =&gt; HTTP</title>
	<published>2009-10-01T03:43:44Z</published>
	<updated>2009-10-01T03:43:44Z</updated>
	<author>
		<name>ar1014</name>
	</author>
	<content type="html">I have occur the the following error........can u help to avoid this error
&lt;br&gt;&lt;br&gt;&lt;br&gt;[There was an error with your request or the service is unavailable. SoapFault Object ( [messageprotected] =&amp;gt; Could not connect to host [stringprivate] =&amp;gt; [codeprotected] =&amp;gt; 0 [fileprotected] =&amp;gt;.. \soap_text.php [lineprotected] =&amp;gt; 11 [traceprivate] =&amp;gt; Array ( [0] =&amp;gt; Array ( [function] =&amp;gt; __doRequest [class] =&amp;gt; SoapClient [type] =&amp;gt; -&amp;gt; [args] =&amp;gt; Array ( [0] =&amp;gt; dd95819c3fb81bcb6dfd8 [1] =&amp;gt; 10.1.7.142/services/soapLinks/ [2] =&amp;gt; [3] =&amp;gt; 1 [4] =&amp;gt; 0 ) ) [1] =&amp;gt; Array ( [function] =&amp;gt; __call [class] =&amp;gt; SoapClient [type] =&amp;gt; -&amp;gt; [args] =&amp;gt; Array ( [0] =&amp;gt; getStoreLinks [1] =&amp;gt; Array ( [0] =&amp;gt; Array ( [token] =&amp;gt; d95819c3fb81bcb6dfd8 [mid] =&amp;gt; 35379 [page] =&amp;gt; 1 ) ) ) ) [2] =&amp;gt; Array ( [file] =&amp;gt;.. \soap_text.php [line] =&amp;gt; 11 [function] =&amp;gt; getStoreLinks [class] =&amp;gt; SoapClient [type] =&amp;gt; -&amp;gt; [args] =&amp;gt; Array ( [0] =&amp;gt; Array ( [token] =&amp;gt; d95819c3fb81bcb6dfd8 [mid] =&amp;gt; 35379 [page] =&amp;gt; 1 ) ) ) ) [faultstring] =&amp;gt; Could not connect to host [faultcode] =&amp;gt; HTTP )</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-HTTP--Could-not-connect-to-host-tp12207947p25696520.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25654522</id>
	<title>Re: consuming WCF with php5.2.6</title>
	<published>2009-09-28T16:18:57Z</published>
	<updated>2009-09-28T16:18:57Z</updated>
	<author>
		<name>Roger Roelofs</name>
	</author>
	<content type="html">Derek,
&lt;br&gt;&lt;br&gt;Two ideas.
&lt;br&gt;&lt;br&gt;First try
&lt;br&gt;&lt;br&gt;$wcf = $client-&amp;gt;PerformSearch(array['RequestMessage'] =&amp;gt; &amp;nbsp;$myParam));
&lt;br&gt;&lt;br&gt;The indentation got a little garbled in the email, so I could be wrong here.
&lt;br&gt;&lt;br&gt;Second, my guess is you are talking to a MS server so you might need 
&lt;br&gt;some code to alter the xml to match the expected namespaces. &amp;nbsp;Check out 
&lt;br&gt;this comment from the php docs
&lt;br&gt;&lt;a href=&quot;http://www.php.net/manual/en/soapclient.dorequest.php#74123&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/manual/en/soapclient.dorequest.php#74123&lt;/a&gt;&lt;br&gt;&lt;br&gt;hth
&lt;br&gt;&lt;br&gt;On 09/28/2009 06:10 PM, Derek Almond wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I'm having trouble finding the magic combination to consume a WCF
&lt;br&gt;&amp;gt; service, can anyone advise on where I'm wrong?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've got a test script as follows, (it's locked down to my IP so i
&lt;br&gt;&amp;gt; dont think you;'ll be able to test it, but i've included the wsdl
&lt;br&gt;&amp;gt; location for completeness)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;?php
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; try{
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;$client = new
&lt;br&gt;&amp;gt; SoapClient(&amp;quot;&lt;a href=&quot;http://services.ciphe.org.uk/FindPlumber/FindPlumberService.svc?wsdl&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://services.ciphe.org.uk/FindPlumber/FindPlumberService.svc?wsdl&lt;/a&gt;&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;# get a list of the available methods
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;print &amp;quot;Functions:\n&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;var_dump($client-&amp;gt;__getFunctions());
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;/div&gt;Roger
&lt;br&gt;--
&lt;br&gt;Roger Roelofs
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25654522&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rer@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Soap Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/consuming-WCF-with-php5.2.6-tp25653915p25654522.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25653915</id>
	<title>consuming WCF with php5.2.6</title>
	<published>2009-09-28T15:10:29Z</published>
	<updated>2009-09-28T15:10:29Z</updated>
	<author>
		<name>Derek Almond</name>
	</author>
	<content type="html">I'm having trouble finding the magic combination to consume a WCF
&lt;br&gt;service, can anyone advise on where I'm wrong?
&lt;br&gt;&lt;br&gt;I've got a test script as follows, (it's locked down to my IP so i
&lt;br&gt;dont think you;'ll be able to test it, but i've included the wsdl
&lt;br&gt;location for completeness)
&lt;br&gt;&lt;br&gt;any help really appreciated.
&lt;br&gt;&lt;br&gt;D
&lt;br&gt;&lt;br&gt;&amp;lt;?php
&lt;br&gt;&lt;br&gt;try{
&lt;br&gt;&amp;nbsp; &amp;nbsp; $client = new
&lt;br&gt;SoapClient(&amp;quot;&lt;a href=&quot;http://services.ciphe.org.uk/FindPlumber/FindPlumberService.svc?wsdl&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://services.ciphe.org.uk/FindPlumber/FindPlumberService.svc?wsdl&lt;/a&gt;&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; # get a list of the available methods
&lt;br&gt;&amp;nbsp; &amp;nbsp; print &amp;quot;Functions:\n&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; var_dump($client-&amp;gt;__getFunctions());
&lt;br&gt;&lt;br&gt;/* this outputs
&lt;br&gt;&lt;br&gt;&lt;br&gt;Functions:
&lt;br&gt;array(1) {
&lt;br&gt;&amp;nbsp; [0]=&amp;gt;
&lt;br&gt;&amp;nbsp; string(62) &amp;quot;PerformSearchResponse PerformSearch(PerformSearch $parameters)&amp;quot;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;*/
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; print &amp;quot;\n\n&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; print &amp;quot;Types:\n&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; var_dump($client-&amp;gt;__getTypes());
&lt;br&gt;&amp;nbsp; &amp;nbsp; print &amp;quot;\n\n&amp;quot;;
&lt;br&gt;&lt;br&gt;/* this outputs
&lt;br&gt;&lt;br&gt;&lt;br&gt;Types:
&lt;br&gt;array(11) {
&lt;br&gt;&amp;nbsp; [0]=&amp;gt;
&lt;br&gt;&amp;nbsp; string(40) &amp;quot;struct ArrayOfResult {
&lt;br&gt;&amp;nbsp;Result Result;
&lt;br&gt;}&amp;quot;
&lt;br&gt;&amp;nbsp; [1]=&amp;gt;
&lt;br&gt;&amp;nbsp; string(344) &amp;quot;struct Result {
&lt;br&gt;&amp;nbsp;string Address1;
&lt;br&gt;&amp;nbsp;string Address2;
&lt;br&gt;&amp;nbsp;string Address3;
&lt;br&gt;&amp;nbsp;string CompanyName;
&lt;br&gt;&amp;nbsp;string Contact;
&lt;br&gt;&amp;nbsp;string Country;
&lt;br&gt;&amp;nbsp;string County;
&lt;br&gt;&amp;nbsp;string Email;
&lt;br&gt;&amp;nbsp;string Fax;
&lt;br&gt;&amp;nbsp;string FullAddress;
&lt;br&gt;&amp;nbsp;GMapPoint MapPoint;
&lt;br&gt;&amp;nbsp;string Mobile;
&lt;br&gt;&amp;nbsp;string Postcode;
&lt;br&gt;&amp;nbsp;boolean Registered;
&lt;br&gt;&amp;nbsp;string Telephone;
&lt;br&gt;&amp;nbsp;string Town;
&lt;br&gt;&amp;nbsp;string WebAddress;
&lt;br&gt;&amp;nbsp;string WorkCategories;
&lt;br&gt;}&amp;quot;
&lt;br&gt;&amp;nbsp; [2]=&amp;gt;
&lt;br&gt;&amp;nbsp; string(120) &amp;quot;struct GMapPoint {
&lt;br&gt;&amp;nbsp;string Address;
&lt;br&gt;&amp;nbsp;int ID;
&lt;br&gt;&amp;nbsp;string IconImage;
&lt;br&gt;&amp;nbsp;string InfoHTML;
&lt;br&gt;&amp;nbsp;double Latitude;
&lt;br&gt;&amp;nbsp;double Longitude;
&lt;br&gt;}&amp;quot;
&lt;br&gt;&amp;nbsp; [3]=&amp;gt;
&lt;br&gt;&amp;nbsp; string(8) &amp;quot;int char&amp;quot;
&lt;br&gt;&amp;nbsp; [4]=&amp;gt;
&lt;br&gt;&amp;nbsp; string(17) &amp;quot;duration duration&amp;quot;
&lt;br&gt;&amp;nbsp; [5]=&amp;gt;
&lt;br&gt;&amp;nbsp; string(11) &amp;quot;string guid&amp;quot;
&lt;br&gt;&amp;nbsp; [6]=&amp;gt;
&lt;br&gt;&amp;nbsp; string(21) &amp;quot;string ResponseStatus&amp;quot;
&lt;br&gt;&amp;nbsp; [7]=&amp;gt;
&lt;br&gt;&amp;nbsp; string(109) &amp;quot;struct RequestMessage {
&lt;br&gt;&amp;nbsp;int MaxResults;
&lt;br&gt;&amp;nbsp;string Password;
&lt;br&gt;&amp;nbsp;string PostCode;
&lt;br&gt;&amp;nbsp;int Radius;
&lt;br&gt;&amp;nbsp;string Username;
&lt;br&gt;}&amp;quot;
&lt;br&gt;&amp;nbsp; [8]=&amp;gt;
&lt;br&gt;&amp;nbsp; string(92) &amp;quot;struct ResponseMessage {
&lt;br&gt;&amp;nbsp;string Messsage;
&lt;br&gt;&amp;nbsp;ArrayOfResult Results;
&lt;br&gt;&amp;nbsp;ResponseStatus Status;
&lt;br&gt;}&amp;quot;
&lt;br&gt;&amp;nbsp; [9]=&amp;gt;
&lt;br&gt;&amp;nbsp; string(56) &amp;quot;struct PerformSearch {
&lt;br&gt;&amp;nbsp;RequestMessage requestMessage;
&lt;br&gt;}&amp;quot;
&lt;br&gt;&amp;nbsp; [10]=&amp;gt;
&lt;br&gt;&amp;nbsp; string(70) &amp;quot;struct PerformSearchResponse {
&lt;br&gt;&amp;nbsp;ResponseMessage PerformSearchResult;
&lt;br&gt;}&amp;quot;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;*/
&lt;br&gt;&lt;br&gt;/* based on the above, i think i need an array of paramaters, and that
&lt;br&gt;array is named RequestMessage
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; $myParam=array(&amp;quot;RequestMessage&amp;quot;=&amp;gt;array(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'MaxResults'=&amp;gt; 10,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Password '=&amp;gt; 'mypasswordgoeshere',
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'PostCode'=&amp;gt; 'BS24 0HT',
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Radius'=&amp;gt; 25,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Username '=&amp;gt; ',username'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;));
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; #$result = $client-&amp;gt;__soapCall('PerformSearch',array('RequestMessage'
&lt;br&gt;=&amp;gt;$myParam));
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; I believe that either the line above or the three lines below should work
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; $wcf = $client-&amp;gt;PerformSearch($myParam);
&lt;br&gt;&amp;nbsp; &amp;nbsp; #$wcfResult = $wcf-&amp;gt;ResponseMessage;
&lt;br&gt;&amp;nbsp; &amp;nbsp; #print &amp;nbsp;$wsResult;
&lt;br&gt;&lt;br&gt;&lt;br&gt;} catch (Exception $e) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; print &amp;nbsp;'Caught exception: '. &amp;nbsp;$e-&amp;gt;getMessage(). &amp;quot;\n&amp;quot;;
&lt;br&gt;&lt;br&gt;&lt;br&gt;/* an exception is thrown :
&lt;br&gt;&lt;br&gt;Caught exception: Object reference not set to an instance of an object.
&lt;br&gt;&lt;br&gt;*/
&lt;br&gt;&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Soap Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/consuming-WCF-with-php5.2.6-tp25653915p25653915.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25607787</id>
	<title>Re: soapclient using https randomly closes connection</title>
	<published>2009-09-25T00:39:55Z</published>
	<updated>2009-09-25T00:39:55Z</updated>
	<author>
		<name>Galmok</name>
	</author>
	<content type="html">Sriram Natarajan wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Bernhard Ege wrote:
&lt;br&gt;&amp;gt;&amp;gt; I am using php 5.2.9 (solaris) and have access to a .NET webservice 
&lt;br&gt;&amp;gt;&amp;gt; that I
&lt;br&gt;&amp;gt;&amp;gt; have to access using https.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; In most cases, accessing it works just fine, but every now and again,
&lt;br&gt;&amp;gt;&amp;gt; SoapClient closes the connection before actually having transfered the
&lt;br&gt;&amp;gt;&amp;gt; request, erroring with &amp;quot;could not connect to host ...&amp;quot;.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I have captured the actual communication using snoop and examined the 
&lt;br&gt;&amp;gt;&amp;gt; result
&lt;br&gt;&amp;gt;&amp;gt; in wireshark and I see that the tcp connection to the webservice is
&lt;br&gt;&amp;gt;&amp;gt; established correct, but before the request is transmitted, SoapClient
&lt;br&gt;&amp;gt;&amp;gt; closes the tcp-connection which is acknowledged by the webservice 
&lt;br&gt;&amp;gt;&amp;gt; which also
&lt;br&gt;&amp;gt;&amp;gt; resets the TCP connection.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; When I disable the caching of the WSDL file for SoapClient, I get these
&lt;br&gt;&amp;gt;&amp;gt; errors (not always, only sometimes):
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Warning: SoapClient::SoapClient() [soapclient.soapclient]: failed to 
&lt;br&gt;&amp;gt;&amp;gt; create
&lt;br&gt;&amp;gt;&amp;gt; an SSL context in /space/hom
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Warning: SoapClient::SoapClient() [soapclient.soapclient]: Failed to 
&lt;br&gt;&amp;gt;&amp;gt; enable
&lt;br&gt;&amp;gt;&amp;gt; crypto in /space/home
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; This warning suggests that PHP is unable to create a SSL stream context 
&lt;br&gt;&amp;gt; . By default, if you disable caching, PHP has to download the wsdl to 
&lt;br&gt;&amp;gt; your /tmp directory. Is is possible you are running out of disk space in 
&lt;br&gt;&amp;gt; /tmp.
&lt;br&gt;&amp;gt; - Sriram
&lt;/div&gt;&lt;br&gt;Thank you for the response, but there is plenty of space to save the 
&lt;br&gt;WSDL file. Also, if I cache the wsdl file, the actual service calls fail 
&lt;br&gt;to send a request (the tcp connection is created). As the same soap 
&lt;br&gt;service can be accessed via http instead of https, AND http never fails, 
&lt;br&gt;the problem seems to be creating a SSL context for some reason. When 
&lt;br&gt;retrying, it works after about 10-15 seconds but fails immediately when 
&lt;br&gt;retrying before that.
&lt;br&gt;&lt;br&gt;Because https is unrealiable, I have created a http&amp;lt;-&amp;gt;https tunnel using 
&lt;br&gt;stunnel and I have made SoapClient access using http via stunnel (that 
&lt;br&gt;converts to/from https stream) to the webservice. Doing this is so far 
&lt;br&gt;100% reliable (even without caching the wsdl file).
&lt;br&gt;&lt;br&gt;To me this clearly indicates that SoapClient has occasional problems 
&lt;br&gt;with SSL (in php 5.2.9 on Solaris).
&lt;br&gt;&lt;br&gt;I'll create en rc-file to ensure stunnel is started when the OS boots 
&lt;br&gt;and with that I have worked around the bug in SoapClient.
&lt;br&gt;&lt;br&gt;/Bernhard
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Soap Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/soapclient-using-https-randomly-closes-connection-tp25366219p25607787.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25605552</id>
	<title>Re: Paypal soap api integration</title>
	<published>2009-09-24T19:04:17Z</published>
	<updated>2009-09-24T19:04:17Z</updated>
	<author>
		<name>Lala Lajpathrai. Yenda</name>
	</author>
	<content type="html">&amp;lt;?php
&lt;br&gt;error_reporting(E_ALL|~E_STRICT);
&lt;br&gt;&lt;br&gt;..
&lt;br&gt;require_once ..
&lt;br&gt;&lt;br&gt;$data = new APIProfile($pid, $handler);
&lt;br&gt;$profile = &amp; $data;
&lt;br&gt;&lt;br&gt;&lt;br&gt;remaining code
&lt;br&gt;&amp;nbsp;..
&lt;br&gt;?&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On 9/24/09, Sriram Natarajan &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25605552&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Sriram.Natarajan@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; In your php code, i think you can do something like
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;?php
&lt;br&gt;&amp;gt; error_reporting(E_ALL|~E_STRICT);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ..
&lt;br&gt;&amp;gt; require_once ..
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; .. rest of php code
&lt;br&gt;&amp;gt; ..
&lt;br&gt;&amp;gt; ?&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; - Sriram
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Tobin wrote:
&lt;br&gt;&amp;gt;&amp;gt; I am tried to use paypal DoDirectPayment soap api but in the code download
&lt;br&gt;&amp;gt;&amp;gt; from the paypal site is using
&lt;br&gt;&amp;gt;&amp;gt; $profile = &amp; new APIProfile($pid, $handler); I am using php5 so I get an
&lt;br&gt;&amp;gt;&amp;gt; error like this
&lt;br&gt;&amp;gt;&amp;gt; Strict Standards: Assigning the return value of new by reference is
&lt;br&gt;&amp;gt;&amp;gt; deprecated in
&lt;br&gt;&amp;gt;&amp;gt; /home/feathers/public_html/projects/nissan/application/modules/default/controllers/TestpayController.php
&lt;br&gt;&amp;gt;&amp;gt; on line 53
&lt;br&gt;&amp;gt;&amp;gt; I tried to repalces the &amp; singn but in sdk file papay uses this formula
&lt;br&gt;&amp;gt;&amp;gt; how
&lt;br&gt;&amp;gt;&amp;gt; can I solve it
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Please help me
&lt;br&gt;&amp;gt;&amp;gt; By: Tobbin
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; PHP Soap Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;&amp;gt; To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Thanks &amp; Regards,
&lt;br&gt;Lala Lajpathrai. Y
&lt;br&gt;Mobile: 9440669839
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Soap Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Paypal-soap-api-integration-tp25200420p25605552.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25602642</id>
	<title>Re: soapclient using https randomly closes connection</title>
	<published>2009-09-24T14:02:31Z</published>
	<updated>2009-09-24T14:02:31Z</updated>
	<author>
		<name>Sriram Natarajan</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;Bernhard Ege wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I am using php 5.2.9 (solaris) and have access to a .NET webservice 
&lt;br&gt;&amp;gt; that I
&lt;br&gt;&amp;gt; have to access using https.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In most cases, accessing it works just fine, but every now and again,
&lt;br&gt;&amp;gt; SoapClient closes the connection before actually having transfered the
&lt;br&gt;&amp;gt; request, erroring with &amp;quot;could not connect to host ...&amp;quot;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have captured the actual communication using snoop and examined the 
&lt;br&gt;&amp;gt; result
&lt;br&gt;&amp;gt; in wireshark and I see that the tcp connection to the webservice is
&lt;br&gt;&amp;gt; established correct, but before the request is transmitted, SoapClient
&lt;br&gt;&amp;gt; closes the tcp-connection which is acknowledged by the webservice 
&lt;br&gt;&amp;gt; which also
&lt;br&gt;&amp;gt; resets the TCP connection.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When I disable the caching of the WSDL file for SoapClient, I get these
&lt;br&gt;&amp;gt; errors (not always, only sometimes):
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Warning: SoapClient::SoapClient() [soapclient.soapclient]: failed to 
&lt;br&gt;&amp;gt; create
&lt;br&gt;&amp;gt; an SSL context in /space/hom
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Warning: SoapClient::SoapClient() [soapclient.soapclient]: Failed to 
&lt;br&gt;&amp;gt; enable
&lt;br&gt;&amp;gt; crypto in /space/home
&lt;br&gt;&amp;gt;
&lt;/div&gt;This warning suggests that PHP is unable to create a SSL stream context 
&lt;br&gt;. By default, if you disable caching, PHP has to download the wsdl to 
&lt;br&gt;your /tmp directory. Is is possible you are running out of disk space in 
&lt;br&gt;/tmp. 
&lt;br&gt;&lt;br&gt;- Sriram
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Warning: SoapClient::SoapClient(&lt;a href=&quot;https://sitename.../pathto?WSDL&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sitename.../pathto?WSDL&lt;/a&gt;)
&lt;br&gt;&amp;gt; [soapclient.soapclient]: failed to open stream: operation failed in
&lt;br&gt;&amp;gt; /space/home
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Warning: SoapClient::SoapClient() [soapclient.soapclient]: I/O warning :
&lt;br&gt;&amp;gt; failed to load external entity &amp;quot;&lt;a href=&quot;https://sitename.../pathto?WSDL&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sitename.../pathto?WSDL&lt;/a&gt;&amp;quot; in
&lt;br&gt;&amp;gt; /space/hom
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing 
&lt;br&gt;&amp;gt; WSDL:
&lt;br&gt;&amp;gt; Couldn't load from 'https://...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If I would get this error every time, I'd be more happy, but when it only
&lt;br&gt;&amp;gt; occurs once in a while (like every 10. connect), I am more at a loss. 
&lt;br&gt;&amp;gt; But it
&lt;br&gt;&amp;gt; does seem like SoapClient is at fault.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any suggestions?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; /Bernhard
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Soap Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/soapclient-using-https-randomly-closes-connection-tp25366219p25602642.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25602579</id>
	<title>Re: Paypal soap api integration</title>
	<published>2009-09-24T13:58:39Z</published>
	<updated>2009-09-24T13:58:39Z</updated>
	<author>
		<name>Sriram Natarajan</name>
	</author>
	<content type="html">In your php code, i think you can do something like
&lt;br&gt;&lt;br&gt;&amp;lt;?php
&lt;br&gt;error_reporting(E_ALL|~E_STRICT);
&lt;br&gt;&lt;br&gt;..
&lt;br&gt;require_once ..
&lt;br&gt;&lt;br&gt;.. rest of php code
&lt;br&gt;..
&lt;br&gt;?&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;- Sriram
&lt;br&gt;&lt;br&gt;Tobin wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I am tried to use paypal DoDirectPayment soap api but in the code download
&lt;br&gt;&amp;gt; from the paypal site is using
&lt;br&gt;&amp;gt; $profile = &amp; new APIProfile($pid, $handler); I am using php5 so I get an
&lt;br&gt;&amp;gt; error like this 
&lt;br&gt;&amp;gt; Strict Standards: Assigning the return value of new by reference is
&lt;br&gt;&amp;gt; deprecated in
&lt;br&gt;&amp;gt; /home/feathers/public_html/projects/nissan/application/modules/default/controllers/TestpayController.php
&lt;br&gt;&amp;gt; on line 53
&lt;br&gt;&amp;gt; I tried to repalces the &amp; singn but in sdk file papay uses this formula how
&lt;br&gt;&amp;gt; can I solve it
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Please help me
&lt;br&gt;&amp;gt; By: Tobbin 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Soap Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Paypal-soap-api-integration-tp25200420p25602579.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25386201</id>
	<title>www.phpmaterial.com</title>
	<published>2009-09-10T09:04:27Z</published>
	<updated>2009-09-10T09:04:27Z</updated>
	<author>
		<name>Lala Lajpathrai. Yenda</name>
	</author>
	<content type="html">Hi Everyone,
&lt;br&gt;&lt;br&gt;I have developed my personal blog on PHP. I have 8 years of experience on
&lt;br&gt;PHP and strong on OOPs concepts.
&lt;br&gt;If you have any questions.. plz post your queries on this.. I will respond.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.phpmaterial.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.phpmaterial.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Thanks &amp; Regards,
&lt;br&gt;Lala Lajpathrai. Y
&lt;br&gt;Mobile: 9440669839
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/www.phpmaterial.com-tp25386201p25386201.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25380725</id>
	<title>Re: soapclient using https randomly closes connection</title>
	<published>2009-09-10T03:19:07Z</published>
	<updated>2009-09-10T03:19:07Z</updated>
	<author>
		<name>Galmok</name>
	</author>
	<content type="html">Bernhard Ege wrote:
&lt;br&gt;&amp;gt; I am using php 5.2.9 (solaris) and have access to a .NET webservice that I
&lt;br&gt;&amp;gt; have to access using https.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In most cases, accessing it works just fine, but every now and again,
&lt;br&gt;&amp;gt; SoapClient closes the connection before actually having transfered the
&lt;br&gt;&amp;gt; request, erroring with &amp;quot;could not connect to host ...&amp;quot;.
&lt;br&gt;&lt;br&gt;I am currently working around it by having SoapClient use only http 
&lt;br&gt;access, but having it connect via stunnel that converts the http access 
&lt;br&gt;to https. This seems solid enough so far.
&lt;br&gt;&lt;br&gt;So basically you have to avoid https in soapclient with php 5.2.9.
&lt;br&gt;&lt;br&gt;Bernhard
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Soap Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/soapclient-using-https-randomly-closes-connection-tp25366219p25380725.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25366219</id>
	<title>soapclient using https randomly closes connection</title>
	<published>2009-09-09T07:19:29Z</published>
	<updated>2009-09-09T07:19:29Z</updated>
	<author>
		<name>Galmok</name>
	</author>
	<content type="html">I am using php 5.2.9 (solaris) and have access to a .NET webservice that I
&lt;br&gt;have to access using https.
&lt;br&gt;&lt;br&gt;In most cases, accessing it works just fine, but every now and again,
&lt;br&gt;SoapClient closes the connection before actually having transfered the
&lt;br&gt;request, erroring with &amp;quot;could not connect to host ...&amp;quot;.
&lt;br&gt;&lt;br&gt;I have captured the actual communication using snoop and examined the 
&lt;br&gt;result
&lt;br&gt;in wireshark and I see that the tcp connection to the webservice is
&lt;br&gt;established correct, but before the request is transmitted, SoapClient
&lt;br&gt;closes the tcp-connection which is acknowledged by the webservice which 
&lt;br&gt;also
&lt;br&gt;resets the TCP connection.
&lt;br&gt;&lt;br&gt;When I disable the caching of the WSDL file for SoapClient, I get these
&lt;br&gt;errors (not always, only sometimes):
&lt;br&gt;&lt;br&gt;Warning: SoapClient::SoapClient() [soapclient.soapclient]: failed to create
&lt;br&gt;an SSL context in /space/hom
&lt;br&gt;&lt;br&gt;Warning: SoapClient::SoapClient() [soapclient.soapclient]: Failed to enable
&lt;br&gt;crypto in /space/home
&lt;br&gt;&lt;br&gt;Warning: SoapClient::SoapClient(&lt;a href=&quot;https://sitename.../pathto?WSDL&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sitename.../pathto?WSDL&lt;/a&gt;)
&lt;br&gt;[soapclient.soapclient]: failed to open stream: operation failed in
&lt;br&gt;/space/home
&lt;br&gt;&lt;br&gt;Warning: SoapClient::SoapClient() [soapclient.soapclient]: I/O warning :
&lt;br&gt;failed to load external entity &amp;quot;&lt;a href=&quot;https://sitename.../pathto?WSDL&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sitename.../pathto?WSDL&lt;/a&gt;&amp;quot; in
&lt;br&gt;/space/hom
&lt;br&gt;&lt;br&gt;Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL:
&lt;br&gt;Couldn't load from 'https://...
&lt;br&gt;&lt;br&gt;&lt;br&gt;If I would get this error every time, I'd be more happy, but when it only
&lt;br&gt;occurs once in a while (like every 10. connect), I am more at a loss. 
&lt;br&gt;But it
&lt;br&gt;does seem like SoapClient is at fault.
&lt;br&gt;&lt;br&gt;Any suggestions?
&lt;br&gt;&lt;br&gt;/Bernhard
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP Soap Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/soapclient-using-https-randomly-closes-connection-tp25366219p25366219.html" />
</entry>

</feed>
