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 2004

Tip: Looking for answers? Try searching our database.

C# Client (SoapHttpClientProtocol) and Secure Web Service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
todd - 28 May 2004 19:51 GMT
I am having trouble coding this simple soap client to submit a soap
package over https to the desitnation URL.  What do I need to do in my
class in order to support client -> server soap exchange over secure
sockets?

Shouldn't this class SoapHttpClientProtocol handle the SSL stuff for
me?  Does it?

What is supposed to be a simple test of the akamai purge api (there
end is written in java I believe) has turned into a four day affair
for me.  Please help, any and all appreciated.  Below is my
testClass...

    [System.Web.Services.WebServiceBindingAttribute(Name="akTestSoap",
Namespace="http://tempuri.org/")]
    public class akamaiTest :
System.Web.Services.Protocols.SoapHttpClientProtocol
    {
   
        public akamaiTest() : base()
        {
            this.Url = "https://ccuapi.akamai.com:443/soap/servlet/soap/purge";
        }
   
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute(
            "http://tempuri.org/purgeRequest",
            RequestNamespace="http://tempuri.org/",
            ResponseNamespace="http://tempuri.org/",
            Use=System.Web.Services.Description.SoapBindingUse.Literal,
            ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string purgeRequest(string name, string pwd, string dns,
string[] options, string[] uris)
        {
            try
            {
                object[] results = this.Invoke("purgeRequest", new object[]
{name,pwd,dns,options,uris});
                return ((string)(results[0]));
            }
            catch(Exception e)
            {
                return e.Message ;
            }
        }
    }
Lucien - 28 May 2004 21:26 GMT
You're probably missing client credentials (you didn't give the error but
that's my guess).

   myProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;

> I am having trouble coding this simple soap client to submit a soap
> package over https to the desitnation URL.  What do I need to do in my
[quoted text clipped - 41 lines]
> }
> }

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.