soapUI combine more mock services - web-services

I would like to create a mock service with soapUI, but not from a single wsdl, but from several, and at the end, create a single WAR that can be deployed. Theoretically that's possible, if I create more soapUI projects with the different wsdls and then start each mock service separately. But how is this possible to package these different services to one WAR instance, and then connect to the services on different URLs.
Thnaks!

Create 1 SOAPUI project.
Right click on the project and add click Add WSDL.
Repeat for all WSDL's you want to add.
Right click on a imported WSDL and click Generate MockService
Repeat for all services you wish to mock.
To deploy right click on the project and click Deploy As War, Include Global settings, Enable WebUI.
Set the MockServiceEndpoint to http://:
Set the War File (which will be the context root)

Related

How do you add a web App to your Google Cloud console?

I need to create a development Google OAuth 2.0 Client ID for my app. I see that you cannot have an origin of http in the list of allowed origins. The error states...
Invalid Origin: This app has a publishing status of "In production".
URI must use https:// as the scheme.
So it seems I need to create a 'development app' so it can have its own OAuth key. However, I am finding it confusing on how to do this.
In my view I can see my org and what I think is a "Project". I can add another project, but I am thinking there should be a way to add an "App" to my existing project.
I think the hierarchy goes Org -> Projects -> Apps correct?
Where does one add a new App?
It is true that any app that has been set to production and has been verified can not have a redirect uri that is not https Redirect URI validation rules
You can create a new project on [https://console.cloud.google.com/apis/dashboard] for development.
Google says that for apps in production, redirect URIs must use the https scheme, not plain http. It seems however that localhost IP address URIs are exempt from this rule.
If you just need to create a new OAuth 2.0 Client ID, go to Projects -> /your app/ -> APIs & Services -> Credentials.
Over there, choose Create New Credential, then choose OAuth Client ID (depending on your use case).
Then you will be asked for the id/package-name of your app you want to create a Oauth client id for.
Otherwise you can always create a new project.
OAuthClient
The way you add an "app" really depends on how that application is implemented. You are correct that organizations have projects, but projects don't really have "apps," they have resources.
In this organizational hierarchy, the idea is that you either add a virtual machine, or a kubernetes cluster, or a cloud function, depending on whether you're using Google Compute Engine, Google Kubernetes Engine, or Cloud Functions, respectively (or anything else).
If you were using Google Compute Engine to implement your web application, for instance, you would add the virtual machine to your project (either via the web interface or the gcloud command-line interface), and then you'd configure a web server to handle incoming requests at whatever address you wanted for the OAuth webhook.
Again though, the main point is that you don't really add "apps", you add resources, so it really depends on how you're going to be implementing your web application. In short, however, you do not need to create another project. That would just bring you back to square one :)

Deploy a proxy service created in the WSO2 Developer Studio in the ESB

I created a WSO2 proxy service using WSO2 Developer studio and would like to deploy it in the ESB in my local machine. If I create a CAR file and deploy it as in https://docs.wso2.com/display/DVS380/Deploying+a+C-App, it doesn't get deployed as a Proxy service. How can I deploy it as a proxy service?
This works without any problems. The only problem that I might think of, is that the proxy has the wrong server role assigned in the pom of the car project. To check this, do the following.
Click on the pom.xml of the car project
in the appearing form, check that in the dependency part the project you want to deploy is checked
expand the proxy artifact in the dependency view and verify that ServerRole is set to EnterpriseServiceBus
save if you have made any changes, create the car and deploy it
Hope that helps.
Regards
Martin

Best way to deploy a web site alongside an axis2 web service via Tomcat?

I am using Axis2 (1.5.3 currently) and Tomcat (6.0.26 currently) and am running a web service. I would like to also host HTML pages for configuring the web service.
What is the best way to go about this? I assume keeping the same context is key, but perhaps it is not.
My current distribution is located under a folder structure similar to this:
Tomcat/webapps/mycompany
With the actual service code here:
Tomcat/webapps/mycompany/WEB-INF/services/myService
In a browser, I can hit my web service by going to here:
/mycompany/services/myService
I note that I can drop actual HTML files in this path and Tomcat will, indeed serve them up.
For instance, if I put "index.html" under Tomcat/webapps/mycompany, I can navigate to /mycompany/index.html and see my html.
What I want to do is have this HTML be attached to JAR/class files that can interact with the already-existing service class files in the same context as the service. Therefore, I can have the browser configure the web service directly.
Is this possible, and is there a tutorial or something out there that will help me with this? Note that I have been working with Tomcat and Axis2 for a while now for this particular web service, but I have never actually deployed a web application/html using Tomcat before.
Thanks.
First of all what do you mean by a configuring a service. Normally in SOA world services are analogous to interfaces. IMHO you can just change a service, since their are other users that rely on the services you are exposing.
If i want to change a service i would rather introduce a new version of the service after deprecating the existing one.
Are you talking about applying QoS to existing serviecs. Then that makes sense.
Anyway, If you want to have a web-app alongside with axis2 service engine, it is possible. If you look inside the axis2 war file you'll find the web.xml entry to Axis2Servlet. It is this servlet that serves the web services requests.
So, what you need is the Axis2Servlet mapping in your web-app along with your usual servlet-mappings. Number of possible ways to configure your services using web-app files. One options is to use web-services call itself to (with authentication) to configure it.
By "configure a service", take this example:
The service has a set of datasets.
Each dataset exists in a separate database.
The service can manage 0..n datasets.
The service must be configured to know about each dataset.
This is what I'm configuring. I'm not trying to configure Axis itself or redefine the service.
I would like to host the HTML using the same instance of Tomcat that I'm hosting the web service with. It needs to manage sessions, have login capability, an whatnot, and has to be able to configure the web service live.
From what I'm reading, it's probably best to make an interface to the web service that the web application module can call into from a different context.
Is there a better way?

coldfusion class path for multiple services - only recognizing first directory

I am trying to use multiple web services on a single CF page. I have entered the stubs directory for each of the web services in the ColdFusion Class Path within administrator > server settings > java and jvm
paths are listed separated by commas: c:\coldfusion9\stubs\ws1,c:\coldfusion9\stubs\ws2
for some reason, only the web service whose stub path is listed first will work. When I try to call the second web service, I get a "web service operation ... cannot be found"
but if i switch the order of paths listed in the admin settings and restart the service, the web service listed first now will work.
any ideas on how to manage multiple web services and their stubs ?
thanks!
If you are also the owner of services, method proposed by Adam in this SO answer can possibly help you too.

dynamic web reference for use in SSRS

To use the web service that is part of an SSRS installation, it seems that you need to add a web reference to your project so that you can call it etc (see one of my previous questions).
But if I needed to call the web service for different SSRS installations then i need to keep adding extra web references. My asp.net application currently displays reports from several different SSRS installations, not just a single server...
Is there a way to either dynamically add the web reference or to dynamically change the server address of where the web service is located?
You don't need to add extra web references.
If you select the web reference in Solution Explorer, then look at the Properties grid, you'll see that you can set the URL to be Dynamic. That will take the URL from the app.config or web.config. Simply change the configuration when you change servers.
If you need to do this at runtime, the proxy class for your service has a Url property that you can set.