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

Tip: Looking for answers? Try searching our database.

Transferring the HTTP Error Codes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Anbu - 28 Sep 2006 13:43 GMT
Hi All,

I have 3 web services. First service sends msg to second service and
second one sends the msg to the third service.

If the third service returns any error, second service creates an
soapenvelope and sends it back to the first service.

But when the first service receives the msg, it considers the reply
(with fault code) as Service exception.

How can i transfer the same message from the third service to the first
application? I'm using WSE 3.0 & VS 2005

Any help appreciated

Thanks,
Gaurav Vaish (www.EduJiniOnline.com) - 28 Sep 2006 15:08 GMT
Are you using WS-Addressing (the successor of WS-Routing)?

Or are you doing it directly...?
Trace the output and see the envelope generated by your middle-man.

Signature

Happy Hacking,
Gaurav Vaish | http://www.mastergaurav.com
http://www.edujinionline.com
http://articles.edujinionline.com/webservices
-------------------

> Hi All,
>
[quoted text clipped - 13 lines]
>
> Thanks,
Anbu - 29 Sep 2006 09:38 GMT
Gaurav,
Thanks for your reply.

The scenario would be a plain, in which I'm sending a request to
another web service which has to talk to another web service.

The flow is like this, WS1->WS2->WS3->WS4 and if the WS4 returns any
error, it has to be returned to WS1 through the same path. For sending
the messages I'm using SoapEnvelopes (part of WSE 3.0 requirements)

The problem is WS1 and WS4 are not WSE 3.0 services, but other two are.
The interation between WS2 and WS3 are through WSE 3.0 (here i traced
the output files. Error messages are forwarded as SoapFault).

But when i transmit the same message from WS2 to WS1 (by soapenvelope
or throwing exception) causes HttpError 500. Though it internally holds
the SoapEnvelope in the WebException's Response Object, I'm interested
in Http Header (which holds the HTTP Status Codes).

WS1 & WS4 may not be .NET web services or clients.

Thanks,

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.