[cfaussie] Re: cfinvoke webservice, xml response and 'cf' datatypes

2007-01-20 Thread Toby Tremayne
Hi Adam,

what you need is an http proxy - basic principal is that you goto  
http://localhost:somerandomport  and setup the http forwarder to  
listen on that port, but forward to your proper web address.  Then  
you make your web requests as normal and you can watch the raw data  
being dumped through the proxy.  TCPDump is a good one, and there are  
a bunch of them available online for free, some very simple some  
quite sophisticated.

Toby

On 19/01/2007, at 16:00 , Adam Chapman wrote:


 Hi All,

 I am currently putting together a basic webservice which returns an
 array to the caller. (returntype=array)

 I want to see the xml response that the caller will receive (.NET  
 user),
 but as the returntype is array, when I cfdump the result, I get a  
 nicely
 formatted array dump, rather than the raw xml.

 Anyone know a quick way to access the actual soap xml response? Or
 should I use xml to create an xml object and return THAT rather  
 than the
 array?

 Cheers,
 Adam

 cfinvoke webservice=http://mywebservices/myservice.cfc?wsdl;
   method=getArray
   returnvariable=ws
   cfinvokeargument name=a value=what /
   cfinvokeargument name=b value=fun /
 /cfinvoke

 cfdump var=#ws#

 


---

Life is poetry, write it in your own words

---

Toby Tremayne
Senior Technical Consultant
Lyricist Software
0416 048 090
ICQ: 13107913



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~--~~~~--~~--~--~---



[cfaussie] Re: cfinvoke webservice, xml response and 'cf' datatypes

2007-01-20 Thread Toby Tremayne
Having re-read the second part of your email I'd also recommend that  
you're probably best off creating an xml packet to return rather than  
passing a native array - that way your service becomes tech agnostic  
and you can consume it any way you like.

Toby

On 19/01/2007, at 16:00 , Adam Chapman wrote:


 Hi All,

 I am currently putting together a basic webservice which returns an
 array to the caller. (returntype=array)

 I want to see the xml response that the caller will receive (.NET  
 user),
 but as the returntype is array, when I cfdump the result, I get a  
 nicely
 formatted array dump, rather than the raw xml.

 Anyone know a quick way to access the actual soap xml response? Or
 should I use xml to create an xml object and return THAT rather  
 than the
 array?

 Cheers,
 Adam

 cfinvoke webservice=http://mywebservices/myservice.cfc?wsdl;
   method=getArray
   returnvariable=ws
   cfinvokeargument name=a value=what /
   cfinvokeargument name=b value=fun /
 /cfinvoke

 cfdump var=#ws#

 


---

Life is poetry, write it in your own words

---

Toby Tremayne
Senior Technical Consultant
Lyricist Software
0416 048 090
ICQ: 13107913



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~--~~~~--~~--~--~---



[cfaussie] Re: cfinvoke webservice, xml response and 'cf' datatypes

2007-01-20 Thread Toby Tremayne
And yes that should be principle not principal - more caffeine required.

On 21/01/2007, at 12:52 , Toby Tremayne wrote:

 Hi Adam,

   what you need is an http proxy - basic principal is that you goto  
 http://localhost:somerandomport  and setup the http forwarder to  
 listen on that port, but forward to your proper web address.  Then  
 you make your web requests as normal and you can watch the raw data  
 being dumped through the proxy.  TCPDump is a good one, and there  
 are a bunch of them available online for free, some very simple  
 some quite sophisticated.

 Toby

 On 19/01/2007, at 16:00 , Adam Chapman wrote:


 Hi All,

 I am currently putting together a basic webservice which returns an
 array to the caller. (returntype=array)

 I want to see the xml response that the caller will receive (.NET  
 user),
 but as the returntype is array, when I cfdump the result, I get a  
 nicely
 formatted array dump, rather than the raw xml.

 Anyone know a quick way to access the actual soap xml response? Or
 should I use xml to create an xml object and return THAT rather  
 than the
 array?

 Cheers,
 Adam

 cfinvoke webservice=http://mywebservices/myservice.cfc?wsdl;
  method=getArray
  returnvariable=ws
  cfinvokeargument name=a value=what /
  cfinvokeargument name=b value=fun /
 /cfinvoke

 cfdump var=#ws#




 ---

   Life is poetry, write it in your own words

 ---

 Toby Tremayne
 Senior Technical Consultant
 Lyricist Software
 0416 048 090
 ICQ: 13107913



 



---

Life is poetry, write it in your own words

---

Toby Tremayne
Senior Technical Consultant
Lyricist Software
0416 048 090
ICQ: 13107913



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~--~~~~--~~--~--~---



[cfaussie] Re: cfinvoke webservice, xml response and 'cf' datatypes

2007-01-20 Thread Shane Farmer
Hi Adam,

A very handy tool you could try is SoupUI (www.soapui.org). We use it at
work to run test suites against our Java web services. You point it at the
WSDL, it can generate a default request where you fill in the blanks and hit
send. What you get back is the actual SOAP envelope with all the XML you
will ever need :-) Well worth checking out if you are working with web
services and just a simple request/response to deal with. There is even an
Eclipse plug in for it!

When you have the SOAP response, you can decide if you need to send XML or
if the native type will be consumable from .net. It will even validate it
for you!

Hope this helps.
Shane


On 1/19/07, Adam Chapman [EMAIL PROTECTED] wrote:


 Hi All,

 I am currently putting together a basic webservice which returns an
 array to the caller. (returntype=array)

 I want to see the xml response that the caller will receive (.NET user),
 but as the returntype is array, when I cfdump the result, I get a nicely
 formatted array dump, rather than the raw xml.

 Anyone know a quick way to access the actual soap xml response? Or
 should I use xml to create an xml object and return THAT rather than the
 array?

 Cheers,
 Adam

 cfinvoke webservice=http://mywebservices/myservice.cfc?wsdl;
method=getArray
returnvariable=ws
cfinvokeargument name=a value=what /
cfinvokeargument name=b value=fun /
 /cfinvoke

 cfdump var=#ws#

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~--~~~~--~~--~--~---