Interfacing ColdFusion with WAS
I have an ABAP function module on our Web Application Server that is remotely enabled. I have a user running ColdFusion 5.0 on a Windows server. My user is wanting to do a remote function call from their ColdFusion application to my function module on the WAS using code generated by the Web Services Definintion Language. Is it possible to do this with ColdFusion 5 or is ColdFusion MX required to make this interface work. Any advice on this subject would be appreciated.
Thanks,
Ken Gray
Message was edited by: Kenneth Gray
Let my check that I've understood it correctly: you want to call a WAS webservice from CF 5 or CF MX.
Well it's easy.
Check http://www.cfdev.com/xml/. You'll see that WDDX is the way to go. There is a free SOAP client->
http://www.cfdev.com/products/productdetail.cfm/id/1015
But with CF MX (I recommend to upgrade to MX (6.1 now), since it's far better for this kind of stuff), it's even easier, check
http://www.cfdev.com/code_samples/code.cfm/CodeID/44/ColdFusion/Invoking_SOAP_Web_Services_with_ColdFusion_MX_CFINVOKE_Tag
Similar Messages
-
My iPod Touch is te 4th generation with iOS 4 only... The desktop that it used to connect with was broken and I couldn't update my iPod touch as all content is linked to the iTunes on that broken PC. What should I do?I don't want to erase all my music recording. (couldn't back up easily...) my dairy, my financial record made on apps...
If I got a new Mac book pro soon, would it helps backuping everything?awesome121, he does not an an iCloud account. You need iOS 5 or later for iCloud and the poster said he has iOS 4.
awesome121 wrote:
DO you have a icloud account? -
What are the benefits of buying an iPad 2 with wi-fi, or with 3G when I already have an iPhone 4 with 3G? My plan with was to go for wi-fi and connect to the internet through my iPhone 4. Am I missing out on anything by not getting 3G?
James9901 wrote:
I tried the tethering and hated it. The connection breaks every time I get > 25 feet from it and it's a pain to reestablish the connection. I suppose if I had to choose between breaking connections every now and then or paying another $100 + $25/month I'd do the tethering.
Or just carrying the phone in your pocket? Just saying..... -
Ejb 2.0 deployment code error with WAS 6.1
Hi we have recently migrated to WAS 6.1 from 5.1.
Since then we are facing the below problem.We use ant task to call ejbDeploy.sh to generate deployment code for one of our ejb module.All i did in the ant script was changing the path to ejbdeploy tool from WAS 6.1.However the application is built finally but showing this error in the middle of running the tool.
If i replace the ejb-jar.xml to version 2.1 it is working fine with no error but as originally the application is coded on ejb 2.0 and here it is showing error.
I am afraid of changing the dtd version just to avoid this error,also running with the error in the older version would cause any problem in the production later?
Your help is needed
Exception:
{color:#0000ff}o0825.02EJB Deploy configuration directory: /users/users-2/t504625/.eclipse/configurationframework search path: /auto/prod/ver/WAS/610_21/deploytool/itp/plugins
[exec] org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ResourceLoadException: IWAE0007E Could not load resource "META-INF/ejb-jar.xml" in archive "/vobs/glbtrs01/gmm/build/src/java/temp/AppMessaging.jar"
[exec] Stack trace of nested exception:
[exec] org.eclipse.emf.common.util.WrappedException: java.net.ConnectException: Connection timed out
[exec] at org.eclipse.wst.common.internal.emf.resource.EMF2SAXRenderer.doLoad(EMF2SAXRenderer.java:97)
[exec] at org.eclipse.wst.common.internal.emf.resource.TranslatorResourceImpl.basicDoLoad(TranslatorResourceImpl.java:142)
[exec] at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.doLoad(CompatibilityXMIResourceImpl.java:173)
[exec] at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1094)
[exec] at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:900)
[exec] at org.eclipse.wst.common.internal.emf.resource.CompatibilityXMIResourceImpl.load(CompatibilityXMIResourceImpl.java:259)
[exec] at org.eclipse.wst.common.internal.emf.resource.TranslatorResourceImpl.load(TranslatorResourceImpl.java:388)
[exec] at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:249)
[exec] at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:264)
[exec] at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:390)
[exec] at org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategyImpl.getMofResource(LoadStrategyImpl.java:347)
[exec] at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl.getMofResource(ArchiveImpl.java:731)
[exec] at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleFileImpl.getDeploymentDescriptorResource(ModuleFileImpl.java:61)
[exec] at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.preprocessArchives(BatchExtension.java:3681)
[exec] at com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.run(BatchExtension.java:340)
[exec] at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
[exec] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
[exec] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
[exec] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[exec] at java.lang.reflect.Method.invoke(Method.java:585)
[exec] at com.ibm.etools.ejbdeploy.batch.impl.BootLoaderLoader.run(BootLoaderLoader.java:476)
[exec] at com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.execute(BatchDeploy.java:101)
[exec] at com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:106)
[exec] at com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java:336)
[exec] Caused by: java.net.ConnectException: Connection timed out
[exec] at java.net.PlainSocketImpl.socketConnect(Native Method)
[exec] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
[exec] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
[exec] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
[exec] at java.net.Socket.connect(Socket.java:507)
[exec] at java.net.Socket.connect(Socket.java:457)
[exec] at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
[exec] at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
[exec] at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
[exec] at sun.net.www.http.HttpClient.<init>(HttpClient.java:214)
[exec] at sun.net.www.http.HttpClient.New(HttpClient.java:287)
[exec] at sun.net.www.http.HttpClient.New(HttpClient.java:299)
[exec] at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:792)
[exec] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:744)
[exec] at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:669)
[exec] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:913)
[exec] at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
[exec] at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
[exec] at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
[exec] at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
[exec] at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
[exec] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
[exec] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[exec] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[exec] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[exec] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
[exec] at org.eclipse.wst.common.internal.emf.resource.EMF2SAXRenderer.doLoad(EMF2SAXRenderer.java:93)
[exec] ... 26 more {color}I am sure all the setup is coorect.
i even tried the same script with WAS 5.1 ejbDeploy.sh tool and did not face this problem.
This is what i tried again in WAS 6.1 but with the same result.
We had two ejb module.
I replaced dtd to version 2.1 in one module and left the other one with the 2.0
Then when the ant scripts execute the task ejbDeploy.sh
for module 1 with dtd 2.1 it shows WAS/deploytool/ipt/ejbdeploy.options not found error and stays for a second and then started building tha module 1 no exception is thrown and then shows the same not found error for module 2 with dtd 2.0 and stays forever until the connection timeout exception is thrown and then started building the module.
I don't know the cause for the timeout exception when only DTD 2.0 is used.
Please help. -
BlazeDS with WAS 6.1 streaming channel killing the server?
Hi,
We are experiencing a strange issue with WAS (websphere server) 6.1 with BlazeDS
after a while severe performance degrades and then system hungs shortly after
Some prelimenary observations:
we are seeing following errors in Server Log:
[6/22/10 16:41:26:828 EDT] 000000b0 ThreadMonitor W WSVR0605W: Thread "WebContainer : 3-in-streaming-mode" (0000002a) has been active for 656127 milliseconds and may be hung. There is/are 1 thread(s) in total in the server that may be hung.
[6/22/10 16:48:00:144 EDT] 000000b1 ThreadMonitor W WSVR0605W: Thread "WebContainer : 0" (00000027) has been active for 753457 milliseconds and may be hung. There is/are 2 thread(s) in total in the server that may be hung.
We do see that there is always one active connection maintained betweeb browser and server(which is connected to ):
messagebroker/streamingamf
and that keeps sending keep-alive signals , now is this a reason we are getting hung messages? can we safely ingore it?
basically can streaming chanell cause that error? and what would be suggestions tweaks/modifications to fix that issue?
our destination config :
<destination id="alerts-Push-jms" >
<properties>
<jms>
<destination-type>Topic</destination-type>
<message-type>javax.jms.TextMessage</message-type>
<connection-factory>jms/***JMSTopicConnectionFactory</connection-factory>
<destination-jndi-name>jms/AlertEventingTopic</destination-jndi-name>
<delivery-mode>PERSISTENT</delivery-mode>
<message-priority>DEFAULT_PRIORITY</message-priority>
<preserve-jms-headers>"true"</preserve-jms-headers>
<acknowledge-mode>AUTO_ACKNOWLEDGE</acknowledge-mode>
<max-producers>1</max-producers>
</jms>
</properties>
<adapter ref="jms" />
<channels>
<channel ref="my-streaming-amf" />
</channels>
</destination>Actually we did not fix it from WAS perspective, but what we did is ditched a blazeds streaming channel in favor of polling channel,
that solved the issue.
it appears that WAS has issues with connections that are Held open for a long time. -
I created three database tables in PostgreSQL database and interfaced it with JDBC.
In the interface program, I queried the program to retrieve data from two tables. I got results from the first table, but did not get any result from the second table. Rather, the system sent the following error message: Exception in thread "main" java.sql.SQLException: ERROR: parser: parse error at or
near "mdas_ar_coments"
at org.postgresql.core.QueryExecutor.executeV2(QueryExecutor.java:289)
Mdas_ar_coments is the name of the second table. I have checked the names, there is no spelling mistake in both the database tables and interface program.
Please, let me know how to query two or more tables in a JDBC interface program.
Thanks.Please show me how you are attempting to query two tables using JDBC.
-
Conditional Interface Determination with Flat Files
Hello,
I have one sender interface (dummy) which could either hold a flat file or an XML file. On receiver side there is one system with two receiver interfaces, one should be used for the XML structure and one for the flat structure.
My requirement is to have a conditional interface determination with an (exclusive) OR logic. Pseudo code:
The XML structure has "submission" as root node. So I use the condition (/submissioin) EX to determine whether it is an XML file and I check with not(/submission) EX to determine whether it is a flat file. However the condition does not work using a flat file ("Unable to find an inbound interface"). Could it be, that the conditional expression never is true in case a flat file arrives? How can I achieve this requirement?
What I additionally do with the flat file is just calling a Java Mapping that sets dynamic attributes for a file receiver, the flatfile itself is dumped on a file system without any addtional conversion logic.
Thank you for your advice.How can I ingnore a message in case a condition applies? I am just aware of the fact that you can ignore messages in case NO condition applies.
Couldn't you simply reverse the logic and use "not equals"? Or perhaps you can use the EX operator to alter your conditions... here is more info on the EX (exists) operator
Re: ConditionEditor: Check if element is empty
What is best practice in this case? Should I use a "dummy receiver"? However if I use a dummy receiver I think I would receive a "interface determination not found" error. How would you do that?
I've never found the need to work with dummy receivers so I cannot comment there. -
Oracle 11g jars not being compatible with WAS 6.1.x versions
Hi,
We have an issue with Oracle 11g jars not being compatible with WAS 6.1.x versions.
If we use Oracle10g client jars then they are working with the 11g database.
Below are the findings
Working fine With Ojdbc14.jar
Not working With Ojdbc5.jar
WAS 6.0
Working fine With Ojdbc14.jar
Not working With Ojdbc5.jar
WAS 6.013
Working fine With Ojdbc14.jar
Not working With Ojdbc5.jar
As per IBM website link Oracle 11g should be working with WAS 6.1.0.21 upwards
Could somebody please help me regarding the same.
thanks & Regards,
Anoop# Download the full Firefox installer from http://www.mozilla.com/
# Delete the Firefox [http://kb.mozillazine.org/Installation_directory installation directory], making sure all the Firefox files and folders are removed. The default location on 32 bit Windows is C:\Program Files\Mozilla Firefox\
# Re-install Firefox
Note that deleting the Firefox installation directory will not remove your bookmarks or other Firefox user data, they are stored elsewhere. -
Interface Matlab with java good links and info
HI All
i want to interface Matlab with java
i did search through the net but i haven't got nay good links and info
by that i mean the given links either not working or do work for old version of matlab ie R13
i have R14
IF you have already done that or
you have a really good links and info and steps
please post them here
thanksIt doesn't appear that Matlab is free, so i'd expect that's why you are having trouble finding download links.
Here's is an overview link
http://www.mathworks.com/access/helpdesk/help/techdoc/rn/r14_v7_external.html#1011951 -
Interface-Mapping with a Fault Message Type
Hi,
we have an abap-proxy and some messages generated errors. The errors can be displayed via sxmb_moni. The proxy raises an "Application Error (Restart possible)".
Now I wanna transform the generated fault message (of the proxy) with a message mapping and send the output to a file.
My problem is, that it is not possible to define an interface mapping with the fault message as well as it is not possible to define a receiver determination.
Any ideas?
Thanks a lot
Regards
Wolfgang HummelHello
As far as I know you can propogate the application error back to the calling application only in case of a Synch Interface? Are you making a Synch call where the proxy triggers a fault message, if yes then all you need to do is to make the change in XI to have the fault message for both the outbound and inbound message interfaces and then a corresponding fault message mapping and select this in the Interface Mapping and then the fault message will be sent to the source / calling application.
In the case of Asynch calls I don't think this is possible until you use a BPM. Have not tried this myself though.
Regards,
Bhavesh -
Configure PDF forms with WAS 620
Hi,
We are on WAS 620 and want to work with interactive pdf forms which is available with WAS 640.
I was told that this can be done by proper config with WAS 620 also.
Can some one confirm this and let me know where to start and any material I can refer too.Hi Venkat,
As far as I know the WAS 620 only supports to output your Forms and Scripts to PDF Format but they are not interactive.
The Adobe Interactive Forms Solution is only available from WAS 640. You can design your forms either in ABAP transaction SFP or in NWDS(Netweaver Developer Studio) Form Designer.
You can ofcourse replace your SMART Forms with the interactive forms in ABAP. Transaction is SFP(Form Designer). This transaction is available only from ECC 5.0 which runs on WAS 640.
Check the following links for all the information you need on PDF Forms and migration of your SMART Forms to PDF Forms. But as you see all this is available from ERP 2004 onwards which is on WAS 640.
http://help.sap.com/saphelp_nw04/helpdata/en/c8/4adf7ba13c4ac1b4600d4df15f8b84/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/16/a369b1800e4bdda978ee0fe3b7bd2c/frameset.htm
Hope this is helpful.
Regards,
Shubham -
'Using ColdFusion with Flex – sample does not work
Hi, I am having problems with Tom Jordahl's article on 'Using
ColdFusion with Flex – Part 1: Creating and running a contact
manager application' found on link '
http://www.adobe.com/devnet/flex/articles/coldfusionflex_part1_02.html'
I do not understand his instruction. In step 4, it states:
"Copy the channel definition from the example Flex
configuration files found in resources/config (default location:
C:\fds2\resources\config\). "
In that folder, I have the following files:
data-management-config.xml, messaging-config.xml, proxy-config.xml,
remoting-config.xml. So which file in this folder am I supposed to
copy from. And where am I supposed to paste it to? Is it into
WEB-INF/services-config.xml file ?
When I ran the test,
http://localhost:8700/samples/dataservice/cfcontact/contactmgr.mxml,
I get the following errors:
4 Errors found.
Error /dataservice/cfcontact/contactmgr.mxml:31
Definition samples.contact could not be found.
30: import mx.rpc.events.*;
31: import samples.contact.*;
32:
I am very new at Flex and trying hard to understand this sw.
Can someone pse help. Thanks a million.What he means is to copy the channel section from the
C:\fds2\resources\config\services-config.xml file:
<!-- ColdFusion specific RTMP channel -->
<channel-definition id="cf-dataservice-rtmp"
class="mx.messaging.channels.RTMPChannel">
<endpoint uri="rtmp://{server.name}:2048"
class="flex.messaging.endpoints.RTMPEndpoint"/>
<properties>
<idle-timeout-minutes>20</idle-timeout-minutes>
<serialization>
<!-- This must be turned off for any CF channel -->
<instantiate-types>false</instantiate-types>
</serialization>
</properties>
</channel-definition>
<!-- ColdFusion specific HTTP channel -->
<channel-definition id="cf-polling-amf"
class="mx.messaging.channels.AMFChannel">
<endpoint
uri="
http://{server.name}:{server.port}/{context.root}/messagebroker/cfamfpolling"
class="flex.messaging.endpoints.AMFEndpoint"/>
<properties>
<serialization>
<!-- This must be turned off for any CF channel -->
<instantiate-types>false</instantiate-types>
</serialization>
<polling-enabled>true</polling-enabled>
<polling-interval-seconds>8</polling-interval-seconds>
</properties>
</channel-definition>
To the file
C:\fds2\jrun4\servers\default\samples\WEB-INF\flex\services-config.xml.
The resources directory contains just templates for
development, the samples
directory is a fully-deployed flex app.
Jorge Hernandez
"watsonValu" <[email protected]> wrote in
message
news:[email protected]...
> Hi, I am having problems with Tom Jordahl's article on
'Using ColdFusion
> with
> Flex ? Part 1: Creating and running a contact manager
application' found
> on
> link
> '
http://www.adobe.com/devnet/flex/articles/coldfusionflex_part1_02.html'
> I do not understand his instruction. In step 4, it
states:
> "Copy the channel definition from the example Flex
configuration files
> found
> in resources/config (default location:
C:\fds2\resources\config\). "
> In that folder, I have the following files:
data-management-config.xml,
> messaging-config.xml, proxy-config.xml,
remoting-config.xml. So which file
> in
> this folder am I supposed to copy from. And where am I
supposed to paste
> it to?
> Is it into WEB-INF/services-config.xml file ?
> When I ran the test,
>
http://localhost:8700/samples/dataservice/cfcontact/contactmgr.mxml,
I get
> the
> following errors:
> 4 Errors found.
> Error /dataservice/cfcontact/contactmgr.mxml:31
> Definition samples.contact could not be found.
> 30: import mx.rpc.events.*;
> 31: import samples.contact.*;
> 32:
>
> I am very new at Flex and trying hard to understand this
sw. Can someone
> pse
> help. Thanks a million.
>
> -
JTS transaction controller working with WAS 6
We are using TopLink 9.0.4.4. It provides the controller class JTSExternalTransactionController_5_0 to work with WAS 5.0 .
Where can I get JTS transaction controller that works with WAS 6 application server?
Your info would be greatly appreciated.
HaiweiI believe that the JTSExternalTransactionController_5_1 controller will work with WebSphere 6.
-
ODI Interface Icon with I or U
Can anyone please explain what is the difference between ODI interface icons with an I or U ?
It's part of ODI's internal version control. 'I' means than the object has been inserted and 'U' means that the object has been updated since the last version.
-
How in ColdFusion with in variables get a Oracle stored procedure to return values?
How in ColdFusion with in variables get a Oracle stored procedure to return values?
We have tried several things, we can get a stored procedure to return a result set if we are not passing in variables but we cannot get them when we are passing in variables.
We know how to do it calling MS SQL.
Thanks for any help,
Nathan Sr
P.S. we have heard this may not be possible with the current Oracle Driver is there a different Oracle driver?I can only barely understand what you're asking here (not from a technical perspective, but from understanding your written English), but I suspect you're wanting to know how to pass back values other than recordsets from Oracle?
You should be able to pass them back via a type=out proc param, shouldn't you?
If you could reword your post so it's a bit more coherent, and possibly post some code, that might help.
Adam
Maybe you are looking for
-
I can't get photostreaming to stop downloading even tho I deleted all photos and turned off. It is always in downloading mode. It's using my data minutes
-
Found cure for Acrobat 9 not able to select Printer in Page setup.
This may already be covered in another thread. In fact I used this as suggestion to cure another problem in another thread. That was related to editing files in Acrobat 9. It cures this problem I brought up on forum a week after I installed acrobat 9
-
How do i find out what type of pgm i need to view a video?
sometimes i cannot watch some videos..how do i find the program to let me view them?
-
SOAPProxyAdapter - BASIC Auth relay config
I'm hoping I can use BlazeDS to solve a particular problem. A Flex client needs to connected to a SOAP service, which all works fine. The service is communicated with over a SSL channel using Basic Authenication, and when a call is made the browser
-
Looping the selected row in JTable
By default, when the first row in a JTable is selected and the up arrow is pressed, the first row remains selected. What I need in this case is the selected row to change to the last row in the table, in effect creating a circular selection. I might