PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Question about SOAP_WSDL method and soap message generated

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> PEAR
View previous topic :: View next topic  
Author Message
bubur



Joined: 24 May 2007
Posts: 1

PostPosted: Thu May 24, 2007 5:33 pm    Post subject: Question about SOAP_WSDL method and soap message generated Reply with quote

Hello,

I use the SOAP_WSDL method

I have a simple object:

class location
{
var $city;
var $zipCode;
}

I pass this object as a parametter to my webservice:

$wsdl = new SOAP_WSDL('http://xxxxxxxx/service.asmx?wsdl', $proxy);
$Client = $wsdl->getProxy();
$obj = $Client->GetInfo($location);


If for example the variable $zipCode is not initialised, when I call the webservice, the variable is included in the soap message.

is there a way to avoid the empty variables to appear in the soap message?

I know in dotnet there is a way: in that case, I would have created a $zipCodeSpecified variable and when set to false, the $zipCode variable would not have been included in the soap message.

Thank's for your answers,

Yannick
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> PEAR All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement