Got it.
<cftry>
<cfset f =
CreateObject("webservice","http://www.ryanmitchell.co.uk/rtCMS.php?wsdl")>
<cfdump var="#f#">
<cfset code = f.listDirectory("d:\\wwwroot\\ryanmitchell.co.uk\\www\\")>
<cfdump var="#code#">
<cfcatch type="any">
<cfoutput><p>#cfcatch.message#</p>
<p>Caught an exception, type = #CFCATCH.TYPE# </p> <br />
StackTrace: <br/>
<cfloop index = i from = 1 to = #ArrayLen(CFCATCH.TAGCONTEXT)#>
<cfset sCurrent = #CFCATCH.TAGCONTEXT[i]#>
<p>#sCurrent["ID"]# #cfcatch.Message#<br>
Error Detail: #cfcatch.Detail#<br>
Line: #sCurrent["LINE"]#<br>
Column: #sCurrent["COLUMN"]#<br>
Template: #sCurrent["TEMPLATE"]#</p>
</cfloop>
</cfoutput>
</cfcatch>
</cftry>
Notice the directory being passed needs double slashes to escape them.
!k
-----Original Message-----
From: Kevin Aebig [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 12, 2006 4:01 PM
To: CF-Talk
Subject: RE: PHP webservice returns a Null pointer error
I'm getting the object dump easily with this:
<cfset f =
CreateObject("webservice","http://www.ryanmitchell.co.uk/rtCMS.php?wsdl")>
<cfdump var="#f#">
I'm taking a look at the service itself now...
!k
-----Original Message-----
From: Ryan Mitchell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 12, 2006 3:42 PM
To: CF-Talk
Subject: Re: PHP webservice returns a Null pointer error
i couldnt get to the stage where i could use it
thanks for the help, if its not asking too much, you can have a go yourself.
webservice is at: http://www.ryanmitchell.co.uk/rtCMS.php?wsdl
method: listDirectory
parameters: dir -> "d:\wwwroot\ryanmitchell.co.uk\www\"
i made a basic php test SOAP client, which gives:
http://www.ryanmitchell.co.uk/phptest.php
very frustrating!!
Ryan
>Have you looked into the get_any() method for the webservice object?
>
>This could possibly help you dump anything returned...
>
>!k
>
>-----Original Message-----
>From: Ryan Mitchell [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, September 12, 2006 3:07 PM
>To: CF-Talk
>Subject: Re: PHP webservice returns a Null pointer error
>
>yeah, the webservice works completely fine and well.
>basically in php im returning back an array (i've set the wsdl datatype to
>xsd:anyType)
>if i change it to return an element of the array, then no problem, it all
>works
>if i change it to return the array, then i get a null pointer error
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252914
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4