Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / XML / January 2008

Tip: Looking for answers? Try searching our database.

how to get .net to wsdl fully qualified xml ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Martin - 30 Jan 2008 15:35 GMT
we have a java webservice which requires the xml in the soap body to include
the ad:  bit

<ad:ArrivalsDeparturesQuery xmlns:ad='http://www......">

but the wsdl generated class in .net produces it with out the ad: part
><ArrivalsDeparturesQuery xmlns="http://www....."><....

How do you tell .net to generate the xml as fully qualified?
Martin Honnen - 30 Jan 2008 17:05 GMT
> we have a java webservice which requires the xml in the soap body to include
> the ad:  bit
[quoted text clipped - 5 lines]
>
> How do you tell .net to generate the xml as fully qualified?

Both versions are semantically equivalent, it should not make any
difference whether you use a default namespace declaration or use a prefix.

As for enforcing a certain style, with XmlSerializer you can use an
XmlSerializerNamespaces class to control the prefixes used. Not sure
whether that applies to web service clients as well, you might want to
ask in microsoft.public.dotnet.framework.aspnet.webservices.

Signature

    Martin Honnen --- MVP XML
    http://JavaScript.FAQTs.com/


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.