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

Tip: Looking for answers? Try searching our database.

WS-Addressing - A bug in WSE2?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pete Wood - 26 May 2005 18:09 GMT
Hi All...

I hope someone can help me with what I thought would be a trivial exercise!  
I'm currently playing with the WS-Addressing implementation in WSE2 and have
some trouble with the FAULTTO element.

The target web service is quite simply a HelloWorld example,  with the WSE2
extensions turned on.  

The client code I've attached below.

            localhost.Service1Wse mywebservice = new localhost.Service1Wse();
            SoapContext myRequest = mywebservice.RequestSoapContext;
            EndpointReference FAULTTO = new EndpointReference(new Address(new
Uri("http://www.faultto.org")));
            myRequest.Addressing.FaultTo.Address       = FAULTTO.Address;
            mywebservice.HelloWorld();

I don't understand,  but I get the following error when I try and run this
code.

System.NullReferenceException: Object reference not set to an instance of an
object. at wsaddressingclient..  ....at the line
"myRequest.Addressing.FaultTo.Address  = FAULTTO.Address;"

The code works fine if I try to add the FROM or REPLYTO to the request,  but
for some reason doesn't work if I try and change the FAULTTO code.

Is this a rookie error? Thanks in advance!...

Signature

Pete Wood
Visit us at www.webserviceshelp.org

Pete Wood - 31 May 2005 22:23 GMT
Fixed it - you need to instantiate a FAULTO and REPLYTO object :-)

Signature

Pete Wood
Contact me at  http://www.webserviceshelp.org  for more help
_________________________________________________________

> Hi All...
>
[quoted text clipped - 30 lines]
>
> Is this a rookie error? Thanks in advance!...

Rate this thread:







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.