Link to home
Start Free TrialLog in
Avatar of jimbona27
jimbona27Flag for United Kingdom of Great Britain and Northern Ireland

asked on

call web service method within PHP help

hi EE,
I have asked this question several times now although with no help to be honest.

I am trying to call a web service within PHP.  

The definition within the WSDL file is included within the code snippet.

Can someone please provide an example of how to call the method named 'AddMember' using PHP please?

Many thanks,

<s:element name="AddMember">

<s:complexType>

<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="key" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="title" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="firstName" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="surname" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="emailAddress" type="s:string"/>
<s:element minOccurs="1" maxOccurs="1" name="emailType" type="tns:EmailAddressType"/>
<s:element minOccurs="0" maxOccurs="1" name="telephone" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="username" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="password" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="jobTitle" type="s:string"/>
<s:element minOccurs="1" maxOccurs="1" name="regType" type="tns:RegistrantType"/>
<s:element minOccurs="1" maxOccurs="1" name="establishmentID" type="s:int"/>
<s:element minOccurs="0" maxOccurs="1" name="referrerContactID" type="s:string"/>
</s:sequence>
</s:complexType>
</s:element>
 

<s:simpleType name="RegistrantType">

<s:restriction base="s:string">
<s:enumeration value="Student"/>
<s:enumeration value="Consultant"/>
<s:enumeration value="Other"/>
</s:restriction>
 

<s:simpleType name="EmailAddressType">

<s:restriction base="s:string">
<s:enumeration value="Home"/>
<s:enumeration value="Work"/>
</s:restriction>
</s:simpleType>
</s:simpleType>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of alain34
alain34
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I have tried addRegistration, and I'm failing validation of the key.
What should I use in the key field?

Could you provide a value for all fields in the followinig description

<s:element minOccurs="0" maxOccurs="1" name="key" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="title" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="firstName" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="surname" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="emailAddress" type="s:string"/>
<s:element minOccurs="1" maxOccurs="1" name="emailType" type="tns:EmailAddressType"/>
<s:element minOccurs="0" maxOccurs="1" name="telephone" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="username" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="password" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="jobTitle" type="s:string"/>
<s:element minOccurs="1" maxOccurs="1" name="regType" type="tns:RegistrantType"/>
<s:element minOccurs="1" maxOccurs="1" name="establishmentID" type="s:int"/>
<s:element minOccurs="0" maxOccurs="1" name="referrerContactID" type="s:string"/>
Avatar of jimbona27

ASKER

regarding your first post, you are correct, I need to call AddRegistration.
any ideas?