473,671 Members | 2,363 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WEb Services Error

Hi Guyz..

I am working on the creating a web service and I have a code like
Public function test (byval query as string) as string

query.loadxml (queryxml)

-------------

I am getting error like
System.IO.FileN otFoundExceptio n: Could not find file
'C:\Shared_fold er\Test\query'.
at System.IO.__Err or.WinIOError(I nt32 errorCode, String
maybeFullPath)
at System.IO.FileS tream.Init(Stri ng path, FileMode mode, FileAccess
access, Int32 rights, Boolean useRights, FileShare share, Int32
bufferSize, FileOptions options, SECURITY_ATTRIB UTES secAttrs, String
msgPath, Boolean bFromProxy)
at System.IO.FileS tream..ctor(Str ing path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize)
at System.Xml.XmlD ownloadManager. GetStream(Uri uri, ICredentials
credentials)
at System.Xml.XmlU rlResolver.GetE ntity(Uri absoluteUri, String role,
Type ofObjectToRetur n)
at System.Xml.XmlT extReaderImpl.O penUrlDelegate( Object xmlResolver)
at System.Threadin g.CompressedSta ck.runTryCode(O bject userData)
at
System.Runtime. CompilerService s.RuntimeHelper s.ExecuteCodeWi thGuaranteedCle anup(TryCode
code, CleanupCode backoutCode, Object userData)
at System.Threadin g.CompressedSta ck.Run(Compress edStack
compressedStack , ContextCallback callback, Object state)
at System.Xml.XmlT extReaderImpl.O penUrl()
at System.Xml.XmlT extReaderImpl.R ead()
at System.Xml.XmlL oader.Load(XmlD ocument doc, XmlReader reader,
Boolean preserveWhitesp ace)
at System.Xml.XmlD ocument.Load(Xm lReader reader)
at System.Xml.XmlD ocument.Load(St ring filename)
at ResearchPane.Qu eryProcessor.Qu ery(String queryXml) in
C:\Shared_folde r\TEST\App_Code \Query.asmx.vb: line 78

I also tried the load method in place of the loadxml .. can anyone
suggest some solution..

Thanks,
Dave

Aug 22 '06 #1
3 1201
I would like 2 give the error again . as the previous one is when i
write requestxml.load (query)...

This one is the error when i write requestxml.load xml(query)

System.Xml.XmlE xception: Data at the root level is invalid. Line 1,
position 1.
at System.Xml.XmlT extReaderImpl.T hrow(Exception e)
at System.Xml.XmlT extReaderImpl.T hrow(String res, String arg)
at System.Xml.XmlT extReaderImpl.T hrow(String res)
at System.Xml.XmlT extReaderImpl.P arseRootLevelWh itespace()
at System.Xml.XmlT extReaderImpl.P arseDocumentCon tent()
at System.Xml.XmlT extReaderImpl.R ead()
at System.Xml.XmlL oader.Load(XmlD ocument doc, XmlReader reader,
Boolean preserveWhitesp ace)
at System.Xml.XmlD ocument.Load(Xm lReader reader)
at System.Xml.XmlD ocument.LoadXml (String xml)
at ResearchPane.Qu eryProcessor.Qu ery(String queryXml) in
C:\Shared_folde r\GS5000RefLib\ App_Code\Query. asmx.vb:line 78

Thanks
dave






an*******@gmail .com wrote:
Hi Guyz..

I am working on the creating a web service and I have a code like
Public function test (byval query as string) as string

query.loadxml (queryxml)

-------------

I am getting error like

System.IO.FileN otFoundExceptio n: Could not find file
'C:\Shared_fold er\Test\query'.
at System.IO.__Err or.WinIOError(I nt32 errorCode, String
maybeFullPath)
at System.IO.FileS tream.Init(Stri ng path, FileMode mode, FileAccess
access, Int32 rights, Boolean useRights, FileShare share, Int32
bufferSize, FileOptions options, SECURITY_ATTRIB UTES secAttrs, String
msgPath, Boolean bFromProxy)
at System.IO.FileS tream..ctor(Str ing path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize)
at System.Xml.XmlD ownloadManager. GetStream(Uri uri, ICredentials
credentials)
at System.Xml.XmlU rlResolver.GetE ntity(Uri absoluteUri, String role,
Type ofObjectToRetur n)
at System.Xml.XmlT extReaderImpl.O penUrlDelegate( Object xmlResolver)
at System.Threadin g.CompressedSta ck.runTryCode(O bject userData)
at
System.Runtime. CompilerService s.RuntimeHelper s.ExecuteCodeWi thGuaranteedCle anup(TryCode
code, CleanupCode backoutCode, Object userData)
at System.Threadin g.CompressedSta ck.Run(Compress edStack
compressedStack , ContextCallback callback, Object state)
at System.Xml.XmlT extReaderImpl.O penUrl()
at System.Xml.XmlT extReaderImpl.R ead()
at System.Xml.XmlL oader.Load(XmlD ocument doc, XmlReader reader,
Boolean preserveWhitesp ace)
at System.Xml.XmlD ocument.Load(Xm lReader reader)
at System.Xml.XmlD ocument.Load(St ring filename)
at ResearchPane.Qu eryProcessor.Qu ery(String queryXml) in
C:\Shared_folde r\TEST\App_Code \Query.asmx.vb: line 78

I also tried the load method in place of the loadxml .. can anyone
suggest some solution..

Thanks,
Dave
Aug 22 '06 #2
The XmlDocument Load method has several overloads including to a file path
and to a Url, or from a stream.
The LoadXml method expects a string containing the string equivalent of a
complete Xml Document.

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"an*******@gmai l.com" wrote:
Hi Guyz..

I am working on the creating a web service and I have a code like
Public function test (byval query as string) as string

query.loadxml (queryxml)

-------------

I am getting error like
System.IO.FileN otFoundExceptio n: Could not find file
'C:\Shared_fold er\Test\query'.
at System.IO.__Err or.WinIOError(I nt32 errorCode, String
maybeFullPath)
at System.IO.FileS tream.Init(Stri ng path, FileMode mode, FileAccess
access, Int32 rights, Boolean useRights, FileShare share, Int32
bufferSize, FileOptions options, SECURITY_ATTRIB UTES secAttrs, String
msgPath, Boolean bFromProxy)
at System.IO.FileS tream..ctor(Str ing path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize)
at System.Xml.XmlD ownloadManager. GetStream(Uri uri, ICredentials
credentials)
at System.Xml.XmlU rlResolver.GetE ntity(Uri absoluteUri, String role,
Type ofObjectToRetur n)
at System.Xml.XmlT extReaderImpl.O penUrlDelegate( Object xmlResolver)
at System.Threadin g.CompressedSta ck.runTryCode(O bject userData)
at
System.Runtime. CompilerService s.RuntimeHelper s.ExecuteCodeWi thGuaranteedCle anup(TryCode
code, CleanupCode backoutCode, Object userData)
at System.Threadin g.CompressedSta ck.Run(Compress edStack
compressedStack , ContextCallback callback, Object state)
at System.Xml.XmlT extReaderImpl.O penUrl()
at System.Xml.XmlT extReaderImpl.R ead()
at System.Xml.XmlL oader.Load(XmlD ocument doc, XmlReader reader,
Boolean preserveWhitesp ace)
at System.Xml.XmlD ocument.Load(Xm lReader reader)
at System.Xml.XmlD ocument.Load(St ring filename)
at ResearchPane.Qu eryProcessor.Qu ery(String queryXml) in
C:\Shared_folde r\TEST\App_Code \Query.asmx.vb: line 78

I also tried the load method in place of the loadxml .. can anyone
suggest some solution..

Thanks,
Dave

Aug 22 '06 #3
Hi..,
Can you suggest me the more specific way to implement that. I am a bit
new to the XML .

Basically I am inserting a textbox value from the application into the
XML document.

I tried using both

requestxml.load xml(query) aswell as
requestxml.load (query)..

but coming errors..
Can anyone suggest me the exact phrase which i need to change..?

thanks ,
Dave

Peter wrote:
The XmlDocument Load method has several overloads including to a file path
and to a Url, or from a stream.
The LoadXml method expects a string containing the string equivalent of a
complete Xml Document.

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"an*******@gmai l.com" wrote:
Hi Guyz..

I am working on the creating a web service and I have a code like
Public function test (byval query as string) as string

query.loadxml (queryxml)

-------------

I am getting error like
System.IO.FileN otFoundExceptio n: Could not find file
'C:\Shared_fold er\Test\query'.
at System.IO.__Err or.WinIOError(I nt32 errorCode, String
maybeFullPath)
at System.IO.FileS tream.Init(Stri ng path, FileMode mode, FileAccess
access, Int32 rights, Boolean useRights, FileShare share, Int32
bufferSize, FileOptions options, SECURITY_ATTRIB UTES secAttrs, String
msgPath, Boolean bFromProxy)
at System.IO.FileS tream..ctor(Str ing path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize)
at System.Xml.XmlD ownloadManager. GetStream(Uri uri, ICredentials
credentials)
at System.Xml.XmlU rlResolver.GetE ntity(Uri absoluteUri, String role,
Type ofObjectToRetur n)
at System.Xml.XmlT extReaderImpl.O penUrlDelegate( Object xmlResolver)
at System.Threadin g.CompressedSta ck.runTryCode(O bject userData)
at
System.Runtime. CompilerService s.RuntimeHelper s.ExecuteCodeWi thGuaranteedCle anup(TryCode
code, CleanupCode backoutCode, Object userData)
at System.Threadin g.CompressedSta ck.Run(Compress edStack
compressedStack , ContextCallback callback, Object state)
at System.Xml.XmlT extReaderImpl.O penUrl()
at System.Xml.XmlT extReaderImpl.R ead()
at System.Xml.XmlL oader.Load(XmlD ocument doc, XmlReader reader,
Boolean preserveWhitesp ace)
at System.Xml.XmlD ocument.Load(Xm lReader reader)
at System.Xml.XmlD ocument.Load(St ring filename)
at ResearchPane.Qu eryProcessor.Qu ery(String queryXml) in
C:\Shared_folde r\TEST\App_Code \Query.asmx.vb: line 78

I also tried the load method in place of the loadxml .. can anyone
suggest some solution..

Thanks,
Dave
Aug 22 '06 #4

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

Similar topics

4
3164
by: Niel | last post by:
Hello friends, I think this issue has been posted before but i have not been able to get any solution that is why i am posting it again in detail as to what exactly is happneing in my case. Hope i will get solution this time. Any help would be appreciated. Now we are building dynamic websites. The Operating system that we have is Windows 2000(not Advanced server not Profession), it just says
4
2189
by: bob garbados | last post by:
I'm new to web services and I'm trying to interface with a payment gateway for an online store. I'm trying to do this without Visual Studio and I'm stuck... I created my proxy class from the command line with the following statement: wsdl https://webservices.innovativegateway.com/igspaymentservice/igspaymentservice.asmx?WSDL /l:vb /n:ECommerce.PaymentGateway /o:ECommerce.PaymentGateway.vb I then compiled it into a dll along with some...
1
6471
by: rmk | last post by:
How can I get the 2000 and 2005 versions of SQL Server Reporting Services both working on my development laptop ????? I have ASP.NET 1.1 and 2.0 installed on my laptop. I have Visual Studio 2003 and 2005 installed on my laptop. I have my default website configured for ASP.NET 2.0. I have the developer edition of SQL Server 2000 installed on my laptop as
0
2874
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi all, my problem is about services. I try comment you all steps for my issue: My development environment: Windows XP SP2
0
5996
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi all, my problem is about services. I try comment you all steps for my issue: My development environment: Windows XP SP2
0
8471
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8388
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8817
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8593
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8663
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7423
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4396
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2804
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2046
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.