Re: Consuming a web service
Here is the WSDL:
And here is the response:
I am trying to extract the username and userID.
Do I need to do something like this?
Here is the WSDL:
Code:
<web:GetAllAccountInfoAcctNbr>6111027582601</web:GetAllAccountInfoAcctNbr>
Code:
<agentIdentities> <userId>agent2.geisler@dev.cox.net</userId> <username>agent2.geisler</username> </agentIdentities> <agentIdentities> <userId>agent3.geisler@dev.cox.net</userId> <username>agent3.geisler</username> </agentIdentities>
Do I need to do something like this?
Code:
<?php error_reporting(E_ALL); $GetUserName = new SoapClient("http://idm.east.dev.cox.net/idmwebservices/CoxIdentityServices?wsdl"); $account = array("GetAllAccountInfoAcctNbr" => "6111027582601"); $username = $GetUserName->username($account); $userId = $GetUserName->userId($account); ?>
Comment