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