web service output

Hello Experts,

My webservice returns output as,

<soap:Envelope xmlns:soap="" xmlns:xsi="" xmlns:xsd="">
      <getRILPODataResponse xmlns="">

While we are expecting below output
<?xml version = "1.0" encoding = "UTF-8"?>
<Operation xmlns:SOAP-ENV = "" xmlns:inp = "http://InputMessageNamespace" xmlns:soapenv = "" xmlns:xsd = "" xmlns:xsi = "">

Open in new window

Please check attachment for my method.

Your help is really appreciated
Johny BravoAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ste5anSenior DeveloperCommented:
SOAP requires that you have an envelope and a body element. So your expected output does not comply with that..

So the question is: What kind of web service do you want to write? SOAP, restful or your own?
Johny BravoAuthor Commented:
Hi Ste5an,,
Any webservice that can return output in desired format :)
Please let me know
Johny BravoAuthor Commented:
Is there anyway to get the output in desired format?
ste5anSenior DeveloperCommented:
Maybe I missed something, but SOAP web services are normed. The envelope is mandatory, also is the body.

Serialization and Deserialization
A Guide to Designing and Building RESTful Web Services with WCF 3.5
Learn About ASP.NET Web API

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.