Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Java invoke a .NET Web method whose parameters are passed by reference

Thread Tools

Java invoke a .NET Web method whose parameters are passed by reference

Shadi Rafeh
Posts: n/a

I have created a .NET web service that has several structures and
webmethods. A sample web method might look like:

// A web method that changes the variable values of the structures
// passed. The structures are defined in the .NET web service.
public void ModifyStructures(ref myStruct1 ms1, ref myStruct2 ms2)
// Change the variable value of the structure ms1
ms1.Attribute_1 = "new Value for 1";

// Change the variable value of the structure ms2
ms2.Attribute_1 = "new Value for 2";

That is I want to change the values of the variables of both structures
and reflect back the changes to the web service consumer (client
application). This can be easily done in a .NET client.

However, I want to invoke the web service from a Java application, and
the changes made by the web method are not reflected back in tha Java
application. That is, after I create, using the Java application,
instances of the structures, and invoke the web method shown above,
however, nothing change.

Is it possible for a java application to invoke a .NET web service
whose method has parameters are passed by reference? Or is passing by
reference in web methods a non-standard extension for web services?

Thanks in advance,

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
calling a function whose name is passed as an argument Andrew Poulos Javascript 7 08-12-2008 11:45 AM
Method.invoke() with one arg compiles despite method signature lyallex Java 6 09-29-2007 07:33 PM
create an exectuable jar file whose classes reference another jar in Eclipse puzzlecracker Java 2 12-20-2005 03:33 AM
invoke a method by reflection£¨the method's parameters can not be ArrayList? jerry051 ASP .Net 2 08-02-2005 10:35 AM
[Method.invoke] wrapper - accessing arguments passed to user method. Storm Java 1 05-01-2004 11:20 AM