Error invoking web service:ServiceStubDiscoveryException

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

  1. #1

    Default Error invoking web service:ServiceStubDiscoveryException

    I'm trying to use CFINVOKE to invoke a web service with this code:

    <cfset serviceURL =
    "https://swww.agencyworks.com/wsdls/highland/production/StatusSessionService.wsd
    l">
    <cffile action="read" file="#ExpandPath('SampleAppSearch.xml')#"
    variable="xmlDoc">
    <cfinvoke webservice="#serviceURL#"
    method="TXLifeOperation"
    returnvariable="result">
    <cfinvokeargument name="TXLifeArg" value="#xmlDoc#">
    </cfinvoke>

    When I do this, I get the following error:
    []
    coldfusion.xml.rpc.XmlRpcServiceImpl$ServiceStubDi scoveryException: Could not
    locate an API in the generated service class that returned the right interface
    for web service invocation.


    The error occurred in
    C:\employee_webreports_2_0\webroot\emwebreports\_t est\aw_test2.cfm: line 11

    9 : method="TXLifeOperation"
    10 : returnvariable="result">
    11 : <cfinvokeargument name="TXLifeArg" value="#xmlDoc#">
    12 : </cfinvoke>
    13 :

    I don't have any idea what that error message is complaining about. Can anyone
    help?

    Here is a link to the wdsl:

    [url]https://swww.agencyworks.com/wsdls/highland/production/StatusSessionService.wsdl[/url]

    ClintMers Guest

  2. Similar Questions and Discussions

    1. Error Invoking Web Service
      Hopefully someone has seen this and has an answer. I am trying to invoke a web service which takes a string of XML as a parameter. I have attached...
    2. dynamically invoking web service methods, how?
      Is the only known way to do this is by using...
    3. Invoking Web Service without creating proxy
      I'm trying to invoke a web service programmatically withoutcreating a proxy (e.g. extending SoapHttpClientProtocol). (Theproblem is that at...
    4. Exception when invoking web service from asp .net form
      When creating the instance to invoke a web service method, I always get the exception shown at the bottom. The .dll file changes randomly, although...
    5. 404 error invoking web service
      Hi, I'm having a problem with a web service that I wrote. I first wrote & tested the web service on my local (XP) machine. I used visual studio to...
  3. #2

    Default Re: Error invoking web service:ServiceStubDiscoveryException

    Ok, after digging around online I figured out this was due to there being two
    service descriptions in that wsdl. I saved the wsdl locally and clipped the
    non-soap service and pointed my CFINVOKE at the local copy and it worked.

    Thank God for [url]http://www.codenotes.com/cnp/baseAction.aspx?cnp=CG000003[/url] which
    covered consuming MapPoint web services with CFMX. Although I had no use for
    the specific discussion of writing Java classes to use the MapPoint service,
    they explained the issue with CFMX not being able to specify which service in a
    multi-service wsdl to use. They also explain the issue with multi-port
    services, although it looks like CFMX7 fixes that with an additional CFINVOKE
    argument.

    Anyway, thought I would leave my posting here so if anybody has a similar
    struggle they might find this and be able to use the info.

    ClintMers 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