Re: OS X Web Services Running! was Re: X-server?

2002-08-02 Thread Dick Applebaum

Sean

Have you had any luck Publishing Web services  -- navigating the pain, 
er, ah, plain of jars?

Dick


On Thursday, August 1, 2002, at 10:28 AM, Sean A Corfield wrote:

 I tried a few other combinations of moving .jar files around but I can't
 yet get both consuming and producing to work... I'll continue to work on
 this today!


__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: OS X Web Services Running! was Re: X-server?

2002-08-02 Thread Sean A Corfield

On Friday, August 2, 2002, at 07:52 , Dick Applebaum wrote:
 Have you had any luck Publishing Web services  -- navigating the pain,
 er, ah, plain of jars?

*groan* Not yet. I'm talking to the ColdFusion team to see if I can find 
out why / how the environment for the stub compiles is different to the 
environment for the CFMX application itself.

This is very high on my list of not-quite-work tasks!

If you're not annoying somebody, you're not really alive.
-- Margaret Atwood

__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: OS X Web Services Running! was Re: X-server?

2002-08-01 Thread Dick Applebaum

My CFMX on Mac OS X just consumed a web service -- it was quite tasty

Thanks Sean

You do *not* want to copy webservices.jar from the CF runtime/lib to 
/Library/Java/Extensions/ -- it screws up getting the definition of a 
local cfc as a web service, i.e. the following won't work

http://127.0.0.1:8500/cfdocs/exampleapps/cfc/tempconverter.cfc?wsdl

So, now consuming a web service works, but publishing does not --

The .java files are created in stubs, but they are not compiled into 
class files

Any ideas?

the beat goes on!

Dick

On Wednesday, July 31, 2002, at 10:06 PM, Sean A Corfield wrote:

 On Wednesday, July 31, 2002, at 04:23 , Dick Applebaum wrote:
 I also put a copy of java2wsdl.jar and wsdl2java.jar in the same 
 folder.

 Don't need 'em.

 You need tt-bytecode.jar which is part of the axis-1_0 distribution.
 Download the Beta 3 .tar.gz from 
 http://xml.apache.org/axis/index.html -
 inside axis-1_0/lib you'll find tt-bytecode.jar - cp it to
 /Library/Java/Extensions/

 You also need xmlParserAPIs.jar which is part of the Xerces Java 2
 distribution which you can download from
 http://gump.covalent.net/jars/latest/xml-xerces2/ - cp that to
 /Library/Java/Extensions/

 I also cp webservices.jar from the CF runtime/lib to there but I haven't
 verified whether it's actually necessary.

 Access a web service (e.g., the Amazon one) and lo and behold!!

 If you're not annoying somebody, you're not really alive.
 -- Margaret Atwood

 
__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: OS X Web Services Running! was Re: X-server?

2002-08-01 Thread Sean A Corfield

On Thursday, August 1, 2002, at 02:19 , Dick Applebaum wrote:
 You do *not* want to copy webservices.jar from the CF runtime/lib to
 /Library/Java/Extensions/ -- it screws up getting the definition of a
 local cfc as a web service, i.e. the following won't work

   http://127.0.0.1:8500/cfdocs/exampleapps/cfc/tempconverter.cfc?wsdl

Nor will:
http://127.0.0.1:8500/cfdocs/exampleapps/cfc/tempconverter.cfc
as I just found out. Rats!

I tried a few other combinations of moving .jar files around but I can't 
yet get both consuming and producing to work... I'll continue to work on 
this today!

Sean A Corfield -- http://www.corfield.org/blog/

If you're not annoying somebody, you're not really alive.
-- Margaret Atwood

__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: OS X Web Services Running! was Re: X-server?

2002-08-01 Thread Stacy Young

HHmm those mac portables starting to look much more attractive now...hehe


-Original Message-
From: Sean A Corfield [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, August 01, 2002 1:28 PM
To: CF-Talk
Subject: Re: OS X Web Services Running! was Re: X-server?


On Thursday, August 1, 2002, at 02:19 , Dick Applebaum wrote:
 You do *not* want to copy webservices.jar from the CF runtime/lib to 
 /Library/Java/Extensions/ -- it screws up getting the definition of a 
 local cfc as a web service, i.e. the following won't work

   http://127.0.0.1:8500/cfdocs/exampleapps/cfc/tempconverter.cfc?wsdl

Nor will:
http://127.0.0.1:8500/cfdocs/exampleapps/cfc/tempconverter.cfc
as I just found out. Rats!

I tried a few other combinations of moving .jar files around but I can't 
yet get both consuming and producing to work... I'll continue to work on 
this today!

Sean A Corfield -- http://www.corfield.org/blog/

If you're not annoying somebody, you're not really alive.
-- Margaret Atwood


__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: OS X Web Services Running! was Re: X-server?

2002-08-01 Thread Dick Applebaum

On Thursday, August 1, 2002, at 10:28 AM, Sean A Corfield wrote:


 I tried a few other combinations of moving .jar files around but I can't
 yet get both consuming and producing to work... I'll continue to work on
 this today!


Yeah, I did that too -- kinda' like playing those bar games with dice 
cups and 6 dice each -- there are so many components (jars) and a 
multitude of combinations -- it takes some skill, but it's mainly luck.

Dick

__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: OS X Web Services Running! was Re: X-server?

2002-07-31 Thread Sean A Corfield

On Wednesday, July 31, 2002, at 04:23 , Dick Applebaum wrote:
 I also put a copy of java2wsdl.jar and wsdl2java.jar in the same folder.

Don't need 'em.

You need tt-bytecode.jar which is part of the axis-1_0 distribution. 
Download the Beta 3 .tar.gz from http://xml.apache.org/axis/index.html - 
inside axis-1_0/lib you'll find tt-bytecode.jar - cp it to 
/Library/Java/Extensions/

You also need xmlParserAPIs.jar which is part of the Xerces Java 2 
distribution which you can download from 
http://gump.covalent.net/jars/latest/xml-xerces2/ - cp that to 
/Library/Java/Extensions/

I also cp webservices.jar from the CF runtime/lib to there but I haven't 
verified whether it's actually necessary.

Access a web service (e.g., the Amazon one) and lo and behold!!

If you're not annoying somebody, you're not really alive.
-- Margaret Atwood

__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: OS X Web Services Running! was Re: X-server?

2002-07-31 Thread Sean A Corfield

On Wednesday, July 31, 2002, at 10:06 , Sean A Corfield wrote:
 Access a web service (e.g., the Amazon one) and lo and behold!!

Here's a simple example (you'll need to sign up for the Amazon developer 
program and get your own developer tag to go in this code!):

html
head
titleAmazon Keyword Search/title
/head
cfparam name=URL.kw type=string default=ColdFusion/
cfoutput
cfset kwReq = structNew() /
cfset kwReq.keyword=URL.kw /
cfset kwReq.page=1 /
cfset kwReq.mode=books /
cfset kwReq.tag=webservices-20 /
cfset kwReq.type=lite /
cfset kwReq.devtag=XXX your developer tag goes here XXX /
cfset kwReq.version=1.0 /
cfinvoke 
webservice=http://soap.amazon.com/schemas/AmazonWebServices.wsdl; method=
KeywordSearchRequest
KeywordSearchRequest=#kwReq#
returnvariable=amazon/
cfset details = amazon.getDetails()/
pBooks matching #kwReq.keyword#:/p
cfloop index=i from=1 to=#arrayLen(details)#
!--- cfdump label=details[#i#] var=#details[i]#/ ---
cfset authList = details[i].getAuthors()/
cfset authors = arrayToList(authList,, )/
p#details[i].getProductName()# by
#authors# sfont color=red#details[i].getListPrice()#/font/s 
#details[i].getOurPrice()#/p
/cfloop
/cfoutput
body
/body
/html

__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists