Hi, I have key.p12 file and password, and I have wsdl file also. But I dont know how to start with SOAP, am new to SOAP I am trying to connect
When I try to connect using SoapClient am getting the error [faultstring] => Could not connect to host, [faultcode] => HTTP I dont know exactly what is error.
There is a two functions from WSDL file, functions are
ProcessData executeRB_OLP_HTTP_INITIATE_REQUEST(HttpServerAdapter $parameters)
initiatePaymentDetailsRes executeRB_OLP_INITIATE_PAYMENT(initiatePaymentDetailsReq $parameters)
Iam stuck using these functions. when I use I got the error [faultstring] => Could not connect to host, [faultcode] => HTTP
here is my wsdl file. please help me to fix this
<?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions name="RB_OLP_INITIATE_PAYMENT"
targetNamespace="http://www.sterlingcommerce.com/mesa"
xmlns:mesa="http://www.sterlingcommerce.com/mesa"
xmlns:mesa_xsd="http://www.sterlingcommerce.com/mesa"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns0="http://olp.sadad.com/sadadpaymentmanagement/service/olppaymentmanager/req"
xmlns:tns1="http://olp.sadad.com/sadadpaymentmanagement/service/olppaymentmanager/res"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <wsdl:types> <xs:schema attributeFormDefault="unqualified"
elementFormDefault="qualified"
targetNamespace="http://www.sterlingcommerce.com/mesa"
xmlns="http://www.sterlingcommerce.com/mesa"
xmlns:tns="http://www.sterlingcommerce.com/mesa" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:complexType name="Binary"> <xs:simpleContent> <xs:extension base="xs:base64Binary"> <xs:attribute name="href" type="xs:anyURI"/> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="attachment" type="tns:Binary"/> <xs:element name="inlineAttachment" type="xs:base64Binary"/> <xs:complexType name="ProcessData"> <xs:sequence> <xs:any/> </xs:sequence> </xs:complexType> <xs:element name="mesaFault" type="tns:MESAFault"/> <xs:complexType name="MESAFault"> <xs:sequence> <xs:element name="code"/> <xs:element name="message"/> <xs:element name="statusReport"/> </xs:sequence> </xs:complexType> <xs:element name="processData" type="tns:ProcessData"/> <xs:element name="documents"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" ref="tns:attachment"/> </xs:sequence> </xs:complexType> </xs:element> <xs:complexType name="HttpServerAdapter" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:all/> </xs:complexType> <xs:element name="RB_OLP_HTTP_INITIATE_REQUEST"
type="tns:HttpServerAdapter" xmlns:xs="http://www.w3.org/2001/XMLSchema"/> </xs:schema> <xs:schema
targetNamespace="http://olp.sadad.com/sadadpaymentmanagement/service/olppaymentmanager/req"
xmlns="http://olp.sadad.com/sadadpaymentmanagement/service/olppaymentmanager/req"
xmlns:req="http://olp.sadad.com/sadadpaymentmanagement/service/olppaymentmanager/req"
xmlns:tns0="http://olp.sadad.com/sadadpaymentmanagement/service/olppaymentmanager/req" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="initiatePaymentDetailsReq" xmlns:req="http://olp.sadad.com/sadadpaymentmanagement/service/olppaymentmanager/req"> <xs:complexType> <xs:sequence> <xs:element name="olpIdAlias" type="xs:string"/> <xs:element name="merchantId" type="xs:string"/> <xs:element name="merchantRefNum" type="xs:string"/> <xs:element name="paymentAmount" type="xs:string"/> <xs:element name="paymentCurrency" type="xs:string"/> <xs:element name="dynamicMerchantLandingURL" type="xs:string"/> <xs:element name="dynamicMerchantFailureURL" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> <xs:schema
targetNamespace="http://olp.sadad.com/sadadpaymentmanagement/service/olppaymentmanager/res"
version="1.0"
xmlns="http://olp.sadad.com/sadadpaymentmanagement/service/olppaymentmanager/res"
xmlns:tns="http://olp.sadad.com/sadadpaymentmanagement/service/olppaymentmanager/res"
xmlns:tns1="http://olp.sadad.com/sadadpaymentmanagement/service/olppaymentmanager/res"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <!-- XML Schema Generated from XML Document on Mon Oct 27 2014 12:56:52 GMT+0300 (Arab Standard Time) --> <!-- with XmlGrid.net Free Online Service http://xmlgrid.net --> <xs:element name="initiatePaymentDetailsRes"> <xs:complexType> <xs:sequence> <xs:element name="ibURL" type="xs:string"/> <xs:element name="abRefNum" type="xs:string"/> <xs:element name="merchantRefNum" type="xs:string"/> <xs:element name="errorcode" type="xs:string"/> <xs:element name="errordescription" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> </wsdl:types> <wsdl:message name="MESAResponse"> <wsdl:part element="mesa_xsd:processData" name="parameters"/> </wsdl:message> <wsdl:message name="GISGeneric"> <wsdl:part element="mesa_xsd:processData" name="parameters"/> </wsdl:message> <wsdl:message name="RB_OLP_INITIATE_PAYMENT"> <wsdl:part element="tns0:initiatePaymentDetailsReq" name="parameters"/> </wsdl:message> <wsdl:message name="RB_OLP_HTTP_INITIATE_REQUEST"> <wsdl:part element="mesa_xsd:RB_OLP_HTTP_INITIATE_REQUEST" name="parameters"/> </wsdl:message> <wsdl:message name="MESAFault"> <wsdl:part element="mesa_xsd:mesaFault" name="parameters"/> </wsdl:message> <wsdl:message name="RB_OLP_INITIATE_PAYMENTOutput"> <wsdl:part element="tns1:initiatePaymentDetailsRes" name="parameters"/> </wsdl:message> <wsdl:portType name="GISPortType"> <wsdl:operation name="executeRB_OLP_HTTP_INITIATE_REQUEST"> <wsdl:input message="mesa_xsd:RB_OLP_HTTP_INITIATE_REQUEST"/> <wsdl:output message="mesa_xsd:MESAResponse"/> </wsdl:operation> <wsdl:operation name="executeRB_OLP_INITIATE_PAYMENT"> <wsdl:input message="mesa_xsd:RB_OLP_INITIATE_PAYMENT"/> <wsdl:output message="mesa_xsd:RB_OLP_INITIATE_PAYMENTOutput"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="GISBinding" type="mesa_xsd:GISPortType"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="executeRB_OLP_HTTP_INITIATE_REQUEST"> <soap:operation
soapAction="sii:RB_OLP_HTTP_INITIATE_REQUEST" style="document"/> <wsdl:input> <soap:body parts="parameters" use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="executeRB_OLP_INITIATE_PAYMENT"> <soap:operation soapAction="sii:RB_OLP_INITIATE_PAYMENT" style="document"/> <wsdl:input> <soap:body parts="parameters" use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="RB_OLP_INITIATE_PAYMENT"> <wsdl:port binding="mesa_xsd:GISBinding" name="GISPort"> <soap:address location="https://b2brbtest.riyadbank.com/soap?service=RB_OLP_INITIATE_PAYMENT"/> </wsdl:port> </wsdl:service> </wsdl:definitions>