Problem with consuming document/literal web services.

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

  1. #1

    Default Problem with consuming document/literal web services.

    I'm having problems consuming a document literal web service with <cfinvoke> in
    a CFM page. I'm receiving the following error.

    Could not generate stub objects for web service invocation.
    Name: [url]http://xxxxxxx[/url]. WSDL: [url]http://xxxxxxxxxxxxxx[/url].
    java.lang.NullPointerException 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.

    I retrieved the WSDL through the browser with out issue. Is there anything
    else I can do? I can easily consume RPC-encoded but I can't get data back from
    document-literal. Any help with consuming them instead of just publishing them
    would be great!

    Thank you

    JpShields Guest

  2. Similar Questions and Discussions

    1. RPC/Encoded to Document/Literal Conversion
      How do we convert an RPC/Encoded WSDL to a Document/Literal WSDL? Do any tools exist?
    2. HTTPS problem consuming a web services
      I am having a problem getting web services to make a wsdl HTTPS call using the following setup: ColdFusion server - MX Enterprise version...
    3. Document-literal style web services
      I created a simple web service that returns a query (Querybean). It works great! Now, I'm being told that I have to use an XML schema that was...
    4. Document-literal web services
      I created a simple web service that returns a query (Querybean). It works great! Now, I'm being told that I have to use an XML schema that was...
    5. Creating a Document-Literal Web Service
      I'm trying to help a customer set up a Document Literal service under his CF environment. I'll be calling from an Axis/Castor client, but I'm not...
  3. #2

    Default Re: Problem with consuming document/literal webservices.

    BUMP
    JpShields Guest

  4. #3

    Default Re: Problem with consuming document/literal webservices.

    Hey,

    Whenever I get this problem, it's because the reference to the wsdl file is
    wrong. When a web service is called the first time it generates stub objects,
    which consist of a directory and class files, etc, on the service host's web
    server. If CF can't find the service, it informs the requester that it
    couldn't generate the stub objects. It would be much more helpful if the error
    message read: 'couldn't find the web service specified in the invokation needed
    to generate the stub objects' or something.

    Just double check your URL and see if it is going to
    [url]http://www.mydomain.com/coolservice.cfc?wsdl[/url]
    Most people forget the ?wsdl



    shoalwater 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