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?
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.
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
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.
@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