I want to create a WSDL based on the output I have, can Mule generate this automatically, or do I have to define the WSDL manually?
Yes. If you create a service in mule and want to get a wsdl for that service. You can get a WSDL for that service by using the service url inconjuction with ?WSDL
If your service is
http://localhost:8080/myservice
then a WSDL can be obtained by the URL
http://localhost:8080/myservice?wsdl
Hope this helps.
Related
I have a scenario where the web service that the business service is based on has been updated. I'm looking for the correct approach to updating the business service in the OSB project to reflect the change. Can I download the WSDL and replace the contents of the existing WSDL file and XSD if necessary?
I would propose the following:
Replace the old WSDL and schemas with the new ones.
Go to your business service and select the new WSDL
Validate your project to see if the changes in the WSDL/XSD didn't break any XPaths, XQueries, namespaces,...
If everything validaties, test your changes
I am generating a swagger definition for all the my APIs by annotating the source code.
I was wondering if there is any way for make possible merge all the APIs in one single json file?
Note: I am using Swagger 2.0 definitions.
If you deploy those apps in a WebSphere Liberty server with the apiDiscovery-1.0 feature defined in your server.xml, then you can simply go into (GET) /ibm/api/docs and retrieve your aggregated JSON file. You can also retrieve it as YAML, by adding the Accept header "application/yaml".
You can download it for free at wasdev.net then just run the installUtility command to grab the feature (wlp/bin installUtility install apiDiscovery-1.0).
More information in this blog: https://developer.ibm.com/wasdev/blog/2016/04/13/deploying-swagger-enabled-endpoints-websphere-liberty-bluemix-api-connect/
So we have Swagger UI and YAML file manually generated by a developer. The plan is to use Jenkins to validate our API endpoints (request and response schemas) using the Swagger schema. Is there a way to do that?
Please check Sagger Diff. This CLI tool shows breaking changes between 2 different swagger json files
http://swagger.io/using-swagger-to-detect-breaking-api-changes/
Is it possible to make a plugin for Jira that behaves as custom url?
For example, suppose if I have jira on http://jira.example.com and I want to get some data from e.g. http://jira.example.com/record/{id}, where id is parameter for plugin. And output data is audio stream.
You can create a JIRA plugin with a REST module to display arbitrary content with a URL similar to the following:
http://jira.example.com/rest/record/{id}.
If you prefer, you could write it as a straight servlet module instead, with a URL such as this:
http://jira.example.com/plugins/servlet/record/{id}
If you want to expose an endpoint at the main http://jira.example.com/record level, I am not aware of any way to do that within a plugin. (It should be possible, albeit not very portable, by editing the configuration files in the JIRA program directory.)
I write a service using the .NET class ServiceBase. My service needs to be configured for proper operation. What is the usual way to add configuration information? I found that most services has some parameter is the registry.
e.g. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Winsock\Parameters
Is the registry the best place to add five or six values? How do I retrieve this information? I assume that the service name might change and I want to avoid hard coded registry names in the code.
What about .exe.config files? Are these preferable for .NET based services?
Just add a normal app.config (Application Configuration item) to your project - it'll be renamed to YourService.exe.config in the build process, and it's the default and preferred way of configuring a .NET application (console app or Windows Service or whatever)
What about .exe.config files? Are these preferable for .NET based services?
Yes, they are. This way your service is self hosted - it contains everything that's necessary for its operation.
But if you wanted to manipulate the registry you could use the Registry class.