IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
Expand all | Collapse all

simulate webservice provided by another application not on Webmethods

webMethods Community Member

webMethods Community MemberMon February 25, 2013 04:22 PM

webMethods Community Member

webMethods Community MemberWed February 27, 2013 12:00 PM

  • 1.  simulate webservice provided by another application not on Webmethods

    Posted Wed February 20, 2013 10:17 AM

    Hello

    I tried tu simulate Webservice provided by another application
    With wsdl i generate webservice on developper

    in IS console i define url Aliases for simulate the endPoint of Original Webservice like this
    Alias : soapzone/wsServer.php
    URL Path : ip:9999/ws/folder.subfolder:webservice
    Package : myPackage

    And i run the request
    And i have this error

    Could not run XXXXX
    Http Error: 404 - No such object: ip:9999/ws/folder.subfolder:webservice

    What i need define in URL path for the URL Alias work with WSDL?

    Thanks


    #API-Management
    #soa
    #webMethods


  • 2.  RE: simulate webservice provided by another application not on Webmethods

    Posted Wed February 20, 2013 04:17 PM

    Did you bind your new alias with the consumer web service descriptor you created?


    #webMethods
    #soa
    #API-Management


  • 3.  RE: simulate webservice provided by another application not on Webmethods

    Posted Thu February 21, 2013 08:27 AM

    I have one alias for consumer in SEttings=>WebServices=>HTTP, where the target is IS, and is binding in the web service descriptor

    And One URL Aliases for simulate the url off original Webservice, in Settings URL Aliases

    I’m in webMethods 8.0


    #webMethods
    #API-Management
    #soa


  • 4.  RE: simulate webservice provided by another application not on Webmethods

    Posted Mon February 25, 2013 04:22 PM

    Any one can help me to do a mock?


    #soa
    #API-Management
    #webMethods


  • 5.  RE: simulate webservice provided by another application not on Webmethods

    Posted Mon February 25, 2013 08:52 PM

    Are you trying to test your WS from developer?


    #webMethods
    #soa
    #API-Management


  • 6.  RE: simulate webservice provided by another application not on Webmethods

    Posted Tue February 26, 2013 05:22 PM

    I trie to do a mock from developper based on a wsdl provided by another application
    With this WSDL i do a consummer and provider in Developper


    #API-Management
    #webMethods
    #soa


  • 7.  RE: simulate webservice provided by another application not on Webmethods

    Posted Tue February 26, 2013 06:21 PM

    If you have the WSDL then you can have developer auto generated the stub provider service. At that point it should be callable, but not return a result because you haven’t actually implemented anything. Mock the response inside of the provider service and you should be able to call it from SoapUI at that point to just test out connectivity and the response.

    You can then use the WSDL that is auto generated by the webMethods IS servicer provider to create a consumer of the service for testing.


    #soa
    #webMethods
    #API-Management


  • 8.  RE: simulate webservice provided by another application not on Webmethods

    Posted Tue February 26, 2013 10:04 PM

    Yes try use SoapUI tool for testing/stimulation WS as Mark mentioned above.


    #API-Management
    #webMethods
    #soa


  • 9.  RE: simulate webservice provided by another application not on Webmethods

    Posted Wed February 27, 2013 11:59 AM

    I can’t do this because the URI is not the same after i regenerate the WSDL for build the consummer (i need to use the orignal wsdl for generate my consummer).
    And if i want call the original webservice they don’t work

    The orignal uri is :
    http:\xxxx:portX\soap\wesbservice.php
    The uri of provider on developper
    http:\is:portIs\ws\folder.subforlder:webservice

    and now with the allias the consummer call
    http:\alliasExternApplication\ws\folder.subforlder:webservice
    and not
    http:\alliasExternApplication\soap\wesbservice.php


    #webMethods
    #API-Management
    #soa


  • 10.  RE: simulate webservice provided by another application not on Webmethods

    Posted Wed February 27, 2013 12:00 PM

    my reply before your post


    #webMethods
    #API-Management
    #soa


  • 11.  RE: simulate webservice provided by another application not on Webmethods

    Posted Wed February 27, 2013 01:43 PM

    Hi,

    I think you can do as griffima suggested. When you use your consumer of your WS-mock, use the “_url”-field to override the url when you need to switch to the actual WS.

    At the place I am at we always provide url in the “_url”-field consumer invoke-step to easily be able to switch between development, test and production environments. Same thing works for mocks.

    /Hyui


    #soa
    #API-Management
    #webMethods


  • 12.  RE: simulate webservice provided by another application not on Webmethods

    Posted Wed February 27, 2013 05:19 PM

    Having /ws/is the correct notation and /soap/ is the default in pre 8.x versions.


    #API-Management
    #webMethods
    #soa


  • 13.  RE: simulate webservice provided by another application not on Webmethods

    Posted Thu February 28, 2013 02:49 PM

    @rmg
    the probleme is not soap or ws, is after
    \folder.subforlder:webservice
    \wesbservice.php

    The other application use soap in URI but no link with WM

    @Hyui
    I trie a solution like this, but in my case i have allias for connection, and if you enter _url you must delete this before going in production, and during test if you want test mock or externe application you need delete to.

    now i build a flow service with properties for activate url with no code but only a properties


    #soa
    #API-Management
    #webMethods


  • 14.  RE: simulate webservice provided by another application not on Webmethods

    Posted Fri March 01, 2013 04:10 PM

    May be I have overlooked the problem…It sounds you are in the right direction now:)


    #webMethods
    #soa
    #API-Management


  • 15.  RE: simulate webservice provided by another application not on Webmethods

    Posted Tue March 05, 2013 11:14 AM

    Now i have problem with target namspace.

    I need the other application up and configured properly.
    If not configured properly they have a connection refused with the original consummer.

    If i generate a consummer with WSDL of my provider they work, but i don’t want regenerate every time a consummer.

    It’s possible to do an allias for targetNamespace like port alias in WM? (for my original consummer)


    #API-Management
    #soa
    #webMethods