c# - Creating a webservice client having SoapParameterStyle as Bare as opposed to wrapped -


I am trying to create a soap web service client using Visual C # 2008 Express IDE. I do this through a claim-click project (name-> Service Reference-> Advanced-> Add Web Reference (This is because we have to support NIT 2.0 and VS2005 for our development). Everything is working well, and the customer is being created as follows

  [System.Web.Services.Protocols.SoapDocumentMethodAttribute ("operationInfo", RequestElementName = "mainInfoTag", RequestNamespace = "http: //www.example.com/test", ResponseElementName = "Answer", ResponseNamespace = "http://www.example.com/test", = System.Web.Services.Description.SoapBindingUse.Literal Use, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped) [Return: System.Xml.Serialization.XmlElementAttribute ("somenewID")] Public string storeWarrantyInformation (tagBelowMainInfoTag tag, string out somenewID, string out someotherID)  

you can see Area, the method is marked with SoapParameterStyle.Wrapped, what makes it a class does not create the same "mainInfoTag".

The question determines what I have in the client soap parameter styled proxy class. I would like to get the sleeppaperter style as bare so that my root XML element can be accessed. Is there any setting that I can specify in the IDE or to do so, through 'wsdl.exe'.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -