Professional Web Applications Themes

Webservice problems - this should be easy - Coldfusion - Advanced Techniques

I am having some real trouble with webservices on MX7. From recent posts, it looks like other users are having similar problems. I am trying to create simple remote functions that accept 0 to 3 arguments, and return complex types. One of the errors I have been getting is Could not perform web service invocation "getMyFunction". error detail is: Here is the fault returned when invoking the web service operation:<br> <pre>AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: org.xml.sax.SAXPException: Premature end of file. faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXPException: Premature end of file. at... I have also been getting the error: Web service operation "doReturn" ...

Sponsored Links
  1. #1

    Default Webservice problems - this should be easy

    I am having some real trouble with webservices on MX7. From recent posts, it
    looks like other users are having similar problems.

    I am trying to create simple remote functions that accept 0 to 3 arguments,
    and return complex types.

    One of the errors I have been getting is

    Could not perform web service invocation "getMyFunction".

    error detail is:
    Here is the fault returned when invoking the web service operation:<br>
    <pre>AxisFault faultCode:
    {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode:
    faultString: org.xml.sax.SAXPException: Premature end of file. faultActor:
    faultNode: faultDetail:
    {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXPException:
    Premature end of file. at...

    I have also been getting the error:
    Web service operation "doReturn" with parameters
    {acct={x1},year={2005},id={x2},} could not be found.

    I have been staring at this for a while, and this operation does exist, and
    with the proper arguments. I have some simple examples that work, but others
    that are slightly more complicated continue to fail.

    Does anyone (mm?) have suggestions for these errors.

    J


    Sponsored Links
    Eat001 Guest

  2. #2

    Default Re: Webservice problems - this should be easy

    You can't define a single function with varargs as each argument is required in
    coldfusion. You will need to define a different method for each argument
    combination. Also, the stubs can get messed up when you change the interfaces
    for the service, so you might have to delete the service and try it again.

    mrampson Guest

  3. #3

    Default Re: Webservice problems - this should be easy

    A work around would be to set the 'required' attribute of your cfargument tag to 'no' and use isDefined to check if it was passed in.
    BSterner Guest

Similar Threads

  1. Problems connecting to a Webservice
    By Purvez in forum Macromedia Flash Data Integration
    Replies: 1
    Last Post: December 7th, 03:11 PM
  2. Problems invoking a NuSOAP WebService
    By huhgawz in forum Macromedia Flex General Discussion
    Replies: 3
    Last Post: September 12th, 03:25 PM
  3. Webservice publishing problems
    By FullSail in forum Coldfusion - Advanced Techniques
    Replies: 5
    Last Post: August 16th, 12:24 PM
  4. Having problems using WebService
    By Mark Parter in forum ASP.NET Web Services
    Replies: 0
    Last Post: July 13th, 10:44 AM
  5. Color problems - EASY HELP
    By Susan_Bonn@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 1
    Last Post: April 6th, 05:54 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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