Hi folks - 

Hopefully somebody can point me in the right direction. ;-)

I am trying to use this WSDL/web service: (the following has been edited for 
security) ;-)

<cfinvoke webservice="myURL/my_api.cfc?wsdl" method="GetUserProfile" 
returnvariable="temp1">
     <cfinvokeargument name="wsID" value="1">
     <cfinvokeargument name="customerid" value="1">
     <cfinvokeargument name="userid" value="1">
</cfinvoke>




And when I do this:  <cfdump var="#temp1#">

I get this:

<?xml version="1.0" encoding="utf-8"?> 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";> 

        <soap:Body> 
                <GetUserProfileResponse xmlns="http://tempuri.org/";> 
                        <GetUserProfileResult> 
                                <user> 
                                        <UserID>1</UserID> 
                                        <firstName>A</firstName> 
                                        <lastName>A</lastName> 
                                        <email>[email protected]</email> 
                                </user> 
                        </GetUserProfileResult> 
                </GetUserProfileResponse> 
        </soap:Body> 
</soap:Envelope>


When it gets returned to me, it's a string.
Any attempts to loop over it like an array gives me errors messages.

When I just output it, I just get the info found in the user section.




Is there a process, method, or something that allows me to pull apart that 
text, and grab the pieces I need out of it?

Is there anyway to say <cfset fn = temp1.GetUserProfileResult.user.firstname>

When I try that it fails.

Anybody have any suggestions?

Thanks,

Doug 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337432
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to