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 / ASP.NET / Web Services / August 2007

Tip: Looking for answers? Try searching our database.

Web Service Pound sign encoding

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ethan Strauss - 09 Aug 2007 21:16 GMT
Hi,
   I am consuming a web service
(http://www.ncbi.nlm.nih.gov/entrez/eutils/soap/eutils.wsdl) using C#.Net 2
and in general it works just fine. But recently I have had trouble getting a
specific method to work whenever I put a pound sign ("#") in a query string.
When I added a backslash in front of the pound sign (@"\#"), it started
failing in more graceful fashion, making me think that there was a problem
with the way the pound sign was being transmitted and that the escaped
version was closer to correct, but it is still not quite right.
  Does anyone know how else I might try encoding a pound sign to make it
work?
Thanks!
Ethan

ps. This web service is very complex. I don't suggest you try it unless you
want to spend awhile working at it. There is some documentation at
http://www.ncbi.nlm.nih.gov/entrez/query/static/esoap_help.html and I am
trying to use eSearch methods with an active history....
John Saunders [MVP] - 10 Aug 2007 02:05 GMT
> Hi,
>    I am consuming a web service
[quoted text clipped - 15 lines]
> http://www.ncbi.nlm.nih.gov/entrez/query/static/esoap_help.html and I am
> trying to use eSearch methods with an active history....

How are you calling the web service? Are you using Add Web Reference?

There should be no problem with encoding if you are calling the web service
via the proxy generated by Add Web Reference.
Signature

John Saunders [MVP]

Ethan Strauss - 10 Aug 2007 14:42 GMT
Yep, I added the Web Reference.
Ethan

>> Hi,
>>    I am consuming a web service
[quoted text clipped - 20 lines]
> There should be no problem with encoding if you are calling the web
> service via the proxy generated by Add Web Reference.

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.