file content as input for webservice call

H

hvj

Dear reader,

Is it possible from .NET to use the content of a file that contains a
complete SOAP (input) message as the input for a webservice call?

The normal way is to generate a proxy for a webservice and use the
resulting object model. However, for regressiontesting purposes, I
just want to fire calls using files that are obtained from logging the
webservice.

Help would really be appreciated!

Regards,
Henk
 
P

Peter Morris

Why don't your tests just execute the method directly? Why go through SOAP
first?
 
H

hvj

Dear reader,

Is it possible from .NET to use the content of a file that contains a
complete SOAP (input) message as the input for a webservice call?

The normal way is to generate a proxy for a webservice and use the
resulting object model. However, for regressiontesting purposes, I
just want to fire calls using files that are obtained from logging the
webservice.

Help would really be appreciated!

Regards,
Henk

Yes it is possible. Read file into string and use HttpWebRequest.
Caveat is deriving the SOAPAction HttpHeader that is needed. In
the .NET + IIS case it can be derived from the input, i.e. the name of
the operation.
 

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