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 / January 2006

Tip: Looking for answers? Try searching our database.

Convert TCP SoapService to HTTP

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ian - 11 Jan 2006 15:59 GMT
Hi,

I have a SoapService running in an executable using TCP.  This works fine
but I would like to have the option of changing the communication protocol to
HTTP.

Can a SoapService running in an executable use the HTTP channel?  If so then
how can I get this to work?

Thanks in advance!
Ian
Pablo Cibraro - 11 Jan 2006 18:28 GMT
Hi Ian,
Yes, it can. You must configure it as a http handler.

<system.web>
   <httpHandlers>
     <add type="Your service type" path="MyService.ashx" verb="*" />
   </httpHandlers>
</system.web>

Your service will be listening for requests at the endpoint specified by the
attribute "path". For example, http://localhost/MyService.ashx

Regards,
Pablo Cibraro
http://weblogs.asp.net/cibrax
http://www.lagash.com

> Hi,
>
[quoted text clipped - 9 lines]
> Thanks in advance!
> Ian
Ian - 12 Jan 2006 12:00 GMT
Hi Pablo,

Thanks for your reply!

I have added the httpHandler config to the exe's app.config file but am
still getting the following error: -

"The remote server returned an error: (500) Internal Server Error."

My httpHandler entry looks like this: -
<httpHandlers>
<add verb="*" path="http://localhost/HttpMessagingService/receiver.ashx"
type="StockTraderTcpSample.StockTraderRequestReceiver, StockTraderService" />
</httpHandlers>

Any ideas?

Thanks again!
Ian

> Hi Ian,
> Yes, it can. You must configure it as a http handler.
[quoted text clipped - 26 lines]
> > Thanks in advance!
> > Ian
Pablo Cibraro - 12 Jan 2006 13:26 GMT
Hi Ian,
Are you able to see any error message in the eventlog ?. Just in case, try
to browse to that Url using IE since you get a more detailed description
some times.

Regards,
Pablo Cibraro
http://weblogs.asp.net/cibrax
http://www.lagash.com

> Hi Pablo,
>
[quoted text clipped - 50 lines]
>> > Thanks in advance!
>> > Ian
Ian - 12 Jan 2006 15:01 GMT
Hi Pablo,

Thanks again, I am making progress at last!

I tried to navigate to the endpoint using IE and it became apparent that I
hadn't added the ASPNET user to the folder's permissions.  

However, I now get a "File or assembly name xxx, or one of its dependencies,
was not found" error.  The assembly specified in the path attribute of the
HTTPHandler is present but is not being located.  I am assuming that this is
again a permissions issue???

Again, any ideas?

Thanks!!
Ian

> Hi Ian,
> Are you able to see any error message in the eventlog ?. Just in case, try
[quoted text clipped - 60 lines]
> >> > Thanks in advance!
> >> > Ian
Pablo Cibraro - 12 Jan 2006 18:22 GMT
Hi Ian,
Make sure that all dependencies of your assembly are in the Bin folder of
the ASP.NET application.
I think ASP.NET can't load your assembly because it can't find one of the
dependencies. ( Dependencies = assemblies that your  application uses )
You can use the tool FUSLOGVW.exe to see why ASP.NET can't load your
assembly.

Regards,
Pablo Cibraro
http://weblogs.asp.net/cibrax
http://www.lagash.com

> Hi Pablo,
>
[quoted text clipped - 84 lines]
>> >> > Thanks in advance!
>> >> > Ian

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.