Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > .NET/JAVA Interoperability

Thread Tools

.NET/JAVA Interoperability

Posts: n/a
I'm facing some problem with respect to .NET client invoking a Java
I'm able to access a Java WebService, whose binding is RPC/Encoded.But
the same
WebService when deployed using Document/Literal gives a problem.

Please find below my problem:
I have a method being exposed in Java WebService by name callMethod()
that returns a string.
The proxy generated for this method using wsdl.exe is as follows:

[System.Web.Services.Protocols.SoapDocumentMethodAt tribute("",
Use=System.Web.Services.Description.SoapBindingUse .Literal,
ParameterStyle=System.Web.Services.Protocols.SoapP arameterStyle.Bare)]
[return: System.Xml.Serialization.XmlElementAttribute("call MethodResponse",
public callMethodResponse callMethod()
object[] results = this.Invoke("callMethod", new object[0]);
return ((callMethodResponse)(results[0]));

I invoke the method from C# using the following syntax:

Sample11 obj = new Sample11();
callMethodResponse objRes;
objRes = obj.callMethod();
string str;
str = objRes.callMethodReturn;

Initially I recieved an error saying "java.lang.exception:Body not
I could set this right by changing the SoapParameterStyle in
from SoapParameterStyle.Bare to SoapParameterStyle.Wrapped.

Now objRes has a null value.I'm not able to receive the simple string
"Hello", which I'm returning
from the Java WebService.

But everything works fine when RPC/Encoded is used.

Will be greatful if somebody could help me out in this.
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
Proxim and Cisco Access Point Interoperability? Hal Kuff Cisco 1 10-04-2006 03:38 PM
Wireless interoperability between Cisco Aironet and Orinoco. AM Cisco 2 06-10-2005 12:31 PM
.NET & Windows Messenger interoperability Ioannis Vranos ASP .Net 2 04-13-2004 12:25 PM
PVST interoperability with Cabletron/Enterasys Mortimer Mouse Cisco 2 04-01-2004 04:34 PM
CISCO and Juniper Interoperability Syed J farooqi Cisco 0 01-23-2004 01:29 PM