Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: load context in webservice

  1. #1
    Join Date
    Apr 2012
    Posts
    27

    Default load context in webservice

    Hi, i need your help again


    I want to call a webservice and there load the spring integration context for send a message by a channel.
    This is possible?
    If yes,where should i put the xml file?

    ty in advance

  2. #2
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    Please read the reference manual (chapter 27 which covers Web Service adapters):
    http://static.springsource.org/sprin...ce/htmlsingle/

    There are also samples for Web Services here (look first under 'basic' at the ws-inbound-gateway example):
    https://github.com/SpringSource/spri...ration-samples

  3. #3
    Join Date
    Apr 2012
    Posts
    27

    Default

    I readed this already but i cant understand how i generate the wsdl for client consume .... :\

  4. #4
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    The Web Services support in Spring Integration builds directly upon the Spring-WS project, so please read this section of the Spring-WS manual for information about WSDL-generation:
    http://static.springsource.org/sprin...ublishing-wsdl

    I'd recommend at least browsing the rest of the Spring-WS manual as well to make sure you understand the big picture.

    Hope that helps.
    -Mark

  5. #5
    Join Date
    Apr 2012
    Posts
    27

    Default

    Quote Originally Posted by Mark Fisher View Post
    The Web Services support in Spring Integration builds directly upon the Spring-WS project, so please read this section of the Spring-WS manual for information about WSDL-generation:
    http://static.springsource.org/sprin...ublishing-wsdl

    I'd recommend at least browsing the rest of the Spring-WS manual as well to make sure you understand the big picture.

    Hope that helps.
    -Mark

    Thnks for the help again..
    But what i see for examples is that we always get a xml message(from SOAP protocol).
    In others frameworks we always call a method and set the paramets for the method..
    We cant do this here??

  6. #6
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    Please be sure to also read the *client* sections in the Spring-WS reference manual as well as the description of the *contract first* approach.

  7. #7
    Join Date
    Apr 2012
    Posts
    27

    Default

    I readed all,but cant find an example that uses a "normal" method call....

  8. #8
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    Well, that's where Spring Integration builds on top (internally it simply uses the WebServiceTemplate). See this sample:

    https://github.com/SpringSource/spri...Conversion.xml

    You can add a Spring Integration "gateway" element in front of the "fahrenheitChannel" so that you only need to define an interface on the client side - not even an implementation (which also facilitates testing via mocks).

  9. #9
    Join Date
    Apr 2012
    Posts
    27

    Default

    Well,i think u are not understanding what i really want or im not explainig well..

    In my side(server side) i want create a web service (method with parameters) that receive a message and send for a channel.
    And i want to give my wsdl for client side for it call the WS...
    Client side will not use Spring integration and i really dont want to know what he is using..What i want is just that he call my method and give parameters..

  10. #10
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,029

    Default

    So, just follow the instructions on how to publish the WSDL that Mark posted in post #4 above. You just need to add a bean to the servlet context with a reference to your schema.

    There's more detail further down in the reference that Mark suggested you read: http://static.springsource.org/sprin...-wsdl-exposure
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •