Creating a Document-Literal Web Service

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

  1. #1

    Default 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 really
    even at that point yet.

    I want to know what his options are for using well-specified Schema types for
    the message payloads. He's actually got some COBOL records and auto-generated
    Schemas from those, and I finally got a successful include of those Schemas
    into an enclosing Schema, which is in turn included in a hand-coded WSDL file.
    I had hoped he could use that WSDL file to generate a stub of his CF service,
    and fill in the logic from there.

    This is the Web Services process I've grown accustomed to with other
    environments, but he seemed confused by my description in these terms. So I've
    downloaded the CF MX7 and DreamWeaver trials/developer editions, and now I'm
    confused too. This process doesn't seem to be at all supported in CF, and I
    can't find anything but the most rudimentary documentation of Doc-Lit Web
    Services at all. (Plus, DW doesn't seem to recognize the latest cfcomponent
    attributes that were added for Doc-Lit support.)

    First, can I even do what I'm asking? Second, if not the full process, is
    there some way my customer can define his CF service to use Schema types from
    these external Schema files? Also, what he's doing with the message payload is
    actually passing it in its entirety, as an XML document, to this COBOL program
    that has it's own parsing, so he doesn't want CF to pull out the individual
    fields. The ultimate goal is for us to have a WSDL/Schema that he can deploy
    from and that I can build Java stubs for. A nice feature would be for CF to
    also validate the incoming messages against that WSDL/Schema, but his COBOL
    will validate the Schema, so that's not absolutely required.

    Help, please!

    BTW, Tom, I recognize your name from the Axis groups, I believe as an Axis
    developer, no?

    DougIBM 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. 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...
    3. 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...
    4. 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...
    5. What's wrong with rpc-literal? Why use doc-literal?
      > reference: http://www-106.ibm.com/developerworks/webservices/library/ws-whichwsdl This post is part of Issue 8's answer To say it as...
  3. #2

    Default Re: Creating a Document-Literal Web Service

    Bump
    DougIBM Guest

  4. #3

    Default Re: Creating a Document-Literal Web Service

    Hi Doug,

    I can understand why you are confused.

    CF tried to make publishing a web server very simple for the CFML developer.
    Basically you can create a "ColdFusion Component" (CFC) which contains
    methods that you publish as operations in a web service. This is very
    similar to publishing an existing Java class with public functions, as many
    people do in Axis. In fact, CF translates the CFC code in to a Java
    skeleton, which is what the Axis engine in CFMX actually 'publishes' as the
    web service and uses to generate WSDL. This hides the complexity of creating
    WSDL and Schema, marshaling and unmarshaling arguments, and the other
    'stuff' involving XML.

    It sounds like what you would like is a simple CFML page that accepts the
    raw XML as a POST and then passes it along to something else. You could then
    hand craft a WSDL and publish that as a static page. This would not leverage
    the Web Services facility of CFMX at all, but it doesn't sound like you need
    the 'magic', you just want an some XML.

    There is no "WSDL2CFML" functionality - specifically for generating a
    service side CFC for a particular WSDL.

    Yes, I am a developer of Apache Axis too.

    --
    Tom Jordahl
    Macromedia Server Development


    Tom Jordahl 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