Adding element to SOAP envelope in c#

S

Scott

I am consuming a web service WITHOUT a WSDL.

I have overridden SoapHttpClientProtocol to create my own WebService
request.

The problem is that the server responding to my requests wants a <c-
gensym3> element between the name of the method and the parameters.

like this:
<soap:Body>
<Method1 xmlns="namespace">
<c-gensym3> <!--THIS IS WHAT I NEED TO ADD-->
<data>xxxyyy</data>
</c-gensym3>
</Method1 >
</soap:Body>

How can I add the <c-gensym3> element into my request?
 
S

Scott

Thanks for your reply. The vendor of the web service, written using
SOAP::Lite in Perl, does not supply a WSDL.

The reference you provided and the additional searches I've done point
to solutions going from Perl Client to a c# server.

However, I'm trying to do this:

c# Web Service Client ----> Perl SOAP:Lite Server

I CAN get the web service to work using a raw HttpWebRequest and
subsequent messing with the XML structure of the request led me to
believe that the only difference between it working and not working
was the inclusion of the <c-gensym3> tag.

So - I'm trying to figure out how to get access to the XML document
somewhere after I call Invoke and then insert the XML element manually
(Yes, we love interoperability).

At this point I'd go down any path (other than using raw requests) to
solve this problem.
 
P

Paul

In this situation you would have been better off had they used resful
services.

Sorry don't know enough to help any more bud.
 
S

Scott

N

not_a_commie

One option is to just send your SOAP XML through a standard
HttpWebRequest. That's what I do -- make a WebRequest with the XML
that the webservice requires. SoapHttpClientProtocol is a pain IMO.
 

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

Top