Problems calling a C# Web services from JSP

Problems calling a C# Web services from JSP

I have created a Web service in C#. I'm trying to call it from JSP. I'm using JRun 4.0 and used the Wsdl2Java utility. It created four java files, as follows:

    Requires Free Membership to View

    When you register, you'll begin receiving targeted emails from my team of award-winning writers. Our goal is to keep you informed on recent service-oriented architecture (SOA) and SOA-related topics such as integration, governance, Web services, Cloud and more.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchSOA.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchSOA.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.


SdkService.java
SdkServiceLocator.java
SdkServiceSoap.java
SdkServiceSoapStub.java

Now I don't know what to do next. I tried to create an object of my proxy then call the function of my service, but I couldn't do that, (e.g, SdkService service = new SdkService();) then call the method, but I got an error that it couldn't find SdkService. Also, if I use the taglib directive, then I get an error that the tag's handler class jrun.axis,tags.webservice invoke tag wasn't found.
From Macromedia's documentation:

Creating and using a JSP-based proxy client
After you create proxy code, you must write a proxy client that invokes the target Web service operations by instantiating a Web service proxy object and calling its methods. A sample JSP-based proxy client and its source code are available in the Web service sample application on the samples JRun server.

To create a JSP-based proxy client:

1. Instantiate a proxy factory and a proxy; for example:
<%

proxy.SampleServiceService stubFactory =

new proxy.SampleServiceService();

proxy.Sample stub = stubFactory.getSampleService();

%>

2. Call the proxy's method(s) and print the result to the page; for example:
<%= stub.getResult(3)%>

Make sure that you import all the classes you need, and make sure your classpath is set up properly.

Here's a tutorial that you might find useful:
http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=214

This was first published in September 2003