Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > C# Client (SoapHttpClientProtocol) and Secure Web Service

Reply
Thread Tools

C# Client (SoapHttpClientProtocol) and Secure Web Service

 
 
todd
Guest
Posts: n/a
 
      05-28-2004
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(Nam e="akTestSoap",
Namespace="http://tempuri.org/")]
public class akamaiTest :
System.Web.Services.Protocols.SoapHttpClientProtoc ol
{

public akamaiTest() : base()
{
this.Url = "https://ccuapi.akamai.com:443/soap/servlet/soap/purge";
}

[System.Web.Services.Protocols.SoapDocumentMethodAt tribute(
"http://tempuri.org/purgeRequest",
RequestNamespace="http://tempuri.org/",
ResponseNamespace="http://tempuri.org/",
Use=System.Web.Services.Description.SoapBindingUse .Literal,
ParameterStyle=System.Web.Services.Protocols.SoapP arameterStyle.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 ;
}
}
}
 
Reply With Quote
 
 
 
 
Lucien
Guest
Posts: n/a
 
      05-28-2004
You're probably missing client credentials (you didn't give the error but
that's my guess).

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


"todd" <> wrote in message
news: om...
> 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(Nam e="akTestSoap",
> Namespace="http://tempuri.org/")]
> public class akamaiTest :
> System.Web.Services.Protocols.SoapHttpClientProtoc ol
> {
>
> public akamaiTest() : base()
> {
> this.Url = "https://ccuapi.akamai.com:443/soap/servlet/soap/purge";
> }
>
> [System.Web.Services.Protocols.SoapDocumentMethodAt tribute(
> "http://tempuri.org/purgeRequest",
> RequestNamespace="http://tempuri.org/",
> ResponseNamespace="http://tempuri.org/",
> Use=System.Web.Services.Description.SoapBindingUse .Literal,
> ParameterStyle=System.Web.Services.Protocols.SoapP arameterStyle.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 ;
> }
> }
> }



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Secure your digital information assets with Secure Auditor. SecureWindows with Secure Auditor alannis.albert@googlemail.com Cisco 0 04-14-2008 06:53 AM
Secure your digital information assets with Secure Auditor SecureWindows with Secure Auditor alannis.albert@googlemail.com Cisco 0 04-14-2008 06:52 AM
Secure your digital information assets with Secure Auditor and alsoSecure Windows with Secure Auditor alannis.albert@googlemail.com Wireless Networking 0 04-14-2008 06:37 AM
Capturing a Client Cert and Passing it to a Secure Web Service hepsubah ASP .Net 2 08-28-2007 10:51 PM
Unable to Establish a Secure Channel from Windows Service to Web Service via HTTPS Rob ASP .Net Web Services 3 02-03-2006 07:16 AM



Advertisments