Consuming .Net Web Service from Java problem

Hi All,

I have written a simple C# web service to accept 1 string paramater and write it to a file (method attached in code snipppet).  I want to call this method from a java class and have written code to do so (attached in a code snippet).

This is kind of working.  I am able to call the method in the service successfully, however I am unable to pass the parameter.  The C# web method always recieved null as the parameter value.  Am I missing something blatant here?
C# Web Service
public string SendToMessageServer(string one)
     StreamWriter sw = new StreamWriter("C:\\ItWorked.TXT", true);
     return one;
Java call to service
     String endpoint =  "http://localhost:1093/CSL.asmx?WSDL"; 
     Service service = new Service();
     Call call= (Call) service.createCall(); 
     call.setProperty( Call.SOAPACTION_USE_PROPERTY, new Boolean(true)); 
     call.setProperty(Call.SOAPACTION_URI_PROPERTY, ""); 
     call.setTargetEndpointAddress( new;
     call.setOperationName(new QName("http://localhost:1093/CSL.asmx/SendToMessageServer", "SendToMessageServer"));
     call.addParameter("one", XMLType.XSD_STRING, ParameterMode.IN);
     Object[] parms = new Object[1];
     parms[0] = "HeyNow";
catch (Exception e) 

Open in new window

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You need to create a proxy in your Java code. Here is a link how to:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.