C# Client (SoapHttpClientProtocol) and Secure Web Service

T

todd

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 ;
}
}
}
 
L

Lucien

You're probably missing client credentials (you didn't give the error but
that's my guess).

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top