cfinvoke calling web service

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default cfinvoke calling web service

    I'm having trouble consuming a web service with cfinvoke. The service is
    called fetchUserInfo. Here is what I'm trying to use: <cfinvoke
    webservice='http://myaddress.com/chwlogin/UASWebService?WSDL'
    method='fetchUserInfo' loginID='ACCOUNTNAME1' returnvariable='myVar'> It's
    failing on the returnvariable line with the error: 'Invalid web service
    parameters supplied. Missing value for uASUserInfoRequest.' I know I have to
    somehow reference uASUserInfoRequest, but I'm not sure how. Suggestions? The
    group that created the service provided this example SOAP Input Message:
    <!--REQUEST.................--> <env:Envelope
    xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'
    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
    xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/'
    xmlns:xsd='http://www.w3.org/2001/XMLSchema'> <env:Body
    env:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
    <m:fetchUserInfo xmlns:m='http://myaddress.com/chwlogin'>
    <uASUserInfoRequest xmlns:n1='java:com.chw.login.dto'
    xsi:type='n1:UASUserInfoRequest'> <loginID
    xsi:type='xsd:string'>ACCOUNTNAME1</loginID> </uASUserInfoRequest>
    </m:fetchUserInfo> </env:Body> </env:Envelope>

    Katosoft Guest

  2. Similar Questions and Discussions

    1. Calling an ASP.NET web service from ASP
      Hello, When I call an asp.net web service that returns a string from an asp page, it works fine, but when I call an asp.net web service that...
    2. Who is calling my WEB SERVICE ?
      hi all I have a few web services, I want to find out when a particular web service is called........ is it possible in my web service to find the...
    3. Calling a web service from ASP
      We are moving some current VB6 DLL functionality to a web service but still need to call it from clasic ASP. There is some debate about weather to...
    4. Calling an Asynch web service within a web service.
      I have read two different articles regarding optimizing thread pool utilization by calling asynchrounous web methods and then calling an...
    5. C++.NET calling VB.NET web service
      Hello all, I'm a bit new to this, so I'm not sure if I'm going to sound stupid, but my very simple web service is trying to return a simple...
  3. #2

    Default Re: cfinvoke calling web service

    I got it: <cfset myuASUserInfoRequest = StructNew()> <cfset a =
    StructInsert(myuASUserInfoRequest, 'loginID', 'UGAN001', 1)> <CFXML
    variable='xmlVarName' caseSensitive='no'> <MyDoc></MyDoc> </cfxml>
    <cfinvoke webservice='http://myaddress.com/chwlogin/UASWebService?WSDL'
    method='fetchUserInfo' uASUserInfoRequest=#myuASUserInfoRequest#
    returnvariable=xmlVarName> </cfinvoke>

    Katosoft 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