need solution for creating soap request

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sfoley77
Forum Newbie
Posts: 15
Joined: Tue Jun 02, 2009 10:13 am

need solution for creating soap request

Post by sfoley77 »

I am trying to create a soap request using soapval method, the method I am trying to call is login_authenticate_request which takes two complex types as arguements below is a sample request:

Sample Request 1
<login_authenticate_request dsn="think" >
<user_login_data>
<login>think</login>
<password>jukebox</password>
</user_login_data>
<customer_identifier>
<login>candyman</login>
<password>juniper</password>
</customer_identifier>
</login_authenticate_request>

the wsdl values for user_login_data are:

<xsd:element name="user_login_data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="login" type="xsd:string"/>
<xsd:element name="password" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>

and customer_Identifier wsdl values are:

<xsd:element name="customer_identifier">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="customer_id" type="xsd:int" minOccurs="0" default="0"/>
<xsd:element name="login" type="xsd:string" minOccurs="0"/>
<xsd:element name="password" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="authentication_code" type="xsd:string"/>
<xsd:attribute name="target_element" type="xsd:string"/>
<xsd:attribute name="role" type="s0:ZZCustomerRole" use="optional" default="unspecified"/>
</xsd:complexType>
</xsd:element>

Now the operation I am trying to call is shown below

<xsd:element name="login_authenticate_request">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="s0:user_login_data"/>
<xsd:element ref="s0:customer_identifier"/>
</xsd:sequence>
<xsd:attribute name="dsn" type="xsd:string"/>
<xsd:attribute name="record_login_datetime" default="no" type="s0:ZZBoolean"/>
</xsd:complexType>
</xsd:element>

I want to create the client request using soapval method of nusoap library can someone please give me an example of this.

Many thanks

Sean
User avatar
PatelNehal
Forum Newbie
Posts: 21
Joined: Mon Mar 23, 2009 7:27 am
Location: Gujarat, India

Re: need solution for creating soap request

Post by PatelNehal »

I am sorry my friend but here is nobody who knows your answer cause i posted 2 question which were related to SOAP and web service but nobody answer it, so try your answer somewhere else in other forums, Best of luck. :crazy:
Post Reply