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