Calling Apache WS from .net client

D

dtalas

Hello -

I'm having the following issue. I am trying to call a simple 3rd party
web service that is running as Apache AXIS. The web service takes 3
parameters, all strings. It uses RPC as its binding.

The Web Service implementation clearly expects last parameter to be
valid XML ( as in <MyData MyAttribute="att"/>, but my .NET client
encodes that parameter as &lt;MyData MyAttribute="att"/&gt;


When VS.NET generates a proxy to that web service, it looks something
like this:

------------------------------------------------------------
[System.Web.Services.Protocols.SoapRpcMethodAttribute("foo",
RequestNamespace="http://foo.bar.com",
ResponseNamespace="https://testservice.bar.com/services/foo")]
[return:
System.Xml.Serialization.SoapElementAttribute("myMethodResponse")]
public string myMethod(string in0, string in1, string in2) {
object[] results = this.Invoke("myMethod", new object[] {
in0,
in1,
in2});
return ((string)(results[0]));
}
------------------------------------------------------------

I can turn SoapRpcMethodAttribute to SoapDocumentMethodAttribute and
use SoapBindingUse.Literal, but my web service clearly expects me to
use RPC.

How can I stop my .NET client from encoding the string parameters? I
seem to be stuck. Please help!

Thanks,
Daniel.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top