473,394 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Reading WSDL for Remoting (MetaData.ConvertSchemaStreamToCodeSourceStream)

Getting Exception: "Root element is missing"

I'm trying to use remoting to build an assembly based on a given wsdl.
I've pieced together how to do this based on docs and some hints on
msdn. Although doesn't seem like anyone has posted a walkthrough
anywhere. I use HttpWebRequest for security purposes since we have
anonymous shut off on our web services.

When I output the stream to string I notice backslashes in front of all
the quotes and carriage return newlines at various points. I've used
Altova's XML Spy to validate, but i would not say it was well formed
till I removed all the CRNLs and backslashes. I tried to do the same
in the code but still got the same exception. ANy help, tips, pointer
would be great. I've posted the base code below:
System.Net.HttpWebRequest request =
(HttpWebRequest)WebRequest.Create(WsdlUrl);
request.Credentials = CredentialCache.DefaultCredentials;

HttpWebResponse response = (HttpWebResponse)request.GetResponse();
receiveStream = response.GetResponseStream();

MetaData.ConvertSchemaStreamToCodeSourceStream(tru e, path + "tmp",
receiveStream, fileList);

Apr 24 '06 #1
0 1139

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

24
by: Generic Usenet Account | last post by:
Does anyone have an opinion on how IDL and WSDL compare to each other? Are they equally powerful in their "expressive power"? Sometimes it appears to me that IDL is a little easier for humans to...
1
by: Savas Ates | last post by:
i created an proxy class .. it named webreference1 my code is like following. how can i learn the return message from wsdl (it works or not) how can i learn it(wsdl's respond) Dim ws As New...
2
by: Manish Soni | last post by:
I wish to expose a set of backend functions as web services. Now the metadata for the functions is not available before hand. So I want to have a way to dynamically generate the wsdl when user...
4
by: Sharon | last post by:
Hi, I'm using the remoting, and I have a remoting object that has a public event that other processes should register to it. But when the client process is registering to the remote event, it...
0
by: Jigar.Patel | last post by:
I have simple remoting server exposing following simple method. When I try to add webreference to this server in another project by serveraddresss?wsdl, it gives me following error: Custom tool...
0
by: Jigar.Patel | last post by:
I have simple remoting server exposing following simple method. When I try to add webreference to this server in another project, it gives me following error: Custom tool error: Unable to import...
0
by: Albert Greinöcker | last post by:
Hi there, I have a very general question about .NET remoting using SOAP: is there any way to influence WSDL generation (like setting a different target-namespace, or which classes (e.g. custom...
0
by: mikelee516 | last post by:
Getting Exception: "Root element is missing" I'm trying to use remoting to build an assembly based on a given wsdl. I've pieced together how to do this based on docs and some hints on msdn. ...
2
by: Thorsten Viel | last post by:
Hi @all, this is not my first webservice and everytime it worked that way, by now i got following exception when trying to call http://<url>?wsdl in my browser: System.NullReferenceException:...
0
by: Eternal Snow | last post by:
Hi all. I have some trouble by using WCF while creating WSDL. Please follow that: 1 Create a WCF service in EXE mode (not tried in IIS), add a basicHTTPBinding and a mexHttpBinding. 2 Run it,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.