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

Tip: Looking for answers? Try searching our database.

BUG in Microsoft.Web.Services2.WebServicesClientProtocol WSE 2.0 S

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Thomas S. Trias - 01 Mar 2005 17:57 GMT
If you specify a Destination with both an Address and a Via, the Address is
used as both the Url property (transport) AND the "To" SOAP header.  The Via
portion is effectively ignored, making it impossible to connect to web
services with SoapActor attributes or behind NAT / PAT.

I can provide a complete test case upon request, although the issue is quie
easy to replicate.

Thanks,

Thomas S. Trias
Senior Developer
Afni Insurance Services
http://www.afniinc.com/
Thomas S. Trias - 01 Mar 2005 17:59 GMT
FYI WSE 2.0 SP2
Dilip Krishnan - 02 Mar 2005 03:25 GMT
Hello Thomas,
   You would need to set the Via in the request soap context theres tons
of examples [0] of people having it working

[0] - http://www.softwaremaker.net/blog/PermaLink,guid,78f77920-5a90-42bf-a9a7-a4bf0dc
f9215.aspx


HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com

> If you specify a Destination with both an Address and a Via, the
> Address is used as both the Url property (transport) AND the "To" SOAP
[quoted text clipped - 11 lines]
> Afni Insurance Services
> http://www.afniinc.com/
Thomas S. Trias - 02 Mar 2005 15:35 GMT
Is this behavior by design?  What is the purpose of the Destination property
on the WebServicesClientProtocol class, if not to set the WS-Addressing
information and transport?

Also, most of the addressing samples I've seen use soap.tcp based services,
and don't have concrete examples of proxies based upon
Microsoft.Web.Services2.WebServicesClientProtocol.

Thomas S. Trias
Senior Developer
Afni Insurance Services
http://www.afniinc.com/

> Hello Thomas,
>     You would need to set the Via in the request soap context theres tons
[quoted text clipped - 24 lines]
> > Afni Insurance Services
> > http://www.afniinc.com/
Thomas S. Trias - 02 Mar 2005 16:25 GMT
Actually, the Destination property does work.  I am an idiot, and I am not
ashamed to admit it.

I had setup the service to use an SCT:

Dim oClient As SecurityContextTokenServiceClient = _
 New SecurityContextTokenServiceClient(New EndpointReference(New
Uri(MyBase.URL)))

I changed this to:

Dim oClient As SecurityContextTokenServiceClient = _
 New SecurityContextTokenServiceClient(MyBase.Destination)

And now everything works fine.

Sorry for letting my frustration get the better of me.

Thomas S. Trias
Senior Developer
Afni Insurance Services
http://www.afniinc.com/

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.