swilliamrobert 0 Light Poster

Hi,

I do not know how to pass parameters using soapclient with call method in PHP.

----------------------------------------------------------------------
Description:
This command is used to authenticate the user. Most of the biz functions require authentication in order to function. If the session is already logged in then a subsequent successful login will switch the session to the new login agent

Operation type:
Request-response. The endpoint receives a message, and sends a correlated message.

SOAP action:
urn:UMARKETSCWS/login

Input: login (soap:body, use = literal)

------------------------------------------------------------------------------

xml format here:

<xsd:element name="login">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="loginRequest" type="tns:loginRequestType" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="loginRequestType">
<xsd:complexContent>
<xsd:extension base="tns:standardBizRequest">
<xsd:sequence>
<xsd:element minOccurs="1" maxOccurs="1" name="initiator" type="xsd:string">
<xsd:annotation>
<xsd:documentation> The agent that is logging in. </xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element minOccurs="1" maxOccurs="1" name="pin" type="xsd:string">
<xsd:annotation>
<xsd:documentation> The login password. The password is cryptographically hashed to further protect it. Please see the document "PD-SC-SOAP-UM-FS-07-10-A7 UMarket SOAP API Functional Specification.pdf" for details on how to generate the pin. </xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
-------------------------------------

this is my php code
--------------------
$client = new soapclientw('https://somedomin.com/services/umarketsc?wsdl', true);

$loginRequest = array('sessionid'=>'1238384849','initiator' =>'admin','pin' =>'admin983');

$loginResult = $client->call(array('loginRequest' => $loginRequest));

print_r('<pre>');
print_r($loginResult);
print_r('</pre>');

----------------------------------------------------------------

Is it correct array format?

I need to login our client server. But i can not. there is two type login and loginRequest in XML file in above.

Please how can send paramters to XML file using call() method using soapcleint. Check XML file above. I want send three parameters to login method. This task very urgent for me. I hope you understand and reply soon friends.

SOAP:action is login.

Thanks WIlliam