using ASP.NET WEB SERVICE in ColdFusion

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default using ASP.NET WEB SERVICE in ColdFusion

    html>
    <body>
    <cfinvoke
    webservice="http://10.16.16.69/Webservice9/service1.asmx?wsd"
    method="AccountCreation"
    seqID="27"
    returntype="">
    I tried other method also still same issues
    </cfinvoke>
    <cfinvokeargument name="seqID" value="2"/> returnvariable=""------>
    <!--<cfoutput>testing</cfoutput>-->
    </body>
    </html>

    shantan Guest

  2. Similar Questions and Discussions

    1. Coldfusion Server Service will not start
      I am having trouble getting Cold Fusion Server's service to start. I get a lot of these errors under the server.log: ...
    2. Coldfusion Service restarting almost twice a day
      Hi, i have the following configuration: 1 Intel based server Server with 4 CPUs 2,2 4GB Memory Windows 2000 SP4, hotfixes & security patches...
    3. Need Help In CONSUMING ASP.NET WEB SERVICE FROM COLDFUSION
      Please help me to How to CALL from Cold fusion to ASP WEB SERVICE which developed in .NET Environment. I have developed a ASP WEB SERVICE in...
    4. Calling ASP.NET WEB SERVICE FROM COLDFUSION
      I used simply calling ASP.NET WEB SERVICE FROM COLDFUSION. I a describing the way I called. <html> <body> <!---cfobject...
    5. Web service for ColdFusion MX consumption
      I need to create some services for an application that needs to be called from a ColdFusion MX software. What is the best/easiest way to return a...
  3. #2

    Default Re: using ASP.NET WEB SERVICE in ColdFusion

    What is the error? What does the WSDL look like?
    The URL should probably have "?wsdl" on the end, not "?wsd".

    --
    Tom Jordahl
    Macromedia Server Development


    Tom Jordahl Guest

  4. #3

    Default Re: using ASP.NET WEB SERVICE in ColdFusion

    I checked I used only wsd on end of link.

    I get following error!

    Could not generate stub objects for web service invocation.
    Name: [url]http://10.16.16.69/Webservice9/service1.asmx?wsd[/url]. WSDL:
    [url]http://10.16.16.69/Webservice9/service1.asmx?wsd[/url]. org.xml.sax.SAXException:
    Fatal Error: URI=null Line=63: Expected "

    " to terminate element starting on line 61. 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 C:\Inetpub\wwwroot\supporthome\OSSAcct\Muralifinal .cfm:
    line 9

    7 : method="AccountCreation"
    8 : seqID="27"
    9 : returntype="">
    10 : </cfinvoke>
    11 : <!---<cfinvokeargument name="RequestID" value="2"/>
    returnvariable=""------>



    shantan Guest

  5. #4

    Default Re: using ASP.NET WEB SERVICE in ColdFusion

    I get following errors after changng to wsdl. Please reply

    Web service operation "AccountCreation" with parameters {seqID={27},} could
    not be found.


    The error occurred in C:\Inetpub\wwwroot\supporthome\OSSAcct\Murali2.cfm : line
    10

    8 : method="AccountCreation"
    9 : returnvariable="">
    10 : <cfinvokeargument name="seqID" value="27">
    11 : </cfinvoke>
    12 : <!--<cfoutput>testing</cfoutput>-->




    shantan Guest

  6. #5

    Default Re: using ASP.NET WEB SERVICE in ColdFusion

    I get strange error

    Could not perform web service invocation "AccountCreation" because AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server faultSubcode:
    faultString: Server was unable to process request. --> Object reference not set
    to an instance of an object. faultActor: faultNode: faultDetail:
    {http://xml.apache.org/axis/}stackTrace: AxisFault faultCode:
    {http://schemas.xmlsoap.org/soap/envelope/}Server faultSubcode: faultString:
    Server was unable to process request. --&amp;gt; Object reference not set to an
    instance of an object. faultActor: faultNode: faultDetail: Server was unable to
    process request. --> Object reference not set to an instance of an object. at
    org.apache.axis.message.SOAPFaultBuilder.createFau lt(SOAPFaultBuilder.java:260)
    at
    org.apache.axis.message.SOAPFaultBuilder.endElemen t(SOAPFaultBuilder.java:169)
    at
    org.apache.axis.encoding.DeserializationContextImp l.endElement(DeserializationCo
    ntextImpl.java:1015) at
    org.apache.crimson.parser.Parser2.maybeElement(Par ser2.java:1675) at
    org.apache.crimson.parser....

    shantan Guest

  7. #6

    Default Re: using ASP.NET WEB SERVICE in ColdFusion

    This is an error being returned from your server.

    --
    Tom Jordahl
    Macromedia Server Development


    Tom Jordahl Guest

  8. #7

    Default Re: using ASP.NET WEB SERVICE in ColdFusion

    And what does that mean?
    AnXiao Guest

  9. #8

    Default Re: using ASP.NET WEB SERVICE in ColdFusion

    I had same error.
    It was caused by Application.cfm

    I move my cfc on a Subfolder with an empty Application.cfm and all works good

    Originally posted by: shantan
    I get strange error

    Could not perform web service invocation "AccountCreation" because AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server faultSubcode:
    faultString: Server was unable to process request. --&amp;gt; Object reference
    not set to an instance of an object. faultActor: faultNode: faultDetail: Server
    was unable to process request. --> Object reference not set to an instance of
    an object. at
    org.apache.axis.message.SOAPFaultBuilder.createFau lt(SOAPFaultBuilder.java:260)
    at
    org.apache.axis.message.SOAPFaultBuilder.endElemen t(SOAPFaultBuilder.java:169)
    at
    org.apache.axis.encoding.DeserializationContextImp l.endElement(DeserializationCo
    ntextImpl.java:1015) at
    org.apache.crimson.parser.Parser2.maybeElement(Par ser2.java:1675) at
    org.apache.crimson.parser....



    merlinox Guest

  10. #9

    Default Re: using ASP.NET WEB SERVICE in ColdFusion

    Did anyone ever figure out what this error is? I get the same error and have not been able to figure out why.
    Thanks
    MCox
    mlcox Guest

  11. #10

    Default Re: using ASP.NET WEB SERVICE in ColdFusion

    in my case it was a problem with the soap request being sent to the server we used the get soaprequest and getsoapresponse functions in CFMX7 to solve the issue
    AnXiao Guest

  12. #11

    Default Re: using ASP.NET WEB SERVICE in ColdFusion

    There could be two problems:
    1. You did not add the webservice to the administrator of coldfusion i.e in the coldfusion server u need to add the url?WDSL, so that your cfinvoke recoginizes it.
    2. Your sever ColdFusion server uses Axis 1 and the SOAP is using Axis 2, in this case u either need to change ur SOAP webserice (.net or whatever to Axsis 1).


    Now comes the solution part:

    1. First go to your coldusion server add the webservice url (not the method url) in url?WSDL format
    try to use CFinvoke, if it works bingo. If it does not (u might see an error while adding the webservice in the server itself, in that case please see the second one)
    2. Now, now, now u cannot do it the coldfusion way, i.e the coldfusion is axis 1 and u need axiz 2, change the .Net or SOAP webservice to axis 1 and the follow step 1
    3. Well in some cases that is not possible, u cannot change the webservice to axis 1 (sometimes its not in your hand u see, it could be controlled by someone else), in THIS case write a script and in that script invoke a java webserice call, this will interact with ur webservice (all u need is a JVM) and try to run this script as per ur convinence say once in every 5 mins or so.

    Hope this helps
    Unregistered Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139