Coldfusion 8 webservices

Hello,
I recently upgraded from Coldfusion 6.1 to 8 on my production and development server. Ever since the upgrade, my webservice stopped working on my production server. I tried manually registering the one webservice I had directictly via the cf administration, and that fails. I would like to avoid having to re-upgrade; is there some kind of change to a configuration file that I can make?
I also upgraded the coldfusion developer version on my desktop that I use for development, and that works. That leads me to believe something didn't get upgraded on my production server. Any ideas????????

Adam,
Thank you for replying... I went ahead and tried recreating the webservice. I recreated the "cfc", gave it a new name, put it in a new folder, and uploaded to my production server, and that worked! Coldfusion went ahead and auotmatically registered the webservice too, as it should.
In case someone else runs in to this problem, I am posting the error that I received, hopefully it will help...
The following information is meant for the website developer for debugging purposes.
Error Occurred While Processing Request
coldfusion.jsp.CompilationFailedException: Errors reported by Java compiler: Found 1 system error: *** Semantic Error: The input file "C:/ColdFusion8/stubs/WS-635554700/appcfcs/status.java" was not found. .
Thanks again Adam,
David

Similar Messages

  • ColdFusion Developer version and web services

    Hi,
    Does anyone know if there is a known issue about Web Services
    not running on
    ColdFusion developer version?
    I have been testing the most simple web services on 3
    different live servers
    and 3 different localhost servers with the same files and got
    successful
    results on all the live servers, but the same errors on all
    the local
    servers running on ColdFusion latest developer version. All 6
    servers are
    running on IIS either on Windows XP or 2000. Below is the
    error I get when
    I tested it locally:
    Could not generate stub objects for web service invocation.
    Name:
    http://tutorial/ColdFusion/template/webservices/helloworld/helloworld.cfc?wsdl.
    WSDL:
    http://tutorial/ColdFusion/template/webservices/helloworld/helloworld.cfc?wsdl.
    java.net.UnknownHostException: tutorial: tutorial It is
    recommended that you
    use a web browser to retrieve and examine the requested WSDL
    document for
    correctness. If the requested WSDL document can't be
    retrieved or it is
    dynamically generated, it is likely that the target web
    service has
    programming errors. The error occurred in
    D:\tutorial\ColdFusion\template\webservices\helloworld\helloworld.cfm:
    line
    6
    4 : method="getMessage"
    5 : returnvariable="aString">
    6 : <cfinvokeargument name="name" value="Rob"/>
    7 : </cfinvoke>
    8 :
    Please let me know if you know anything about this.YC

    If your developer edition is on your own machine you might be
    having proxy server issues.
    Find out what your proxy server is and enter it using the
    proxyserver="" attribute in cfinvoke

  • ColdFusion failed security in invoking a WebSphere web service

    Hello,
    I tried to call a web service hosted in a IBM WebSphere
    server, but could not pass WebSphere's security framework. After
    some talking with the guys in the WebSphere side, I'm not sure
    whether this is possible in ColdFusion because they ask for a
    <wsse:UsernameToken> in the SOAP envelope header. We did some
    testing, and they confirmed that ColdFusion could talk to the web
    service, by could not pass security validation. Would someone help
    me here? Must it be done in Java?
    Here is my calling syntax in ColdFusion:
    <cfinvoke webservice="https://WebServiceURL?wsdl"
    method="myMethod" username="myUserName" password="myPassword"
    returnVariable="ReturnCode">
    <cfinvokeargument name="ParaName"
    value="ParameterValue">
    </cfinvoke>
    The web service is locked down, so the calling client must
    issue a SOAP message containing VALID security extensions:
    <soapenv:Envelope
    xmlns:soapenv="
    http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:ws="
    http://somedomain"
    xmlns:wsse="
    http://schemas.xmlsoap.org/ws/2002/07/secext">
    <soapenv:Header>
    <wsse:Security>
    <wsse:UsernameToken>
    <wsse:Username>myUserName</wsse:Username>
    <wsse:Password>myPassword</wsse:Password>
    </wsse:UsernameToken>
    </wsse:Security>
    </soapenv:Header>
    <soapenv:Body>
    ... REMOVED as this depends on your individual SOAP service
    </soapenv:Body>
    </soapenv:Envelope>
    The guys at WebSphere said that my ColdFusion SOAP call
    probably did not have the envelope security header. IIs there a way
    to capture the underlying actual SOAP call format? Here is the
    error msg:
    AxisFault
    faultCode: {
    http://schemas.xmlsoap.org/ws/2003/06/secext}FailedAuthentication
    faultSubcode:
    faultString: WSEC5075E: No security token found which
    satisfies any one of AuthMethods.
    faultActor:
    faultNode:
    faultDetail:
    http://xml.apache.org/axis/}stackTrace:WSEC5075E:
    No security token found which satisfies any one of AuthMethods.
    at
    org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
    at org.apache.axis
    Larry

    Sadly, byrning's reply ended with just "how to use CF with stupid WSSE security", which leads readers to wonder if he meant to share more. For instance, was that supposed to be a link to a blog entry?
    I did some digging, and I found an old google cache of another version of this forum, and it showed that he had included the following code, which somehow never made it into the message here:
    <cfset myUsername = "yourUsername" />
    <cfset myPassword = "yourPassword" />
    <cfset myDate = DateFormat(DateConvert("local2Utc", now()),
    "yyyy-mm-ddThh:mm:ssZ")>
    <cfset myNonce = createPIN(33)> <!--- this is just a random alpha numeric
    string 33 chars long - got the function at cflib.org --->
    <cfset myPasswordDigest = ToBase64(Hash(myNonce & myDate & myPassword ))>
    <cfscript>
            myObj = createObject("webservice", "http://urltoYourService?wsdl");
            headerElement = createObject("java",
    "org.apache.axis.message.SOAPHeaderElement");
            headerElement.init("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wss
    ecurity-secext-1.0.xsd", "wsse:Security");
            headerElement.addChildElement("wsse:UsernameToken");
            headerElement.getFirstChild().addChildElement("wsse:Username").setValue(myUsern
    ame);
            mypass = headerElement.getFirstChild().addChildElement("wsse:Password");
            mypass.setValue(myPasswordDigest);
            mypass.setAttribute("Type", "wsse:PasswordDigest");
            headerElement.getFirstChild().addChildElement("wsse:Nonce").setValue(
    ToBase64(Hash(myNonce, "SHA")) );
            myCreated = headerElement.getFirstChild().addChildElement("wsu:Created");
            myCreated.setValue(myDate);
            myCreated.setAttribute("xmlns:wsu",
    "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-ut....
    xsd");
            headerElement.setMustUnderstand(1);
            headerElement.setActor("");
            myObj.setHeader(headerElement);
            result = myObj.methodtoCall(param1="yadda", param2="yadda")
    </cfscript>    

  • CF8 Issue

    I'm trying to call a web service from CF8, running on Mac OS
    X 10.4.10 (with all updates).
    I'm getting this error on the cfinvoke line:
    coldfusion.jsp.JavaCompiler$UnknownCompiler: Unable to run
    the internal Java compiler: java.lang.NoClassDefFoundError:
    javax/tools/StandardJavaFileManager.
    This is using Java 5 that comes as part of OS X (again with
    all updates). Browsing to the WSDL for the CFC in question returns
    the expected wsdl. javax.tools.StandardJavaFileManager appears to
    be part of Java 6, not Java 5. I tried installing the Java 6
    pre-release for Tiger from last fall, doesn't seem to make a
    difference.
    Mark

    I'm answering this for myself, as no one else has. It appears
    that CF8 ships with the JDK 1.6 tools.jar file in cfusion/lib. The
    JDK1.5, which is current on a Mac, includes the 1.5 version of the
    tools.jar. The conflict causes the JVM to blow up. Removing the
    tools.jar on a mac should let the native tools.jar work. On a PC,
    if you're swapping between a 1.5 and 1.6 JVM, you'll need to
    replace the cfusion/lib/tools.jar with the correct version. Adobe
    needs to write an official technote on this.
    Information gleaned from:
    http://www.petefreitag.com/item/652.cfm
    http://coldfused.blogspot.com/2007/08/coldfusion-and-webservice-file-has.html
    http://rahulnarula.blogspot.com/2007/06/coldfusion-8-installation-tip.html

  • Cannot generate stub objects...access denied

    Has anyone come accross this?
    I am attempting to access a coldfusion 9 webservice that I created and am also consuming.  The pair works fine when both requesting page and the webservice are resident on my development server, but generates the following error when in production:
    Error Occurred While Processing Request
    Cannot generate stub objects for web service invocation.
    Name: http://casadiablo.homeip.net/WebServices/SimpleWebService.cfc?wsdl. WSDL: http://casadiablo.homeip.net/WebServices/SimpleWebService.cfc?wsdl. java.security.AccessControlException: access denied ("java.io.FilePermission" "C:/Program Files/Java/jdk1.7.0_04/jre/lib/wsdl.properties" "read") It is recommended that you use a web browser to retrieve and examine the requested WSDL document to ensure it is correct. If the requested WSDL document cannot be retrieved or is dynamically generated, it is likely that the target web service has programming errors.
    The error occurred in D:/home/casadiablo.net/wwwroot/indexCDNet.cfm: line 10
    Called from "java.io.FilePermission" "C: line -1
    Called from "java.io.FilePermission" "C: line -1
    Called from D:/home/casadiablo.net/wwwroot/indexCDNet.cfm: line 10
    Note: the wsdl renders just fine in a browser at the address I'm using so it's not a can't find it or location issue.  I'm no expert in reading wsdl files, though, so it could render some clues if I knew what to look for.
    For context:
    When I go from my development environment to production, the consuming page is on casadiablo.net/indexCDnet.cfm (hosted by Hostek).  The webservice is on a PC in my home that has a dedicated IP address. 
    I've searched all over for an "access denied" java error (related to CF web services) discussion and have found nothing.  Any ideas as to how to troubleshoot where in this chain a java.io.FilePermission error might be triggered would be greatly appreciated!!
    Message was edited by: CFsolar
    Case solved. It turns out that this is totally a Hostek issue.  After exhausting all other options (including uninstalling and reinstalling java), it was a setting on the security sandbox that caused the error.  Well at least this will be out there for anyone else working with webservices and Hostek!

    Did anyone ever resolve this issue as I seem to be having the exact same issue???

  • Trying to call a webservice generated by coldfusion

    Hi
    We are running SAP PI 7.11.
    We are trying, from SAP PI,  to call a webservice that is created by coldfusion - the target url is called
    http:/...../edb_service.cfc?wsdl via the SOAP adapter (RECEIVER)
    Our adapter/comm channel fails with a http error 500:
    "SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 500 Internal Server Error. Setting message to status failed."
    It appears that we are not getting any connection at all. When trying to call the webservice from XMLSPY it works fine? Are there any restriction to call a webservice created by coldfusion?
    How can I get any better logging of the call attempt, because I can not see anything out of the comm. channel eror message.
    Any help would be appreciated.
    Thx

    Hi
    the target url should be http:/...../edb_service.cfc
    also mention the correct action.
    you would not get the error.
    Regards
    Monika

  • Coldfusion webservice?

    I have two webservices with the same code but with different names
    <cffunction name="getUserNameFormField" access="remote" output="false" returntype="string" displayname="getUserNameFormField">
    <cfset var return = '<input name="userName" type="text" size="40" maxlength="40">'>
    <cfreturn return>
    </cffunction>
    <cffunction name="getUserNameFormFieldn" access="remote" output="false" returntype="string" displayname="getUserNameFormFieldn">
    <cfset var return = '<input name="userName" type="text" size="40" maxlength="40">'>
    <cfreturn return>
    </cffunction>
    But when I invoke the first one return a check box.
    For the second service displays an error as such? Can any one explain me a reason behind it?
    Her is the invocation code and the error
    <html>
    <body><cfcomponent>
    <cfinvoke 
    webservice="http://localhost:8080/CTiWebServicesAPI/console/library/BaseConsole.cfc?wsdl"
    method="getUserNameFormFieldn"  
    returnvariable="saleshistory">
    <!--- <cfinvokeargument name="requestedEvent" value="recipientForm"/>--->
    </cfinvoke>
    <cfoutput>  
    #saleshistory#</cfoutput></cfcomponent>
    </body>
    </html>
    The web site you are accessing has experienced an unexpected error.
    Please contact the website administrator.
    The following information is meant for the website developer for debugging purposes.
    Error Occurred While Processing Request
    Web service operation getUserNameFormFieldn with parameters {} cannot be found.
    The error occurred in C:\ColdFusion8\wwwroot\selfprojects\webservice3.cfm: line 6
    4 : <cfinvoke webservice="http://172.16.172.41:8080/CTiWebServicesAPI/console/library/BaseConsole.cfc?wsdl"
    5 :            method="getUserNameFormFieldn"
    6 :              returnvariable="saleshistory">
    7 :           <!---     <cfinvokeargument name="requestedEvent" value="recipientForm"/>--->
    8 : </cfinvoke>
    Resources:
    Check the ColdFusion documentation to verify that you are using the correct syntax.
    Search the Knowledge Base to find a solution to your problem.
    Browser 
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
    Remote Address 
    127.0.0.1
    Referrer 
    Date/Time 
    09-Apr-09 04:05 PM
    Stack Trace (click to expand)
    at cfwebservice32ecfm989209474.runPage(C:\ColdFusion8\wwwroot\selfprojects\webservice3.cfm:6 )
    coldfusion.xml.rpc.ServiceProxy$ServiceMethodNotFoundException: Web service operation getUserNameFormFieldn with parameters {} cannot be found.
         at coldfusion.xml.rpc.ServiceProxy.invoke(ServiceProxy.java:147)
         at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2222)
         at coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:417)
         at cfwebservice32ecfm989209474.runPage(C:\ColdFusion8\wwwroot\selfprojects\webservice3.cfm:6)
         at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
         at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)
         at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
         at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:279)
         at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
         at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
         at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
         at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
         at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
         at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
         at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
         at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
         at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
         at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
         at coldfusion.CfmServlet.service(CfmServlet.java:175)
         at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
         at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
         at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
         at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
         at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
         at jrun.servlet.FilterChain.service(FilterChain.java:101)
         at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
         at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
         at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
         at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
         at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
         at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
         at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
         at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
         at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

    There are two methods, but it is one web service, not two. The code you should have saved as the file BaseConsole.cfc is
    <cfcomponent>
    </cfcomponent>
    There is no need for HTML or component tags in the caller. The calling page, say, wsCaller.cfm, should be something like
    <cfinvoke
    webservice= "http://localhost:8080/CTiWebServicesAPI/console/library/BaseConsole.cfc?wsdl"
    method="getUserNameFormFieldn"
    returnvariable="saleshistory">
    </cfinvoke>
    <cfoutput>#saleshistory#</cfoutput>
    <cffunction name="getUserNameFormField" access="remote" output="false" returntype="string" displayname="getUserNameFormField">
    <cfset var return = '<input name="userName" type="text" size="40" maxlength="40">'>
    <cfreturn return>
    </cffunction>
    <cffunction name="getUserNameFormFieldn" access="remote" output="false" returntype="string" displayname="getUserNameFormFieldn">
    <cfset var return = '<input name="userName" type="text" size="40" maxlength="40">'>
    <cfreturn return>
    </cffunction>

  • Consumming java webservices in coldfusion

    could somebody show me how to consume this webservice from
    within coldfusion?
    http://www.ripedev.com/webservices/ZipCode.asmx?WSDL"
    right now I invoke it as follows:
    <cfinvoke
    webservice="
    http://www.ripedev.com/webservices/ZipCode.asmx?WSDL"
    method="ZipCodeToCityState" ZipCode="12210"
    returnvariable="returnedText" >
    </cfinvoke>
    <cfoutput>
    #arraylen(variables.returnedText)#
    </cfoutput>
    And this is what i get
    com.ripedev.xsd.ZipCodeResults_xsd.ArrayOfAnyType@aaa1d576 .
    This actually has no meaning to me.
    Thanks
    amos

    I'm just learning how to consume webservice stuff but this
    should help as I got a result. See my code snippet below.
    Basically I did some cfdumps to see what the objects look
    like. This is from an empirical view as I don't understand yet. The
    object comes back with methods. You then use those methods to get
    values. I chose to use the getAnyType method. I did this as I used
    another tool, soapscope from www.mindreef.com (30 day eval) which
    really simplifies how to call webservices. It's worth the cost.
    Basically I invoked the service via soapscope and looked at
    the returned xml.
    It looked like:
    <soap:Envelope
    xmlns:soap="
    http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="
    http://www.w3.org/2001/XMLSchema">
    <soap:Body>
    <ZipCodeToCityStateResponse xmlns="
    http://ripedev.com/xsd/ZipCodeResults.xsd">
    <ZipCodeToCityStateResult>
    <anyType xsi:type="xsd:string">Albany,
    NY</anyType>
    </ZipCodeToCityStateResult>
    </ZipCodeToCityStateResponse>
    </soap:Body>
    </soap:Envelope>
    Note that the result was in a value of anyType. Thus I picked
    getAnyType method
    I hope this helps ya but I'm still quite a newbie to this.
    This link help me understand a little more about webservice
    http://tutorial292.easycfm.com/
    Zip test WS Object
    object of com.ripedev.xsd.ZipCodeResults_xsd.ArrayOfAnyType
    Methods hashCode (returns int)
    equals (returns boolean)
    getSerializer (returns interface
    org.apache.axis.encoding.Serializer)
    getDeserializer (returns interface
    org.apache.axis.encoding.Deserializer)
    getTypeDesc (returns org.apache.axis.description.TypeDesc)
    getAnyType (returns java.lang.Object)
    getAnyType (returns [Ljava.lang.Object;)
    setAnyType (returns void)
    setAnyType (returns void)
    getClass (returns java.lang.Class)
    wait (returns void)
    wait (returns void)
    wait (returns void)
    notify (returns void)
    notifyAll (returns void)
    toString (returns java.lang.String)
    Breaking down the object
    array
    1 Albany, NY

  • Flex calling ColdFusion WebService

    We have a Flex application hitting ColdFusion web service and
    it works great.
    Now we need to employ security concerns before putting it in
    production so that only authorized users can interact with the web
    service. Do we have to pass credentials every time? Maybe this is
    more of a ColdFusion and web services question but considering Flex
    is so different I thought I would give this a try. Thanks.

    This is what i have
    public function getvalue(getvalueResultHandler:Function, getvalueFaultHandler:Function):void {
    // frame webservice request and invoke the service
    // create webservice object
    var service:WebService = new WebService();
    service.wsdl = URL + Common.WSDL_STRING;
    service.loadWSDL();
    var oper:Operation = service.getOperation(Common.operatn) as Operation;
    oper.resultFormat= Common.operationResultFormat;
    oper.addEventListener(ResultEvent.RESULT, getvalueResultHandler);
    oper.addEventListener(FaultEvent.FAULT, getvalueFaultHandler);
    // frame webservice request XML
    var xmlRequest:XML =
    <RetrievevalueRequest>
    <ClientID>{_helixGlobal.id}</ClientID>
    <WsdlVersion>{Common.wsdlVersion_2_0}</WsdlVersion>
    <ServiceType>{Common.serviceType}</ServiceType>
    <ApplicationID>{Common.applicationId}</ApplicationID>
    <RetrievevalueRequestItem>
    <ID>{_helixGlobal.inputparam}</ID>
    </RetrievevalueRequestItem>
    </RetrieveCvalueRequest>;
    oper.request = xmlRequest;
    service.endpointURI = Common.valueURL;
    oper.send();

  • Coldfusion webservice wsdl tag order

    Hi
    I've created a web service that interogates a database and
    spits out an xml document. It has a number of input parameters and
    just one output value (the xml document).
    When I test this using coldfusion everything works fine.
    However when my client tries to invoke the web service it says that
    the return value doesn't exist.
    I've looked at the wsdl files generated by coldfusion and
    there does seem to be a difference in the order of the message tags
    produced that I think must be causing the error.
    In one webservice he can view the order is: request,
    exception, response
    In the one that he can't access properly the order is:
    response, exception, request.
    Does anyone else know how to resolve this issue? Or am I
    looking in the wrong place?

    To change the order is necesary use PI module

  • Consume a webservice developed in other than coldfusion  in WS-Security mode

    1. What are the prerequisites (any software installation, configuration) to be considered ?
    Requirement : To consume a Webservice developed in other than coldfusion in WS-Secuirty mode .
    Environment used : Windows 2003, IIS 6, Coldfusion 8, SQl server 2005
    2. While trying to consume a public webservice through coldfusion , We received unable to read WSDL file and Unknown host exception error.Can you please advise. why we are receiving this error and solution ?

    Thanks Dan Bracuk, for your reply.
    What I could understand from Sivakarthikeyan post is that
    Point 1)
    It is mentioned that they are going to consume external webservices for which he would like to know whether any software/configuration is required to implement WS-Security (In IIS or coldfusion administrator)?
    Point 2)
    It could be a correct URL that he is using, from his description (2nd step) he gets a error message as "Unable to read WSDL file". If it of incorrect URL then he would have received file not found or other error message.
    Can you please or anyone clarify?
    Thanks,
    Satheesh

  • Consume SharePoint Webservice with Coldfusion

    Has anyone been able to consume a SharePoint web service with
    Coldfusion? Any examples, resources or tips? A basic example would
    be to pull in a list.
    Thanks
    Dwight

    My group is also having trouble with this. The problems seems
    to be related to CF not being able to use NTLM authentication.
    Thanks,
    Tom

  • Coldfusion Webservice with attachment

    Hi
    I would like to send file as a attachemnt in web service
    which is written in coldfusion .
    Please help me on how to write the Web service in coldfusion
    to send a attachemnt
    I have read we can do that using DIME , but not sure how to
    do that in CF
    Any help be great...

    Hi
    We can send attachment in SOAP reponse, please refer this
    link for more info
    http://www.w3.org/TR/soap12-af/

  • Coldfusion create instance of class from data element when cosuming a webservice

    I am calling the following wsdl via cfobject https://services-staging.labcorpsolutions.com/webservice/services/LabcorpOTS/wsdl/LabcorpO TS.wsdl
    I am attempting to call the following method registerDonor(java.lang.String, java.lang.String, com.labcorp.ots.ws.data.CreateRegistrationRequest) which references the CreateRegistrationRequest data element.
    I haven't been successful in creating an instance of the CreateRegistrationRequest class and setting values of its members, as well as the Phone class which is also a data element.
    Any assistance would be greatly appreciated in creating instances of methods located in the targetNamespace="http://data.ws.ots.labcorp.com" of the wsdl.
    Thanks

    Thanks for the explanation and example. At first, I didn't understand what you were getting at, but after reading "Using Top-Level Containers" and "How to Use Root Panes" java tutorials it made much more sense. Unfortunately, the books I've read up to this point, did not cover those topics at all. The books simply stated that the first step in creating a Swing gui was to extend the JFrame, or JApplet, or etc.
    Unfortunately, my original problem persists. I continue to get compile-time errors such as:
    TestUserInterface.java:5: cannot find symbol
    symbol: class UserInterface
    location: class projects.web.TestUserInterface
                          UserInterface ui = new UserInterface(); Anyone know why?
    Both the classes are in the same named packaged. Below is my code:
    package projects.web;
    import java.awt.*;
    import javax.swing.*;
    public class UserInterface extends JFrame{
         JPanel menuPanel = new JPanel();
         JPanel contentPanel = new JPanel();
         JPanel selectionPanel = new JPanel();
         JButton save = new JButton("Save");
         JButton addFiles = new JButton("Add");
         public UserInterface(){
         super("File Upload");
         setSize(500, 500);
         menuPanel.add(addFiles);
         selectionPanel.add(save);
         setLayout(new BorderLayout());
         add(menuPanel, BorderLayout.NORTH);
         add(contentPanel, BorderLayout.CENTER);
         add(selectionPanel, BorderLayout.SOUTH);
         } // end constructor
    } // end UserInterface class
    package projects.web;
    public class TestUserInterface{
         public static void main(String[] args){
              UserInterface ui = new UserInterface();
    } // end TestUserInterface class

  • ColdFusion Script not work with Httpservice

    At first I use PHP to generate xml output on page then use
    the data to my httpservice with resultformat e4x. Everything is
    fine. But now I want to use coldfusion script since I'm planning to
    use ColdFusion as my web server. I have this script located on my
    server and generate the data in XML file then the XML file is used
    in my web, loaded through httpservice.
    My PHP code was like this :
    <?php
    define( "DATABASE_SERVER", "localhost" );
    define( "DATABASE_USERNAME", "root" );
    define( "DATABASE_PASSWORD", "" );
    define( "DATABASE_NAME", "MyCinema" );
    $mysql = mysql_connect(DATABASE_SERVER, DATABASE_USERNAME,
    DATABASE_PASSWORD) or die(mysql_error());
    mysql_select_db( DATABASE_NAME );
    $Query = "SELECT * FROM film";
    $Result = mysql_query( $Query );
    $Return = "<movies>";
    while ( $film = mysql_fetch_object( $Result ) )
    $Return .= "<film><judul>".$film->JUDUL.
    "</judul><deskripsi>".$film->DESKRIPSI.
    "</deskripsi><genre>".$film->GENRE.
    "</genre><produser>".$film->PRODUSER.
    "</produser><produksi>".$film->PRODUKSI.
    "</produksi><homepage>".$film->HOMEPAGE.
    "</homepage><durasi>".$film->DURASI.
    "</durasi><url>".$film->URL."</url></film>";
    $Return .= "</movies>";
    mysql_free_result( $Result );
    print ($Return);
    ?>
    And now I try to get the same result using coldfusion script.
    At first I dont write the XML to file, I just cfoutput it just like
    I do with PHP just print result but it doesnt work out with my
    HTTPservice. Until I try to write it to XML file then coding my
    httpservice to read directly from that XML file. here is my
    coldfusion code.
    <cfcomponent>
    <cffunction name="a" returnType="Void" output="true"
    access="remote">
    <cfprocessingdirective suppresswhitespace="Yes">
    <cfquery name="GetFilm" datasource="myCinemaData">
    SELECT b.* FROM playing a, film b
    WHERE a.kode_film=b.kode_film AND a.start >
    <cfqueryPARAM value = "#DateFormat(Now())#"
    CFSQLType = "CF_SQL_STRING">
    </cfquery>
    <cfxml variable="userXML">
    <movies>
    <cfloop query="GetFilm">
    <cfoutput>
    <film>
    <judul>#GetFilm.JUDUL#</judul>
    <deskripsi>#GetFilm.DESKRIPSI#</deskripsi>
    <genre>#GetFilm.GENRE#</genre>
    <produser>#GetFilm.PRODUSER#</produser>
    <produksi>#GetFilm.PRODUKSI#</produksi>
    <homepage>#GetFilm.HOMEPAGE#</homepage>
    <durasi>#GetFilm.DURASI#</durasi>
    <url>#GetFilm.URL#</url>
    </film>
    </cfoutput>
    </cfloop>
    </movies>
    </cfxml>
    </cfprocessingdirective>
    <cffile action="write"
    file="#expandPath(".")#\userXML.xml" output="#userXML#">
    </cffunction>
    </cfcomponent>
    Because I need to create the XML files first I try to execute
    this coldfusion script first using webservice before I execute my
    Httpservice but the XML file creation is slower than the execution
    of my httpservice afterthat so it shows an error that my XML file
    isn't not available. What can i do? I've tried to show the output
    using cfoutput and run that script directly on my httpservice just
    like the way I use print result on PHP but it produce an
    error.

    ... I try to execute this coldfusion script first using
    webservice before I execute my Httpservice but the
    XML file creation is slower than the execution of
    my httpservice afterthat so it shows an error
    that my XML file isn't not available.
    Then it might help to apply a named lock to ensure that the
    Httpservice runs only after the web service call is complete. For
    example, apply an exclusive named lock on the code that calls the
    web service and a readonly lock of the same name to the Coldfusion
    code that interacts with the Httpservice.

Maybe you are looking for