How to use apache axis 2 to create a dummy web service? - axis2

I have a WSDL from a C# web service.
Can anyone advice on how to use apache axis 2 to create a dummy web service?

Use Axis2's wsdl2java. It will generate a runnable skeleton. Just take out the exceptions and make each operation return a canned response.

Related

Creating URIs for webmethods

I have created a WCF service and I want my client to use servicemethods directly using a URL without creating a proxy class and object for it. How to generate the direct URLs for each webmethod. IF I have 5 webmethods, I want 5 URLS to give to clients to consume.
If you want to call your web service methods without generating the proxy class and object then you should make that service as REST service.
Please look at the below links that will provide you basic idea of what WCF REST Services is.
Beginner Tutorial
step by step REST service
MSDN API for REST service

Interceptor - Logger under Apache Axis

I have created a Web Service via Axis 1 and I intend to deploy it in Tomcat.
Is there any configuration/code that I must adjust in order for the Web Service to log the SOAP messages received?
I've found this reference: http://wiki.apache.org/ws/FrontPage/Axis/AxisClientConfiguration/ViewSOAPMessages
but it refers to client-side logging, while I need to utilize server-side logging.
Any help would be much appreciated.

Generate WSDL web-service objects in SAP

is it possible with SAP to generate client stubs and transfer objects from a WSDL served by a .NET WCF web service? Or do I have to build my SOAP XML requests manually?
To be more on the point. I still have a WCF web service and the wsdl. I have no knowlege in SAP. So the question is. Is it possible and how can I create client service stubs and the transfer objects in SAP from my WSDL?
It's easy to create an ABAP client for an existing web service if you have access to the URL for obtaining the wsdl file or the wsdl file itself. See this link for an step by step tutorial wich is basically:
1- Generate proxy from wsdl using assitant
2- Use proxy generated in your ABAP program
Regards
You can use the WSDL from the wcf for this. You can get the WSDL as service.svc?wsdl. However at times, some SOAP client generator expect all the definitions of the SOAP/WSDL in a single call. For that you might have to look at the following pages:
http://weblogs.asp.net/pglavich/archive/2010/03/16/making-wcf-output-a-single-wsdl-file-for-interop-purposes.aspx
http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/f03b6e78-ef28-4692-8f19-62d2f2d3bc9c
WCF: how to generate a single WSDL document, without WSDL:import?

Monitor SOAP messages and save it into a file

I am working on Apache Tomcat 6 and Axis2 for web services.
I want to monitor SOAP messages which are exchanged with client and server and save the data into a file.
How can I do it?
Storm is a test client for SOAP services.
To capture the traffic between your client and the server, you could use a proxy like Fiddler.
There is an example in modules samples (in samples/userguide) describing this case.
Personally I found simpler just to add a logging code in my generated <...MessageReceiverInOut> class. Just dumping out input/output envelopes for my particular service.

programmatically call a web service from a test application

I am writing an test application to do a load test on my existing WCF service.
There can be numerous clients calling the WCF service.
How do I write code to generate several clients calling the WCF service.
Any lead or forum or blog will immensely help.
Thanks
I have not used it myself, but the WCF Load Test might do the trick.
You can load test web service using SOAP UI. Free Version is here