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 / November 2005

Tip: Looking for answers? Try searching our database.

Object re-use/persistence with http SoapService

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Glover - 09 Nov 2005 19:40 GMT
Helpful person,

I have a problem.  Rather, I have several problems.  The foremost problem is
that I would like to instantiate my SoapService derived class and use the
instantiated object to listen for calls on Http port 80.  

I thought I was heading in the right direction when I noticed the
SoapReceivers.Add( ) method.  Unfortunately, every conceivable way of calling
the method fails.  First I tried SoapReceivers.Add( EndpointReference, Object
) -- which I can only assume is the equivalent of calling SoapReceivers.Add(
EndpointReference, Object, false ).  The method fails with a "WSE802:
Unsupported SoapChannelCapabilities Flags" exception.  

I figure this is because I'm running IIS and so IIS is already listening on
port 80 meaning I'll have to have a passive listener.  So I try
SoapReceivers.Add( EndpointReference, Object, true ).  This fails with a
"WSE2129: Can only request a response input channel" exception.

Just to rule out every possible combination and because I was frustrated, I
tried SoapReceivers.Add( EndpointReference, Object, false ) and all possible
combinations of the call with a Type instead of Object -- which would defeat
the purpose anyway.

I've tried with both Windows XP and Windows Server 2003 (as I thought there
might be a difference due changes in the way IIS 5.1 and 6.0 work) but all
result in the same exceptions.  Windows Server 2003 did "think" quite a bit
longer before throwing the exception.  Can anybody point me in the right
direction here?  

Thanks,
John Glover
Nathan Anderson [MSFT] - 11 Nov 2005 18:47 GMT
To host a SoapService in IIS, you'll need to create a vdir and add something
like the following to the web.config:

<system.web>
   ....
   <httpHandlers>
       <add verb="*" path="SomeName.ashx" type="MyService, MyAssembly" />
       ....
   </httpHandlers>
   ....
</system.web>

You can also look at the sample installed here with WSE 3.0:

samples\CS\QuickStart\Messaging\HttpSyncStockService

Hope this helps.

> Helpful person,
>
[quoted text clipped - 27 lines]
> Thanks,
> John Glover
John Glover - 16 Nov 2005 18:45 GMT
After some searching, I found a custom http transport written by Aaron
Skonnard (http://pluralsight.com/aaron/) which, when correctly configured in
the app.config, allowed me to at least add the receiver.  

All was well for about an hour as I set forth knowing I had found my answer;
then I tried to send a message from the the application using a SoapClient
(if you're keeping score, I have a SoapService and a SoapClient running in
the same application which are talking to a SoapService and a SoapClient
running in another application in order to send messages from either side).  
When I made this attempt, my application tried to use Aaron's
HttpSysOutputChannel to send the request using the Send method.  The problem
is that Aaron's send method expects to send only responses as it is intended
to be used by a the service and not the client.

Now my problem is that I don't know how to send a message.  Is there anyone
out there who can point me in the right direction?

Thanks,
John Glover

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.