Ask a Question related to Coldfusion Component Development, Design and Development.

  1. #1

    Default Re: LDAP webservice

    Minty,
    Good question. It should be a query type, in fact the code says it is...

    Can you post the exact stack trace the comes with the "not a query" error?
    --
    Tom Jordahl
    Macromedia


    Tom Jordahl Guest

  2. Similar Questions and Discussions

    1. retrieve LDAP info within webservice
      Hi, Using wse2.0 a user logs on to my application. The webservice runs within the domain, the user does not (not allways). So I use the...
    2. Webservice IsInRole and LDAP to AD
      Can someone explain to me why IsInRole will work, but using DirectorySearcher will not? The code is running in a business object behind a...
    3. Webservice calling a webservice.....Error
      Hi Ihave a strange problem .....or?? On one machine 1 i have a webservice A calling an other webservice B on a other machine 2 . the B service are...
    4. SSH and LDAP
      Has anyone implemented SSH and LDAP together?
    5. LDAP on AIX 5.2
      theycallmetim wrote: you might have a look at www.redbooks.ibm.com for "LDAP Implementation Coockbook SG24-5110-00" or "Understanding LDAP...
  3. #2

    Default Re: LDAP webservice

    Tom, Sure, error message with trace is below: Could not perform web service
    invocation 'qryWS'. Here is the fault returned when invoking the web service
    operation: AxisFault faultCode:
    {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode:
    faultString: coldfusion.xml.rpc.CFCInvocationException:
    [coldfusion.runtime.UDFMethod$InvalidReturnTypeExce ption : The value returned
    from function qryWS() is not of type query.] faultActor: faultNode:
    faultDetail:
    {http://xml.apache.org/axis/}stackTrace:coldfusion.xml.rpc.CFCInvocationExcept i
    on: [coldfusion.runtime.UDFMethod$InvalidReturnTypeExce ption : The value
    returned from function qryWS() is not of type query.] at
    coldfusion.xml.rpc.CFComponentSkeleton.__createCFC InvocationException(CFComponen
    tSkeleton.java:608) at
    coldfusion.xml.rpc.CFComponentSkeleton.__invoke(CF ComponentSkeleton.java:554)
    at cfmx.wsAD.Wtest.qryWS(D:\Projects\PortalApplicatio n\cfmx\wsAD\Wtest.cfc)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at
    sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source) at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source) at
    java.lang.reflect.Met...

    MintyDynk Guest

  4. #3

    Default Re: LDAP webservice

    Not the trace I was looking for...

    Can you use QueryNew and copy the LDAP query info it to that a return it?
    That is lame but it appears that the UDF mechansim doesn't think the query
    from cfldap is really a query.

    How about if you write this UDF without the web service stuff and try to
    invoke it as just a function - does that work?
    --
    Tom Jordahl


    Tom Jordahl Guest

  5. #4

    Default Re: LDAP webservice

    Yes, I promise to actually _read_ everything before responding from now on,
    sorry about that. Stack trace follows. I haven't tried it as a UDF, but I'll
    try that and the queryNew() approach today and tomorrow between meetings.
    coldfusion.xml.rpc.ServiceProxy$ServiceInvocationE xception: Could not perform
    web service invocation 'qryWS'. at
    coldfusion.xml.rpc.ServiceProxy.invokeImpl(Service Proxy.java:230) at
    coldfusion.xml.rpc.ServiceProxy.invoke(ServiceProx y.java:143) at
    coldfusion.runtime.CfJspPage._invoke(CfJspPage.jav a:1587) at
    coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTa g.java:388) at
    cfadConsume2ecfm1871531004.runPage(D:\Projects\Por talApplication\cfmx\wsAD\adCon
    sume.cfm:13) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java :152) at
    coldfusion.tagext.lang.IncludeTag.doStartTag(Inclu deTag.java:343) at
    coldfusion.filter.CfincludeFilter.invoke(Cfinclude Filter.java:65) at
    coldfusion.filter.ApplicationFilter.invoke(Applica tionFilter.java:210) at
    coldfusion.filter.PathFilter.invoke(PathFilter.jav a:86) at
    coldfusion.filter.LicenseFilter.invoke(LicenseFilt er.java:27) at
    coldfusion.filter.ExceptionFilter.invoke(Exception Filter.java:50) at
    coldfusion.filter.BrowserDebugFilter.invoke(Browse rDebugFilter.java:52) at
    coldfusion.filter.ClientScopePersistenceFilter.inv oke(ClientScopePersistenceFilt
    er.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilt er.java:38)
    at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilt er.java:38) at
    coldfusion.filter.DatasourceFilter.invoke(Datasour ceFilter.java:22) at
    coldfusion.CfmServlet.service(CfmServlet.java:105) at
    coldfusion.bootstrap.BootstrapServlet.service(Boot strapServlet.java:78) at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker. java:91) at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvok erChain.java:42) at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequ estDispatcher.java:257) at
    jrun.servlet.ServletEngineService.dispatch(Servlet EngineService.java:527) at
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable( JRunProxyService.java:204)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRu nnable(ThreadPool.java:457)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java :66)

    MintyDynk Guest

  6. #5

    Default Re: LDAP webservice

    Minty,

    No, no. Not your fault I was just hoping to get a smoking gun with the
    stack trace. I didn't mean that you didn't provide me with the right thing.
    Sorry about that, I was reading *all* of the forums last night and I was
    getting a little punchy. :-)

    Anyway, I think I verified that the web service code should treat the LDAP
    result set as a query, so something else fishy is going on here. I will be
    traveling for the next few days, so I may not be able to respond quickly but
    I will try to get back to this Monday at the office. Any info you can post
    (or even a reproducable case) would be great.

    --
    Tom Jordahl
    Macromedia


    Tom Jordahl Guest

  7. #6

    Default Re: LDAP webservice

    Tom, Hello. I thought I had replied last week, but I don't see it in the
    forum. Anyway, the solution was setting the return value to the return value of
    the CFLDAP tag. It was a stupid coding error on my part. Thanks for your help.

    MintyDynk 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