H
hanz
Hi I somehow can't access my web service thru SSL. I tried
all things even including certificates in Local Computers
(even in Imediate trust certificate and rebooting) but
failed. This error message below keeps on appearing. I
also found out that the message successfully went to the
web service as it returned an exception from there however
its the response part which is the failed part.
SoapMapper:Restoring data into SoapMapper ProcessResult
failed HRESULT=0x80070057: The parameter is incorrect. -
Client:Unspecified client error. HRESULT=0x80070057: The
parameter is incorrect
Code:
<%
Dim inXML
inXML = "<process>" & _
"<eaccess>" & _
"<signInName>[email protected]</signInName>" & _
"<password>lkjhgf</password>" & _
"</eaccess>" & _
"<products>" & _
"<product id=""3""><productName>Wood Furniture - LASAM
FURNITURE PRODUCERS ASSOCIA</productName>" & _
"<description>Wood</description><quantity>1</quantity><unit
Price>100</unitPrice></product></products>" & _
"</process>"
On Error Resume Next
Set soapclient = CreateObject("MSSOAP.SoapClient30")
Call soapclient.MSSoapInit(Server.MapPath
("payplus.wsdl"), "Payplus", "PayplusSoap")
'Call soapclient.MSSoapInit
("https://secure.yehey.com/payplus/services/payplus.asmx?
wsdl", "Payplus", "PayplusSoap")
'set SoapClient3.ConnectorProperty = New
HttpConnector30
'if (SoapClient3.ConnectorProperty is nothing) then
Response.Write("asdfsdaf")
'SoapClient3.ConnectorProperty("EndPointURL")
="https://secure.yehey.com/payplus/services/payplus.asmx?
wsdl"
'SoapClient3.ConnectorProperty
("SSLClientCertificateName") = "LOCAL_MACHINE\Trusted Root
Cetificate Authorities\Certificates\secure.yehey.com"
'SoapClient3.ConnectorProperty("UseSSL") = True
'SoapClient3.ConnectorProperty("SoapAction") = "Post"
if err <> 0 then
if (SoapClient3.ConnectorProperty is nothing) then
Response.Write("asdfsdaf")
Response.Write(err.description)
Response.Write("<br> ----- err.description ------- <br>")
end if
Response.Write(soapclient.Process(inXML))
if err <> 0 then
Response.Write(err.description)
Response.Write("asgasdf")
Response.Write("faultcode=" + SoapClient3.faultcode)
Response.Write("faultstring=" + SoapClient3.faultstring)
Response.Write("faultactor=" + SoapClient3.faultactor)
Response.Write("detail=" + SoapClient3.detail)
end if
%>
My wsdl:
<?xml version="1.0" encoding="utf-8"?>
<definitions
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:s0="http://secure.yehey.com/2003/01/PayPlus"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="http://secure.yehey.com/2003/01/PayPlus"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<types>
<s:schema elementFormDefault="qualified"
targetNamespace="http://secure.yehey.com/2003/01/PayPlus">
<s:element name="Process">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="inpData" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="ProcessResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="ProcessResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetStatus">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="inxml" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetStatusResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="GetStatusResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetRedirectURL">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="inpURL" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetRedirectURLResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="GetRedirectURLResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="string" nillable="true"
type="s:string" />
</s:schema>
</types>
<message name="ProcessSoapIn">
<part name="parameters" element="s0rocess" />
</message>
<message name="ProcessSoapOut">
<part name="parameters" element="s0rocessResponse" />
</message>
<message name="GetStatusSoapIn">
<part name="parameters" element="s0:GetStatus" />
</message>
<message name="GetStatusSoapOut">
<part name="parameters"
element="s0:GetStatusResponse" />
</message>
<message name="GetRedirectURLSoapIn">
<part name="parameters" element="s0:GetRedirectURL" />
</message>
<message name="GetRedirectURLSoapOut">
<part name="parameters"
element="s0:GetRedirectURLResponse" />
</message>
<message name="ProcessHttpGetIn">
<part name="inpData" type="s:string" />
</message>
<message name="ProcessHttpGetOut">
<part name="Body" element="s0:string" />
</message>
<message name="GetStatusHttpGetIn">
<part name="inxml" type="s:string" />
</message>
<message name="GetStatusHttpGetOut">
<part name="Body" element="s0:string" />
</message>
<message name="GetRedirectURLHttpGetIn">
<part name="inpURL" type="s:string" />
</message>
<message name="GetRedirectURLHttpGetOut">
<part name="Body" element="s0:string" />
</message>
<message name="ProcessHttpPostIn">
<part name="inpData" type="s:string" />
</message>
<message name="ProcessHttpPostOut">
<part name="Body" element="s0:string" />
</message>
<message name="GetStatusHttpPostIn">
<part name="inxml" type="s:string" />
</message>
<message name="GetStatusHttpPostOut">
<part name="Body" element="s0:string" />
</message>
<message name="GetRedirectURLHttpPostIn">
<part name="inpURL" type="s:string" />
</message>
<message name="GetRedirectURLHttpPostOut">
<part name="Body" element="s0:string" />
</message>
<portType name="PayplusSoap">
<operation name="Process">
<input message="s0rocessSoapIn" />
<output message="s0rocessSoapOut" />
</operation>
<operation name="GetStatus">
<input message="s0:GetStatusSoapIn" />
<output message="s0:GetStatusSoapOut" />
</operation>
<operation name="GetRedirectURL">
<input message="s0:GetRedirectURLSoapIn" />
<output message="s0:GetRedirectURLSoapOut" />
</operation>
</portType>
<portType name="PayplusHttpGet">
<operation name="Process">
<input message="s0rocessHttpGetIn" />
<output message="s0rocessHttpGetOut" />
</operation>
<operation name="GetStatus">
<input message="s0:GetStatusHttpGetIn" />
<output message="s0:GetStatusHttpGetOut" />
</operation>
<operation name="GetRedirectURL">
<input message="s0:GetRedirectURLHttpGetIn" />
<output message="s0:GetRedirectURLHttpGetOut" />
</operation>
</portType>
<portType name="PayplusHttpPost">
<operation name="Process">
<input message="s0rocessHttpPostIn" />
<output message="s0rocessHttpPostOut" />
</operation>
<operation name="GetStatus">
<input message="s0:GetStatusHttpPostIn" />
<output message="s0:GetStatusHttpPostOut" />
</operation>
<operation name="GetRedirectURL">
<input message="s0:GetRedirectURLHttpPostIn" />
<output message="s0:GetRedirectURLHttpPostOut" />
</operation>
</portType>
<binding name="PayplusSoap" type="s0ayplusSoap">
<soap:binding
transport="http://schemas.xmlsoap.org/soap/http"
style="document" />
<operation name="Process">
<soapperation
soapAction="http://secure.yehey.com/2003/01/PayPlus/Process
" style="document" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
<operation name="GetStatus">
<soapperation
soapAction="http://secure.yehey.com/2003/01/PayPlus/GetStat
us" style="document" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
<operation name="GetRedirectURL">
<soapperation
soapAction="http://secure.yehey.com/2003/01/PayPlus/GetRedi
rectURL" style="document" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
</binding>
<binding name="PayplusHttpGet" type="s0ayplusHttpGet">
<http:binding verb="GET" />
<operation name="Process">
<httpperation location="/Process" />
<input>
<http:urlEncoded />
</input>
<output>
<mime:mimeXml part="Body" />
</output>
</operation>
<operation name="GetStatus">
<httpperation location="/GetStatus" />
<input>
<http:urlEncoded />
</input>
<output>
<mime:mimeXml part="Body" />
</output>
</operation>
<operation name="GetRedirectURL">
<httpperation location="/GetRedirectURL" />
<input>
<http:urlEncoded />
</input>
<output>
<mime:mimeXml part="Body" />
</output>
</operation>
</binding>
<binding name="PayplusHttpPost"
type="s0ayplusHttpPost">
<http:binding verb="POST" />
<operation name="Process">
<httpperation location="/Process" />
<input>
<mime:content type="application/x-www-form-
urlencoded" />
</input>
<output>
<mime:mimeXml part="Body" />
</output>
</operation>
<operation name="GetStatus">
<httpperation location="/GetStatus" />
<input>
<mime:content type="application/x-www-form-
urlencoded" />
</input>
<output>
<mime:mimeXml part="Body" />
</output>
</operation>
<operation name="GetRedirectURL">
<httpperation location="/GetRedirectURL" />
<input>
<mime:content type="application/x-www-form-
urlencoded" />
</input>
<output>
<mime:mimeXml part="Body" />
</output>
</operation>
</binding>
<service name="Payplus">
<port name="PayplusSoap" binding="s0ayplusSoap">
<soap:address
location="https://secure.yehey.com/payplus/services/payplus
..asmx" />
</port>
<port name="PayplusHttpGet"
binding="s0ayplusHttpGet">
<http:address
location="https://secure.yehey.com/payplus/services/payplus
..asmx" />
</port>
<port name="PayplusHttpPost"
binding="s0ayplusHttpPost">
<http:address
location="https://secure.yehey.com/payplus/services/payplus
..asmx" />
</port>
</service>
</definitions>
<!-- This document saved from
https://secure.yehey.com/payplus/services/payplus.asmx?
WSDL -->
all things even including certificates in Local Computers
(even in Imediate trust certificate and rebooting) but
failed. This error message below keeps on appearing. I
also found out that the message successfully went to the
web service as it returned an exception from there however
its the response part which is the failed part.
SoapMapper:Restoring data into SoapMapper ProcessResult
failed HRESULT=0x80070057: The parameter is incorrect. -
Client:Unspecified client error. HRESULT=0x80070057: The
parameter is incorrect
Code:
<%
Dim inXML
inXML = "<process>" & _
"<eaccess>" & _
"<signInName>[email protected]</signInName>" & _
"<password>lkjhgf</password>" & _
"</eaccess>" & _
"<products>" & _
"<product id=""3""><productName>Wood Furniture - LASAM
FURNITURE PRODUCERS ASSOCIA</productName>" & _
"<description>Wood</description><quantity>1</quantity><unit
Price>100</unitPrice></product></products>" & _
"</process>"
On Error Resume Next
Set soapclient = CreateObject("MSSOAP.SoapClient30")
Call soapclient.MSSoapInit(Server.MapPath
("payplus.wsdl"), "Payplus", "PayplusSoap")
'Call soapclient.MSSoapInit
("https://secure.yehey.com/payplus/services/payplus.asmx?
wsdl", "Payplus", "PayplusSoap")
'set SoapClient3.ConnectorProperty = New
HttpConnector30
'if (SoapClient3.ConnectorProperty is nothing) then
Response.Write("asdfsdaf")
'SoapClient3.ConnectorProperty("EndPointURL")
="https://secure.yehey.com/payplus/services/payplus.asmx?
wsdl"
'SoapClient3.ConnectorProperty
("SSLClientCertificateName") = "LOCAL_MACHINE\Trusted Root
Cetificate Authorities\Certificates\secure.yehey.com"
'SoapClient3.ConnectorProperty("UseSSL") = True
'SoapClient3.ConnectorProperty("SoapAction") = "Post"
if err <> 0 then
if (SoapClient3.ConnectorProperty is nothing) then
Response.Write("asdfsdaf")
Response.Write(err.description)
Response.Write("<br> ----- err.description ------- <br>")
end if
Response.Write(soapclient.Process(inXML))
if err <> 0 then
Response.Write(err.description)
Response.Write("asgasdf")
Response.Write("faultcode=" + SoapClient3.faultcode)
Response.Write("faultstring=" + SoapClient3.faultstring)
Response.Write("faultactor=" + SoapClient3.faultactor)
Response.Write("detail=" + SoapClient3.detail)
end if
%>
My wsdl:
<?xml version="1.0" encoding="utf-8"?>
<definitions
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:s0="http://secure.yehey.com/2003/01/PayPlus"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="http://secure.yehey.com/2003/01/PayPlus"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<types>
<s:schema elementFormDefault="qualified"
targetNamespace="http://secure.yehey.com/2003/01/PayPlus">
<s:element name="Process">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="inpData" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="ProcessResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="ProcessResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetStatus">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="inxml" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetStatusResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="GetStatusResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetRedirectURL">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="inpURL" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetRedirectURLResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="GetRedirectURLResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="string" nillable="true"
type="s:string" />
</s:schema>
</types>
<message name="ProcessSoapIn">
<part name="parameters" element="s0rocess" />
</message>
<message name="ProcessSoapOut">
<part name="parameters" element="s0rocessResponse" />
</message>
<message name="GetStatusSoapIn">
<part name="parameters" element="s0:GetStatus" />
</message>
<message name="GetStatusSoapOut">
<part name="parameters"
element="s0:GetStatusResponse" />
</message>
<message name="GetRedirectURLSoapIn">
<part name="parameters" element="s0:GetRedirectURL" />
</message>
<message name="GetRedirectURLSoapOut">
<part name="parameters"
element="s0:GetRedirectURLResponse" />
</message>
<message name="ProcessHttpGetIn">
<part name="inpData" type="s:string" />
</message>
<message name="ProcessHttpGetOut">
<part name="Body" element="s0:string" />
</message>
<message name="GetStatusHttpGetIn">
<part name="inxml" type="s:string" />
</message>
<message name="GetStatusHttpGetOut">
<part name="Body" element="s0:string" />
</message>
<message name="GetRedirectURLHttpGetIn">
<part name="inpURL" type="s:string" />
</message>
<message name="GetRedirectURLHttpGetOut">
<part name="Body" element="s0:string" />
</message>
<message name="ProcessHttpPostIn">
<part name="inpData" type="s:string" />
</message>
<message name="ProcessHttpPostOut">
<part name="Body" element="s0:string" />
</message>
<message name="GetStatusHttpPostIn">
<part name="inxml" type="s:string" />
</message>
<message name="GetStatusHttpPostOut">
<part name="Body" element="s0:string" />
</message>
<message name="GetRedirectURLHttpPostIn">
<part name="inpURL" type="s:string" />
</message>
<message name="GetRedirectURLHttpPostOut">
<part name="Body" element="s0:string" />
</message>
<portType name="PayplusSoap">
<operation name="Process">
<input message="s0rocessSoapIn" />
<output message="s0rocessSoapOut" />
</operation>
<operation name="GetStatus">
<input message="s0:GetStatusSoapIn" />
<output message="s0:GetStatusSoapOut" />
</operation>
<operation name="GetRedirectURL">
<input message="s0:GetRedirectURLSoapIn" />
<output message="s0:GetRedirectURLSoapOut" />
</operation>
</portType>
<portType name="PayplusHttpGet">
<operation name="Process">
<input message="s0rocessHttpGetIn" />
<output message="s0rocessHttpGetOut" />
</operation>
<operation name="GetStatus">
<input message="s0:GetStatusHttpGetIn" />
<output message="s0:GetStatusHttpGetOut" />
</operation>
<operation name="GetRedirectURL">
<input message="s0:GetRedirectURLHttpGetIn" />
<output message="s0:GetRedirectURLHttpGetOut" />
</operation>
</portType>
<portType name="PayplusHttpPost">
<operation name="Process">
<input message="s0rocessHttpPostIn" />
<output message="s0rocessHttpPostOut" />
</operation>
<operation name="GetStatus">
<input message="s0:GetStatusHttpPostIn" />
<output message="s0:GetStatusHttpPostOut" />
</operation>
<operation name="GetRedirectURL">
<input message="s0:GetRedirectURLHttpPostIn" />
<output message="s0:GetRedirectURLHttpPostOut" />
</operation>
</portType>
<binding name="PayplusSoap" type="s0ayplusSoap">
<soap:binding
transport="http://schemas.xmlsoap.org/soap/http"
style="document" />
<operation name="Process">
<soapperation
soapAction="http://secure.yehey.com/2003/01/PayPlus/Process
" style="document" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
<operation name="GetStatus">
<soapperation
soapAction="http://secure.yehey.com/2003/01/PayPlus/GetStat
us" style="document" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
<operation name="GetRedirectURL">
<soapperation
soapAction="http://secure.yehey.com/2003/01/PayPlus/GetRedi
rectURL" style="document" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
</binding>
<binding name="PayplusHttpGet" type="s0ayplusHttpGet">
<http:binding verb="GET" />
<operation name="Process">
<httpperation location="/Process" />
<input>
<http:urlEncoded />
</input>
<output>
<mime:mimeXml part="Body" />
</output>
</operation>
<operation name="GetStatus">
<httpperation location="/GetStatus" />
<input>
<http:urlEncoded />
</input>
<output>
<mime:mimeXml part="Body" />
</output>
</operation>
<operation name="GetRedirectURL">
<httpperation location="/GetRedirectURL" />
<input>
<http:urlEncoded />
</input>
<output>
<mime:mimeXml part="Body" />
</output>
</operation>
</binding>
<binding name="PayplusHttpPost"
type="s0ayplusHttpPost">
<http:binding verb="POST" />
<operation name="Process">
<httpperation location="/Process" />
<input>
<mime:content type="application/x-www-form-
urlencoded" />
</input>
<output>
<mime:mimeXml part="Body" />
</output>
</operation>
<operation name="GetStatus">
<httpperation location="/GetStatus" />
<input>
<mime:content type="application/x-www-form-
urlencoded" />
</input>
<output>
<mime:mimeXml part="Body" />
</output>
</operation>
<operation name="GetRedirectURL">
<httpperation location="/GetRedirectURL" />
<input>
<mime:content type="application/x-www-form-
urlencoded" />
</input>
<output>
<mime:mimeXml part="Body" />
</output>
</operation>
</binding>
<service name="Payplus">
<port name="PayplusSoap" binding="s0ayplusSoap">
<soap:address
location="https://secure.yehey.com/payplus/services/payplus
..asmx" />
</port>
<port name="PayplusHttpGet"
binding="s0ayplusHttpGet">
<http:address
location="https://secure.yehey.com/payplus/services/payplus
..asmx" />
</port>
<port name="PayplusHttpPost"
binding="s0ayplusHttpPost">
<http:address
location="https://secure.yehey.com/payplus/services/payplus
..asmx" />
</port>
</service>
</definitions>
<!-- This document saved from
https://secure.yehey.com/payplus/services/payplus.asmx?
WSDL -->