Project ID:
780821
Project Type:
Fixed
Budget:
$250-$750 USD
Project Description:
** see attached document for the text that is not malformed due to posting of the code here.. **
I have a client who provided me his web services with WSDL who needs some data submitted to his web services.
I would like to have someone develop this one for me in PHP so that I can use it in the future for this client but also to modify for other potential services.
Here are the steps the code needs to do:
Step 1
Initial Submission Operation “GetPayout”
The initial submission request should be submitted to the following URL:
https://www.xxxxxxx/partner/PricePresentation.asmx?op=GetPayout
“XMLString” variable should contain entire lead XML except “ContactInformation” tag.
Step 2
Initial Submission Operation Reply “GetPayoutResponse”
“GetPayout” operation will reply in the following format:
<GetPayoutResponse xmlns="https://xxxxxx/partner/PricePresentation.asmx">
<PricePresentationResult xmlns="https://xxxxxx/partner/PricePresentationResult.xsd">
<Result>string</Result>
<ErrorType>string</ErrorType>
<ErrorDescription>string</ErrorDescription>
<LeadID>integer</LeadID>
<Payout>decimal</Payout>
</PricePresentationResult>
</GetPayoutResponse>
Should an error occur during the submission process, the value of tag “Result” will be “Error”. “ErrorType” and “ErrorDescription” tags will contain more detailed information about the error that has occurred.
If submission is successful, the value of the tag “Result” will be “OK”.
Example of the successful submission reply:
<GetPayoutResponse xmlns="https://xxxxxx/partner/PricePresentation.asmx">
<PricePresentationResult xmlns="xxxxxx/partner/PricePresentationResult.xsd">
<Result>OK</Result>
<LeadID>123123</LeadID>
<Payout>14.91</Payout>
</PricePresentationResult>
</GetPayoutResponse>
Step 3
Full Lead Submission Operation “UploadLead”
Should you accept the payout and agree to sell the lead to InsuranceLeads.com at the price contained in the variable “Payout” of initial submission reply “GetPayoutResponse”, the request should be submitted to the following URL:
https://xxxxxx/partner/PricePresentation.asmx?op=UploadLead
“XMLString” variable should contain entire lead XML including “ContactInformation” tag.
“LeadID” variable should contain “LeadID” tag from the initial submission reply “GetPayoutResponse”.
Step 4
Full Lead Submission Reply “UploadLeadResponse”
“UploadLead” operation will reply in the following format:
<UploadLeadResponse xmlns="https://xxxxxx/partner/PricePresentation.asmx">
<PricePresentationResult xmlns="https://xxxxx/partner/PricePresentationResult.xsd">
<Result>string</Result>
<ErrorType>string</ErrorType>
<ErrorDescription>string</ErrorDescription>
<LeadID>integer</LeadID>
<Payout>decimal</Payout>
</PricePresentationResult>
</UploadLeadResponse>
Should an error occur during the submission process, the value of tag “Result” will be “Error”. “ErrorType” and “ErrorDescription” tags will contain more detailed information about the error that has occurred.
If submission is successful, the value of the tag “Result” will be “OK”. At this point, the lead has been accepted by our system.
List of Possible ErrorTypes:
- XML Validation
XML submitted could not be validated against the schema
- Login
Username and password could not be validated
- Data Validation
Data within the XML is missing or invalid
- Duplicate
Lead information already exists in our database
- Internal Server Error
Other unforeseen errors
Skills required:
PHP,
Software Architecture,
XML
Additional Files:
Description+of+the+project.rtf