ASP web service with ssl in soap toolkit 3 problem

Discussion in 'ASP .Net Web Services' started by hanz, Apr 27, 2005.

  1. hanz

    hanz Guest

    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></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="s0:process" />
    </message>
    <message name="ProcessSoapOut">
    <part name="parameters" element="s0:processResponse" />
    </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="s0:processSoapIn" />
    <output message="s0:processSoapOut" />
    </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="s0:processHttpGetIn" />
    <output message="s0:processHttpGetOut" />
    </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="s0:processHttpPostIn" />
    <output message="s0:processHttpPostOut" />
    </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="s0:payplusSoap">
    <soap:binding
    transport="http://schemas.xmlsoap.org/soap/http"
    style="document" />
    <operation name="Process">
    <soap:eek:peration
    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">
    <soap:eek:peration
    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">
    <soap:eek:peration
    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="s0:payplusHttpGet">
    <http:binding verb="GET" />
    <operation name="Process">
    <http:eek:peration location="/Process" />
    <input>
    <http:urlEncoded />
    </input>
    <output>
    <mime:mimeXml part="Body" />
    </output>
    </operation>
    <operation name="GetStatus">
    <http:eek:peration location="/GetStatus" />
    <input>
    <http:urlEncoded />
    </input>
    <output>
    <mime:mimeXml part="Body" />
    </output>
    </operation>
    <operation name="GetRedirectURL">
    <http:eek:peration location="/GetRedirectURL" />
    <input>
    <http:urlEncoded />
    </input>
    <output>
    <mime:mimeXml part="Body" />
    </output>
    </operation>
    </binding>
    <binding name="PayplusHttpPost"
    type="s0:payplusHttpPost">
    <http:binding verb="POST" />
    <operation name="Process">
    <http:eek:peration location="/Process" />
    <input>
    <mime:content type="application/x-www-form-
    urlencoded" />
    </input>
    <output>
    <mime:mimeXml part="Body" />
    </output>
    </operation>
    <operation name="GetStatus">
    <http:eek:peration location="/GetStatus" />
    <input>
    <mime:content type="application/x-www-form-
    urlencoded" />
    </input>
    <output>
    <mime:mimeXml part="Body" />
    </output>
    </operation>
    <operation name="GetRedirectURL">
    <http:eek:peration 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="s0:payplusSoap">
    <soap:address
    location="https://secure.yehey.com/payplus/services/payplus
    ..asmx" />
    </port>
    <port name="PayplusHttpGet"
    binding="s0:payplusHttpGet">
    <http:address
    location="https://secure.yehey.com/payplus/services/payplus
    ..asmx" />
    </port>
    <port name="PayplusHttpPost"
    binding="s0:payplusHttpPost">
    <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 -->
    hanz, Apr 27, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sham Ramakrishnan
    Replies:
    2
    Views:
    8,323
    Sham Ramakrishnan
    Jul 1, 2003
  2. Nick Chan
    Replies:
    0
    Views:
    487
    Nick Chan
    Sep 13, 2007
  3. Tony C
    Replies:
    2
    Views:
    331
    Xiangyang Liu
    Jul 20, 2003
  4. Jim Griffiths

    Using .NET web service with SOAP Toolkit 3

    Jim Griffiths, Oct 9, 2003, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    155
    Jim Griffiths
    Oct 9, 2003
  5. Prabhu

    .net SOAP toolkit performance for SOAP deserialization

    Prabhu, Nov 12, 2004, in forum: ASP .Net Web Services
    Replies:
    5
    Views:
    269
    Dan Rogers
    Nov 18, 2004
Loading...

Share This Page