Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: empty namespace genertated in refrence.cs

Started 2 months ago by seeshuen
I am new to VS 2008. I found that VS generate empty namespace for some nested objects. Here is my wsdl <?xml version="1.0" encoding="UTF-8"?> <definitions xmlns:tns="urn:abc-pcr:exampleone"   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"   xmlns="http://schemas.xmlsoap.org/wsdl/"   targetNamespace="urn:abc-pcr:exampleone"> <types>     <xs:schema targetNamespace="urn:abc-pcr:...
Site: MSDN Forums  MSDN Forums - site profile
Forum: ASMX Web Services and XML Serialization  ASMX Web Services and XML Serialization - forum profile
Total authors: 3 authors
Total thread posts: 4 posts
Thread activity: no new posts during last week
Domain info for: microsoft.com

Other posts in this thread:

Youssef Moussaoui - MSFT replied 2 months ago
From your wsdl, it seems like the target namespace for the schema in which reasonMessages is defined is "urn:abc-pcr:exampleone". Therefore, it's expected that reasonMessages falls within the same namespace as GetSourceSystemInfoResponse (which is "urn:abc-pcr:exampleone"). You could change your wsdl to put reasonMessages in a schema where targetNamespace="" and then add a reference to that ...

seeshuen replied 2 months ago
Thanks for the reply. But can you really have an empty targetNamespace? How could you specify a group element with empty namespace in another schema in the same wsdl file? Sorry that I don't really understand the suggestion. Could you draft a few line to show the idea? Thanks.

Dan Glick - MSFT replied 1 month, 4 weeks ago
What platform is the server on? As Youssef said, I think that the .NET client is interpreting the XSD correctly. But my assumption, based on your workaround, is that the server is writing the reasonMessages element in the empty namespace. Do you have control over the server and/or the XSD? Marked As Answer by Amadeo Casas - MSFT Moderator Wednesday, October 28, 2009 10:17 PM

 

Top contributing authors

Name
Posts
seeshuen
2
user's latest post:
empty namespace genertated in...
Published (2009-10-22 21:29:00)
Thanks for the reply. But can you really have an empty targetNamespace? How could you specify a group element with empty namespace in another schema in the same wsdl file? Sorry that I don't really understand the suggestion. Could you draft a few line to show the idea? Thanks.
Dan Glick - MSFT
1
user's latest post:
empty namespace genertated in...
Published (2009-10-26 23:12:00)
What platform is the server on? As Youssef said, I think that the .NET client is interpreting the XSD correctly. But my assumption, based on your workaround, is that the server is writing the reasonMessages element in the empty namespace. Do you have control over the server and/or the XSD? Marked As Answer by Amadeo Casas - MSFT Moderator Wednesday, October 28, 2009 10:17 PM &nbsp;
Youssef Moussaoui - MSFT
1
user's latest post:
empty namespace genertated in...
Published (2009-10-20 22:23:00)
From your wsdl, it seems like the target namespace for the schema in which reasonMessages is defined is &quot;urn:abc-pcr:exampleone&quot;. Therefore, it's expected that reasonMessages falls within the same namespace as GetSourceSystemInfoResponse (which is &quot;urn:abc-pcr:exampleone&quot;). You could change your wsdl to put reasonMessages in a schema where targetNamespace=&quot;&quot; and then add a reference...

Related threads on "MSDN Forums":

Related threads on other sites:

Thread profile page for "empty namespace genertated in refrence.cs" on http://msdn.microsoft.com. This report page is a snippet summary view from a single thread "empty namespace genertated in refrence.cs", located on the Message Board at http://msdn.microsoft.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity