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 2006

Tip: Looking for answers? Try searching our database.

Web Service on custom port

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter - 22 May 2006 01:08 GMT
Hi,

I am calling a web-service hosted on a BEA WebLogic webserver which uses
custom port 8100 from .NET 2.0 web-service code.  I am having major problems
just calling their WebMethods.  I am sure everything is set up OK on my side
but they say the HTTP header is malformed because the port (8100) does not
appear in the HTTP header in the request I am generating using VS 2005.  It
seems that if I try to modify the request.Headers["Host"] header directly, I
am told I am not allowed to.  Firstly, is there a free tool that will allow
me to see the raw HTTP request I am 'sending' to this webserver so I can see
exactly what is happening.  Also, are there any specific SOAP headers or any
thing extra I need to do to make the call on a custom port?

Thanks,

Peter
Deepak Shenoy - 22 May 2006 06:24 GMT
> Hi,
>
[quoted text clipped - 8 lines]
> see the raw HTTP request I am 'sending' to this webserver so I can
> see exactly what is happening.  

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/h
tml/frlrfsystemwebservicesprotocolssoapextensionclasstopic.asp

(URL Wraps. Or use http://tinyurl.com/empf)

Just dress your method with a [Trace( FileName="<enter filename
here">)] attribute and the request + response will be saved to the
file. This applies only to the Request or Response XML, not the HTTP
headers.

Also check out www.fiddlertool.com (this works for browser based
requests but not for requests made through an application)

> Also, are there any specific SOAP
> headers or any thing extra I need to do to make the call on a custom
> port?

Not as far as I know. I think your connection should be made on that
port but nothing need change as far as the HTTP request contents are
concerned. But I may be wrong, do let me know if you get any further
after looking at the request.

Signature

Deepak Shenoy
http://shenoyatwork.blogspot.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.