Hi,
When I deploy some services, I let webMethods to deal with the WSDL URL.
So when I deploy my DEV service (1) to PREPROD, the WSDL is automatically matched with the target server name (2)
- http://DEV-servername:5555/ws/mypackage.ws.wsService?WSDL
- http://PREPROD-servername:5555/ws/mypackage.ws.wsService?WSDL
- http://PROD-Alias/ws/mypackage.ws.wsService?WSDL
All this works well, but now, if I want to specify a specific Alias for the target PROD environment.
Where may I specify this setting please ?
In the Deployer or in the target IS ?
Regards
Hi,
To avoid any code changes after deployment, I always set the WSD (either consumer or producer) to a Web Service Alias.
This way, after deployment, it is only a question of configuration of the Web Service Endpoint in the IS. The package remains unmodified in all servers.
As far as I know, there isn’t a similar alias list on MWS, so, after deployment, you have to log in as sysadmin and change the application’s configuration property target URL address directly (CAF Application Runtime Configuration → your application → Web Application → Environment Entries → wsclient-endpointAddress).
Best Regards,
Hi,
Thanks for your reply Gerardo.
In the IS I have a alias in Web Service Provider Endpoints List.
then in the Designer, my WSd are all referencing this port Alias in the WSD Binders options.
Does is not the same thing of what you describing in MWS ?
I do not know CAF (Component Application Framework)… but where I find it in the server ?
where is this executable please ?
Regards
I have read this documentation :
http://techcommunity.softwareag.com/documents/portlet_file_entry/10157/caf_search_app_tutorial.pdf/2209b019-6dff-4cc6-a2fe-2303abcc0c85?status=0
but i do not see how to access “Environment Entries → wsclient-endpointAddress”.
If you could help me, please ?
Regards
I assume for your case if you have to just consider the WS endpoint alias for Provider and consumer on IS page. If you have any CAF/Portlet application deployed to MWS then you can check for wsclient-endpointAddress".
Hi,
So, in the IS all you have to change is the WSE alias values: that changes the url the WSD will call. No more changes needed.
If you are using the Deployer to deploy your code, add the corresponding WSE to the project and, in the mapping definitions, indicate the values to replace when the target is your production environment.
In MWS, you have to enter as the user “sysadmin”. No other user should work. Do not assign the role “Admin User” to any other user.
Then navigate to “Folders > Administrative Folders > Administration Dashboard > Configuration > CAF Application Runtime Configuration → your application → Web Application → Environment Entries → wsclient-endpointAddress”.
In the Deployer project for the MWS application you should have the possibility to map the new value (I have not checked this).
Best Regards
Thank you for your helps.
I could connect to MWS with sysadmin… but I’m understanding now that for me is not useful :
I do not use any CAF/Portlet application, so the Web Application area is empty (no application added).
So I would have another question. How the Designer does make the translation between IP address and servername ?
Because in my case :
IS : Settings\Web services\Web Service Provider Endpoints List\HTTP = IP of the server
Designer : WSD URL for web service is displayed the servername (not the IP)
Exemple : http://Myservername.domain.local:5555/ws/mypackage.ws.provider:wsService?WSDL
Regards
Hi,
When you first enter the MWS CAF Application Runtime Configuration it could be empty. Press the “search” button.
If you are creating a provider with a service-first approach, it will use as much information about the server as it can in design-time.
The WSE alias is used by the IS on runtime (also the Designer on debug).
It could happen that there is no relation between the design-time and run-time information.
Best Regards,
Hi,
Oups ok… yes there are applications in the list, but I my case what I wanted to say, is that I have not any specific web application.
I’ve juste created WSD which are called by some other external applications/partners.
So if need to set the Alias of my WSD, it is maybe not possible in MWS ?
Regards