DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 9 Aug 2007 15:16:26 -0500,    posted on: microsoft.public.dotnet.framework.aspnet.webservices        back       

Thread Index
  1    Ethan Strauss ethan dot strauss at Promega dot com
          2    John Saunders [MVP] john.saunders at trizetto.com
                 3    Ethan Strauss ethan dot strauss at Promega dot com


Web Service Pound sign encoding   
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....
Date:Thu, 9 Aug 2007 15:16:26 -0500   Author:  

Re: Web Service Pound sign encoding   
"Ethan Strauss" <ethan dot strauss at Promega dot com> wrote in message 
news:OTL6sIs2HHA.1484@TK2MSFTNGP06.phx.gbl...

> 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....


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.
-- 
John Saunders [MVP]
Date:Thu, 9 Aug 2007 21:05:07 -0400   Author:  

Re: Web Service Pound sign encoding   
Yep, I added the Web Reference.
Ethan

"John Saunders [MVP]" <john.saunders at trizetto.com> wrote in message 
news:ODcr%23pu2HHA.1188@TK2MSFTNGP04.phx.gbl...

> "Ethan Strauss" <ethan dot strauss at Promega dot com> wrote in message 
> news:OTL6sIs2HHA.1484@TK2MSFTNGP06.phx.gbl...
>> 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....
>
> 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.
> -- 
> John Saunders [MVP]
> 
Date:Fri, 10 Aug 2007 08:42:23 -0500   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us