Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Pear SOAP: How to pass simple type
I am having trouble consuming a service that has a 'SimpleType' as a =
parameter. It is defined in the WSDL as follows:

<s:simpleType name=3D"IRObjectRights">
<s:restriction base=3D"s:string">
<s:enumeration value=3D"arRead" />
<s:enumeration value=3D"arWrite" />
<s:enumeration value=3D"arCreate" />
</s:restriction>
</s:simpleType>

This data type is an input parameter for the following service:

<wsdl:message name=3D"GetDrawersSoapIn">
<wsdl:part name=3D"fUsername" type=3D"s:string" />
<wsdl:part name=3D"fPassword" type=3D"s:string" />
<wsdl:part name=3D"fMinRights" type=3D"tns:IRObjectRights" />
</wsdl:message>

I beleive the XML (for this type) contained in the SOAP request looks =
like this:

<fMinRights xsi:type=3D""tns:IRObjectRights"">arRead</fMinRights>

Here is my code:

include("XML/Serializer.php");   =20
require_once 'SOAP/Client.php';
include("XML/Unserializer.php");
=20
$wsdl =3D new SOAP_WSDL('irwebservice.wsdl');
$irProxy =3D $wsdl->getProxy();

$queryResponse =3D $irProxy->GetDrawers('BUDDY','BUDDY',$obj);

The last line is what I am having trouble with. How should the $obj =
object be represented when I pass it to the GetDrawers method? How =
should I build it? Associative Array? SOAP_Value?=20

I really need help on this. Any input would be appreciated.

Report this thread to moderator Post Follow-up to this message
Old Post
James Frankman
05-27-05 01:59 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Pear archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:29 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.