Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello Tech Giants
I need to create a web service either that will implement the following
1. The communication mode is HTTP POST (not SOAP).
2. The content type is text/xml.
3. The POST request will contain only XML and response will be also XML.
4. The request will be a RAW POST directly to stream and NOT in a parameter.
5. It will be a SINGLE URL

I already worked on it here
http://www.nepamsonline.com/PHEDCWebService/PHEDCWebService.asmx
but this is SOAP.
I want it to be HTTP POST.
How do I accomplish this

Thanks

EXAMPLE REQUEST:
HTML
<customerinformationrequest>
<routeid>HTTPSERVICE</routeid>
<merchantreference>4781</merchantreference>
<custreference>5294520</custreference>
<serviceurl> https://www.nepamsonline.com/PHEDWebservice/PHEDWebservice.asmx</serviceurl>
<serviceusername />
<servicepassword />
<ftpurl />
<ftpusername />
<ftppassword />
</customerinformationrequest>


EXAMPLE RESPONSE:

HTML
 <customerinformationresponse>
   <merchantreference>4781</merchantreference>
   <customers>
      <customer>
         <status>0</status>
         <custreference>5294520</custreference>
         <firstname>pelumi</firstname>
         <lastname>amao</lastname>
         <othername />
         <email>tomiground@hotmail.com</email>
         <phone>08066953623</phone>
         <amount>51000.00</amount>
         <thirdpartycode />
      </customer>
   </customers>
</customerinformationresponse>
Posted
Updated 16-May-14 3:57am
v2
Comments
DamithSL 16-May-14 10:08am    
you can call this service as post request check
http://www.nepamsonline.com/PHEDCWebService/PHEDCWebService.asmx?op=CustomerInformationRequest
go to bottom of the page, you can see the syntax of post request
Maciej Los 16-May-14 12:29pm    
What have you done till now? Where are you stuck?

1 solution

this may be close to what you want CREATE RESTful WCF Service API Using POST: Step By Step Guide[^]

and, by the way, POST is not the opposite of SOAP, it's just a http verb ;-)
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900