Web Services issues in Coldfusion 8

Hi all

I'm trying to deploy .cfc files as web services in a coldfusion multiserver environment 8.  So far it works not so well.  Every time I have navigate to the .cfc file in a browser, the empty page .cgi scope and not documentation of the component.  If I add? WSDL to the URL, I get the code for the dumping of scope .cgi.   You also cannot manually register a web service in coldfusion administrator.  (the components that will be the web services are marked as access = "remote", these same .cfc files have been and are used in CF) 7.1

Cfc in the CFIDE folder files use the cfcexplorer.cfc component and have the documentation of the component.

-----------------------------------------------------------------

My environment:

3 x blades Sun Solaris T6300

3 x 8 processors

32 GB of RAM

Hardware load balancer:

Juniper DX

Partition NAS/Web support for webroot

---------------------------------------------------------------

Does anyone know of any issues with web services in CF 8 multi-server environment?  Why don't the .cfc and .cfc? WSDL dump the scope of cgi and show me the documentation of the element or the WSDL file?  Is there a setting I'm missing somewhere in order to allow web services?  Why can't study documentation of CFCs on a file in the root Web?

Any help or idea would be greatly appreciated!

Thanks in advance

Steve

There is nothing web service and multi host ColdFusion or ColdFusion 8 which must be radically different then standalone CF7 web services.

Y at - there anychance there is an own Application.cfc file that may apply to the ColdFusion component files?  Note that any file in Application.cfc (or Application.cfm) between the SWC file and the root Directory apply to the code that runs the web service.  There is a witch hunt often neglected with some Application.cfc files that use the onRequest() method.  This method can interfere with normal delivery in response to a request from web service wsdl if this has not been posted to in the onRequest() method.

Tags: ColdFusion

Similar Questions

  • R17 Web Service issues

    R17 WS documentation is available yet? If so, could you give a link?

    Will be the custom object 3 > be supported by the API 1.0?

    VA 2.0 API provide the same level of support as 1.0 (child objects, attachments, etc.)

    Thanks in advance.

    R17 WS documentation is available yet? If so, could you give a link?

    R17 guide can be found here: http://download.oracle.com/docs/cd/E15496_01/books/OnDemWebSvcs.pdf

    3 custom object > be supported by the API 1.0?

    No, these objects are only supported via WS v2.0.

    VA 2.0 API provide the same level of support as 1.0 (child objects, attachments, etc.)

    Child object support was introduced in WS v2.0, please see the link above WS User Guide for more details.

    Thank you
    Sean

    Published by: Sean Duffy on March 24, 2010 07:25

  • Web service invocation problem

    Hello
    I have a problem when the .net web service consumption. This web service expects xmlobject that I create using < cfxml > tags. I used < cfinvoke > and CreateObject without success.
    First of all, I am getting following error message: java.lang.IllegalArgumentException: argument type mismatch
    When I update several times (15 or almost) I get following error message: java.lang.IllegalArgumentException: java.lang.ClassCastException@1645559. I don't know where is the problem.

    Thank you
    Mark

    Just realized we have been stolen around for nothing. There is still no universal standard for the passage of XML as arguments to the Web service methods. ColdFusion has its own, as do .NET and Java.

    The single currency among all web services is SOAP. Therefore, a universal way to pass XML from any client to a web service on any platform, is like a SOAP document.

    In your case, you want to make a SOAP document that includes your XML file. You could then move it to the web service using . I googled and found an fully developed for example in houseOfFusion.

  • Problem of DH handshake with the web service using ColdFusion 7 and 8 after java update 8

    ColdFusion 7 and 8 are provided with a variant of JRE1.6.

    I have a script that has consumed a web service for years with success.  Last week, the web service provider updated their version of Apache and Java on the server java 1.8 (or java-8).

    I could no longer consume the web service once the web service provider updated to Apache and Java and would be the following error DH keypair every time that I try to consume the service:

    -----------------

    AxisFault

    faultCode: {http://schemas.xmlsoap.org/soap/envelope/} Server.userException

    faultSubcode:

    faultString: javax.net.ssl.SSLException: java.lang.RuntimeException: could not generate keypairs DH

    faultActor:

    faultNode:

    faultDetail:

    {}http://xml.apache.org/axis/} stackTrace:javax .net .ssl .SSLException: java.lang.RuntimeException: could not generate keypairs DH

    at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:190)

    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1591)

    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1554)

    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1537)

    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1130)

    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1107)

    at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186)

    to org.apache.axis.transport.http.HTTPSender.getSocket (HTT... ''

    -----------------

    I asked the service provider web, why it would stop working and how we can solve this problem.  They suggested that upgrade to the latest version of Java on my server running ColdFusion.  I did some research and found the problem to be with the amount of memory allocated to the variable containing the encryption key.

    The big problem is when I tried to update java on this particular server (Windows Server 2003), the installation has returned a messaged stating that he could not run on the older operating system and I need to update my OS to install java.

    Does anyone have a workaround in ColdFusion 7 or 8 that you can establish the DH handshake using Java 1.6 on your local server while consuming a web service on a server using Java 1.8?

    Hi, frank000000,

    I know that we had a serious problem with any Java 7 after update 25.  They are off a lot of network permissions and other things, for safety, that used to be available in versions prior to the update 25.  But it's while we were in CF Server 9.

    Since we switched to CF Server 10 (making sure that we got the CF Installer provided with Java 8), we had very few issues related to Java.

    It seems strange to me that the upgrade to 1.8 host while your server is 1.6 would cause problems.  It could very well be something else.  I would like to ask the host for documentation describing exactly how/why their 1.8 may cause interference with your 1.6.

    HTH,

    ^_^

  • ColdFusion 10 and Ebay Web Service WSDL

    Hi all

    We have recently upgraded to Coldfusion 8 to 10 of Coldfusion and we found a business-stopping bug:

    In the Administrator console in Coldfusion 10 GB of DATA & SERVICES-> Web Services.

    It adds a web with link WSDL service http://developer.eBay.com/webservices/latest/ebaySvc.WSDL

    Other input values have no effect in this issue.

    You will then receive a Coldfusion error:

    Model: /CFIDE/Administrator/extensions/webservices.cfm

    Diagnostics: javax.wsdl.Operation.getExtensionAttributes (Ljava/util/card); null

    The error occurred on line 141.

    Same error if you try to instantiate a web service to ebay object with data inside the cfscript WSDL.

    It is a show serious Cap because ebay API no longer work with Coldfusion 10 and we were forced to a restore to Coldfusion 8.

    Any help would be much appreciated!

    P.S. other WSDLs non-ebay seem to add fine to CF10.

    Adam, the web service consumption will also be affected. The version decides what framework is used to generate the client-side stubs.

    DmitriD, could you please post the code used for the test. Where did you try to set the version? Set the version in CreateObject() or CFInvoke to consume. If you change the wsversion of server level, it is used by publishing only.

    WS = createObject ("Web service", "http://developer.ebay.com/webservices/latest/ebaySvc.wsdl", {wsversion = "1"} ");

    WriteDump (ws);

    I tried the above code and it works fine for me. Please check and let me know.

    Thank you

    Paul

  • Has anyone who successfully registered a web services running ColdFusion 11 with Windows 7, IBM WebSphere 8.5, IBM JDK 1.7

    I'll set up a development zone Windows 7 running IBM WebSphere 8.5 (64-bit), IBM JDK 1.7 (64-bit). I installed the ColdFusion 11 ear (11,0,03,292480) file, but when I try to save a web services in ColdFusion Adminstrator using Web Service Version 1 or 2 times I get the following error.

    Error 500: java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; Class = 'com' / Sun/tools/javac/hand, offset = 6

    What I read online (errors in Java: "UnsupportedClassVersionError... bad major version at offset = x '-the quite) the" 'java.lang.UnsupportedClassVersionError: "and"bad major release"means that the project has been compiled with a compiler to Java level higher than the runtime can support." I am under IBM JDK 1.7, when I do a version check (java.exe - version) in the directory bin it is said it is based on Oracle 7u13-b08. I read ColdFusion 11 supports Java 1.7 so I'm not sure what the problem is

    Problem solved! I found the following documentation: installation of the Configuration of JEE - enable web services

    Enable web services

    To enable web services, copy the tools.jar home Java WebSphere using the cfusion/lib directory.

    I'm not entirely sure why I needed to do what it has worked well in ColdFusion 9, JDK 1.6 IBM WebSphere IBM 7. There must be a pretty big difference between 1.7 JDK/software SDK IBM and Oracle/Sun JDK/SDK 1.7.

    Information of manifesto in the tools.jar that ships with ColdFusion 11 says:

    Manifest-Version: 1.0

    Created by: 1.7.0_07 (Oracle Corporation)

    As when the information of the manifesto of the tools.jar I copyied was:

    Manifest-Version: 1.0

    Ant-Version: Apache Ant 1.7.1

    Created by: 1.7.0 (IBM Corporation)

    Class-Path: ibmorbtools.jar

    I renamed the file tools.jar.bk - non - ibm it's important not to have a file with a ".jar" extension that has the same class on the inside path or it is loaded by the JAVA virtual machine.

  • Invoke ColdFusion web service

    I try to call a web service, and I get an error message.

    401 unauthorized error.  Cannot read the WSDL to the URL: http://servername/generation/bj/TestCalculation.wsdl.  An exception has occurred during the call to a method of Application.cfc event handler. The name of the method is: onRequest.

    I put the URL in the browser and it will pull up the WSDL. I can call it in a flex program and it works perfectly.  I don't know a lot about Flex and I'm just learning so I wanted to see if I could make it work with ColdFusion.

    Here's the CFC I created:

    < cffunction = access "myCalcFunction" name = "remote" returntype = "any" >

    < cfinvoke

    "WebService ="http://servername/generation/bj/TestCalculation.wsdl"

    method = "TestCalculation".

    returnvariable = "answer" >

    < cfinvokeargument = name value = "#arguments.number1 #" / "Number 1" >

    < cfinvokeargument = name value = "#arguments.number2 #" / "Number2" >

    < / cfinvoke >

    < cfreturn response >

    < / cffunction >

    Can someone point me in the right direction of what I can do?

    Thanks for the support.

    BJ

    Yes, I finally found out there is a problem of coldfusion 9.1.    I uninstalled CF9.1 and installed CF8 and CF9.0 on my local machine.  I ran both web service code and it worked in both.  I then updated my CF9.0 to CF9.1.  I ran it again and it will give me the error.  It runs the same code with the same application.cfc.   Now, I have to get Adobe to solve the problem.

    Alexander, Adam, Dan and Owain.

    Thanks for the help on this.

    BJ

  • Web service in Coldfusion 8

    I installed coldfusion 8 on jrun and have a MacBook Pro (running in the jvm 1.5.0_07). I get a strange error when you try to call the web service.

    coldfusion.jsp.CompilationFailedException: errors reported by Java compiler: / Applications/JRun4/servers/smart/cfusion-ear/cfusion-war/WEB-INF/cfusion/stubs/WS8652285 07/coldfusion/xml/rpc/CFCInvocationException.java:10: can not access the bad file class java.rmi.RemoteException: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/classes.jar class file (java/rmi/R emoteException.class) has the wrong version 49.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath variable. public class CFCInvocationException extends org.apache.axis.AxisFault implements java.io.Serializable {^ 1 error.}

    Thank you
    Samir

    Thank you. It worked.

  • Sudden issue with eprint &amp; allowing any application or web services

    Hi all

    I have a case with HP and spent 4 + hours on the phone with support eprint people and people of departmental support. Unfortunately, they are now gone for the weekend, and I'm still stuck here with a defective system - and have to leave this weekend on businesses (need a business printer works!)

    I hope someone here can help you.
    I have a x576dw MFP

    Connected to a Netgear router hardwired

    Worked very well with eprint services (set up and printing of daily) for 1 + months

    23:00 last night, I sent several jobs to the printer and I noticed today that they were not there. I checked the print server web printers and find that the IP settings had not changed (of course) when he worked the day before. The same IP address, DNS, default etc. same gateway.

    I ran through all the scenarios/patches that I could find online, to change to the evolution of tests and test with DHCP, changing to wired & test with static and wireless Wi - Fi but a different outside the range of the DHCP IP address, change the router to which the printer is sitting on (I have 3 routers), change the config to link change the primary DNS and secondary only be both addresses from Google (8.8 and 4.4), etc etc.

    ePrint crossed (frustrating) exactly the same steps with me and decided that it was a printer problem. They handed me off the coast for the guys from companies who wanted to do exactly the same steps as for the moment (of course). I did just to get through... (note that I can print correctly on the LAN of all routers), and at the end of technical support told me to try a restore to default settings and start over.

    Do you have this (gr) - same error. When I go to the same activate eprint or apps that it says "Web Services could not be activated". I get the same error on the web interface for the printer.

    Help! IM at a loss total here and HP wants to blame the eprint team, the eprint team wants to blame business solutiosn HP!

    (Other notes... I have checked the firmware, it is updated. I checked also up-to-date web software)

    Frustrated to tired business chick!

    Hey, happy that we were able to work.

    I will contact you on the subject to find the failed unit on your part. We will send to a R & D facility.

  • ePrint record new user and the issues of access to Web Services

    In June, I registered the HP printer. Then, I went on the eprint site and registered an e-mail address there. After we have chaged the name of my laptop, the printer recognizes the laptop more (Macbook pro). After having tried everything, reset us the printer to factory settings and rebooted the configure everything again.

    The printer recognizes now my laptop, but I don't have access to web services more, nor the eprint works!

    Webserivces:can not access, it gives me an error message.

    EPrint:When I'll on-site eprint, it shows that you can see your eprint email address... Where? I can my address loging onlysee.

    There is not a single printer in my printer list... I can only add a printer, but when I try to add the printer, I only get error messages. Once I managed to get careful, but he toldme that email eprint was already taken (of course, it is taken, it's mine!)

    Unfortunately I do not know much about the MAC operating system, but you can check on hp.com/support to find out if there is a newer version drivers that may be compatible. On the question of e-mail address, you can add multiple printers to your ePrint account, but each printer would have its own e-mail address. I apologize that the restriction is there for your old custom address but it's to protect the customers to get emails sent to their printer that were not intended for them. (For example if someone was to have chosen your email address as soon as you have disabled web services).

  • Issue of Web services

    I use jdev 11.1.1.7.0

    I have a secure external wsdl. I'll have to call this service, to extract the information (it takes an entry) and display it in the page of the user interface? How do I get there? Should I generate ws proxy? How to make a secure connection? Thank you.

    Check out blog http://biemond.blogspot.co.uk/2009/04/jax-ws-web-service-proxy-client-and.html?m=1 of Edwin

    Timo

  • ColdFusion scheduled task for HTML files with javascript ajax call to the web service

    I have a regular html file, which are generated dynamically (on access to it) for a few seconds (about 7 to 10 seconds) as tables, lines that are added through javascript after having treatment and this process takes about 7-10 seconds of said.

    Using settimeout(), after 15 seconds (to ensure that the content has been correctly filled), I use a web service (.cfc with function with intrusion via cfmail tag inside) through the ajax javascript call, which captures all the html content of the page and sends it to marked e-mail ID - which, during normal operations, works very well - which page is accessible in the browser web and left pending for desired time of 15-20 seconds.

    However, the same page when I programmed in CF admin (even with the time-out of 60 seconds), it never fires the e-mail part.

    Can I have some advice, where I am doing wrong!

    Hi, I mean the scheduled activity could be accomplished using CF native heavyweight instead of light and fast javascript codes codes. Not a big problem anyway.

  • Issue of Web service

    Greetings,

    We have recently changed our ADFS security on some of our servers.  Unfortunately, now our PLM web services do not work on these servers.   Here is the error message I get when I try to set up a service for our web service client reference in Visual Studio.

    ---------------------------
    The HTML document does not have the Web service discovery information.

    Metadata contains a reference that is not resolved: ' https://99.999.9.999/integration/contracts/Prodika/nutrition/V25/NutritionService.svc

    The HTTP request is unauthorized with client authentication scheme 'Anonymous '. The server received authentication header was "Negotiate, NTLM."

    The remote server returned an error: (401) unauthorized.
    ---------------------------

    Any ideas on that?  I have to change the config settings somwhere API prodika?

    Thank you!

    Installation default PLM4P isn't, but web services extensibility Pack install files. You must copy the folder \web\Integration the Pack of extensibility, including the web.config file

  • Problems of migration of ColdFusion 9 to 10 Web service

    I am troubleshooting a problem it is to have a customer migrating since CF9 to CF10. A webservice call that worked, no longer works. When I call my CF10 server, I get this error:

    C:...\cfusion\stubs\WS-853189522_2...\Service.Java:10: enum, interface, or class should package...;

    The ellipses are to replace the names and paths of files owners.

    When I add the attributes wsversion and refreshwsdl cfinvoke, I get a "cannot read the WSDL to the URL:... / service.asmx. WSDL error"instead of the above error. I also changed the default ws 2-to-1 version in CF administrator, without change. Are there other problems known with CF10 that would interfere with a Web service call that worked in a previous version?

    I found the answer, and it turned out to be quite simple. After the change to the default version of webservice in CF Admin, I had to restart the server. It works now, but I'm curious to know why the addition of the attribute of the cfinvoke tag wsversion call service Web did not work. My concern now is if they add an axis 2 webservice call in the future they may face this problem again.

  • JDeveloper 11 g - JaxRPC issue of web service

    Hello

    I am developing a web service using JDeveloper 11 g v11.1.1.2.0 on windows. Here are the steps I followed:
    < li > created a new generic Application
    < li > created a web service project
    < li > created a simple WSDL
    < li > validated the WSDL
    < li > click New
    < li > Selected web Services categories.
    < li > "Java Web Service from WSDL" Selected among the elements.
    < li > Selected ' J2EE 1.4 JAX - RPC supported by 10.3 WLS
    < li > select the WSDL document, I created
    < li > provided a package for auto-generated classes and application name
    < li > does not change the default values for the checkboxes in this window.
    < li > didn't select all policies or define managers
    < li > click Finish

    Code added to the implementation of the class that is generated.
    Started the WebLogic Server integrated - > click Run-> "Start Server Instance (IntegratedWebLogicServer).
    A ran the implementation class

    The service seems to be successfully deployed
    < tt > [Demo Application deployed Server Instance IntegratedWebLogicServer] < /tt >
    Target URL - http://localhost:7101 / demo-SampleRPC-context-root/PhoneNumberPort < /tt >

    I've accessed the URL of the Mozilla browser and I try to test the two operations that I have in the WSDL file and I get the following error:
    Unable to get the name of the incoming query operation

    Here's the generated query:
    < tt >
    < env:Envelope = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:env >
    < env:Header / >
    < env:Body >
    < Phone > 1235551212 < / phone >
    < / env:Body >
    < / env:Envelope >
    < /tt >

    The response from the service:
    < tt >
    < env:Envelope = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:env >
    < env:Header / >
    < env:Body >
    < env:Fault xmlns:SOAP - ENV = "http://schemas.xmlsoap.org/soap/envelope/" >
    < faultcode > SOAP - ENV:Client < / faultcode >
    < faultstring > cannot get the name of the incoming query operation < / faultstring >
    < / env:Fault >
    < / env:Body >
    < / env:Envelope >
    < /tt >

    I get the same error when I create a client using the following ant script:
    < tt >
    < name target 'customer' = >
    < clientgen wsdl="http://${wls.hostname}:${wls.port}/Demo-SampleRPC-context-root/PhoneNumberPort? WSDL.
    DESTDIR = "${clientclass-dir}".
    PackageName = "Oracle.communications.Platform.demo.WebServices.client"
    Type = "JAXRPC" >
    < / clientgen >
    < javac srcdir destdir = "${clientclass-dir}" = "${clientclass-dir}" includes = "" * / *.java "classpathref ="taskdef.path"/ >"
    < javac srcdir = 'src' destdir = includes="oracle/communications/platform/demo/webservices/client/**/*.java"/ "${clientclass-dir}" >
    < / target >
    < /tt >

    Please let me know what I need to do to make this work.

    Thank you
    Sandrine

    There still seems to be something wrong with the WSDL, and I made a mistake on the direction, you can remove entries from soapAction.

    To fix the following steps:

    (1) create new JDev app + generic project
    (2) create WSDL via New Gallery (Web Services-> Document WSDL option) under the directory public_html/WEB-INF/wsdl + copy the following code:



    container = "http://www.w3.org/2001/XMLSchema" xmlns:soap = "http://schemas.xmlsoap.org/wsdl/soap/".
    xmlns:MIME = "http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12 = "http://schemas.xmlsoap.org/wsdl/soap12/" >

























    .. .note I deliberately cut the services and link nodes.

    (3) save your changes, and then in the WSDL Editor, down down select the Design tab.
    (4) in the designer, you will see the section completed port Types (and Messages If you develop the it), but not the section links and Services.
    (5) slide the port in the links section type - displays the dialog box create a binding. For CPP you ask SOAP 1.1 and Message encoding set to 1, the PRC entries, click Ok.

    .. .note here you see an option of JMS. I'm not experienced with JMS, but maybe it's what you want otherwise. However can advise first get your CPP example work can go to the option of JMS.

    .. .second note, if you switch to source code view, you will see the entries of linking operation have a soapAction by values that are valid entry. That's what was causing your original error.

    (6) now drag the Service binding and create the default and press ok.
    (7) record everything, go back to your browser app and do a right click on the wsdl file, select Create Web Service - associated Assistant displayed
    (8) step 2 of 7 in the selected Wizard option JAX - RPC, then selected finish
    (9) right click JaxRPCService then Test Web Service
    (10) wait for app to deploy (successfully), and then in the Http parser, test your web service.

    With respect to the JMS, as mentioned above, I'm afraid I can't comment as I have no experience with it. There is a Service Web WLS OTN forum that can provide more assistance:

    WebLogic Server - Web Services

    CM.

Maybe you are looking for

  • Old iCloud on invalid iPhone5S ID, how to replace it with my new ID

    I changed everything on my iPhone 5 to new ID, with the exception of iCloud. How to do that when the old ID is not valid? Tried to reset the phone and the content, but he asks the old invalid ID and not the new code. Help, please.

  • laptop HP 2000: I have a laptop of hp 2000 and the power on password I can't not in it

    Power on password want to leave me

  • Happauge TV

    Hiya, Can someone help me, please In June 2013, I bought a HP Pavilion P6 2475EA (Windows8), During the Christmas holidays, I decided to mount a TV antenna, only to find that the Hauppauge TV did not work - I have downloaded the update, but still not

  • Black list

    Hello I see no possibility to take the phone number on blacklist. How to proceed in 5.1.1 on xperia z3c? concerning

  • screen saver goes too fast

    Vista Home premium 32-bit I use my photos in the screensaver and I fixed it to slow, but it's still too fast.Anyone know how I can slow down as you would in win xp