Skip to main content
July 2, 2009
Question

soap question

  • July 2, 2009
  • 2 replies
  • 2038 views

hello,

          i am trying to create a program which access a soap webservice. but i don't have wsdl served by the server service. now i have to build the soap head/message etc and access. can some one give me an soap example...

i am trying to understand how soap is different then wsdl. i never worked with web service other than wsdl.

another questions is if have wsdl can i save that in a file and use to access a server for webservice which will not serve wsdl....

am i getting confused ??

    This topic has been closed for replies.

    2 replies

    Inspiring
    July 7, 2009

    All that you ultimately need is ... the WSDL.  Some services furnish their own WSDL but most do not, because in practice they just don't change and so it's a waste of bandwidth.  The WSDL file, however you get it and however you provide it to ColdFusion, is what you need to make short work of talking to the service.

    The WSDL is, quite simply, a formal definition of the service's API:  what messages can be sent, with what parameters, and what to expect in reply.  It serves as a formal grammar, if you will, for interacting with this particular service.  It allows you to write much less code (basically, "don't leave home without it!!") because the WSDL succinctly provides a great deal of information.  (It also allows ColdFusion et al to recognize when you have made an error, or when the remote service has just barfed in your general direction.)

    ilssac
    Inspiring
    July 8, 2009

    http://www.morgankelsey.com/post/consuming-a-webservice-a-local-wsdl

    What I found from a Google Search:

    http://www.google.com/search?q=coldfusion+web+service+local+wsdl

    Inspiring
    July 2, 2009

    Uh huh, you're getting confused. 

    WSDL is the Web Service Description Language ... a formal (and rather insufferably over-engineered) formal description of what a web-service consists of:  how to call it, what to say to it, and what it can say in response.  It is, if you will, a formal description of the service's API.

    See:  http://en.wikipedia.org/wiki/Web_Services_Description_Language

    Now, meanwhile, what is "SOAP?"  Well, SOAP is the mechanics of how the call actually takes place:  it's the physical process of building the text of the request that you send, and of interpreting the response that you receive.

    If you do not have a WSDL, you really do want to get one, because that will make your code much less dependent on their code.  As long as they keep the WSDL up-to-date when they change their code, it will enable your code to "automatically adapt" to those changes without buggering you at a very-inconvenient hour of the night.

    If you absolutely do not have WSDL information and absolutely cannot get it, then yes, you can construct a SOAP-message that matches what "you know" to be correct, and you can interpret the response, as long as whatever documentation they provide to you is actually correct and up-to-date... (of course it is... of course it is...).  Ahem.

    July 6, 2009

    let me tell you what is my issue is clearly.

    1.i have milsoft product called multispeak (multispeak.com) where i have to access soap to do some transcations.

    2. i don't have wsdl served by the server ( i am sure about this) but the company can send me a xsd/wsdl. ( i am not sure where they get this one)

    3. NOW can i save this wsdl on my server some place or use it any way to access the service on milsoft server.

    4. if that is not going to work i need to build soap code. so i need a working example......can some one post it.

    Participating Frequently
    July 6, 2009

    Yes, having a local copy of the WSDL and pointing ColdFusion to that

    copy will work.

    Mack