Quantcast
Viewing all articles
Browse latest Browse all 3509

Sending Email Form Data to/with Web Service

Hello!

I have created this form in my solution:

<form class="form-horizontal" role="form"><div class="form-group"><label>From:</label><div><div class="input-group"><input type="text" id="from"></div></div></div><div class="form-group"><label>Case Number:</label><div class="input-group"><input type="text" id="case"></div></div><div class="form-group"><label>Email Subject:</label><div class="col-sm-6"><select class="selectpicker"><option>I Need to Update My Info</option><option>Option Number Two</option><option>Option Number Three</option><option>General Question</option></select></div></div><div class="clearfix"></div></div></div><div class="innerAll inner-2x"><textarea  rows="4" placeholder="Write your message here..."></textarea><div class="clearfix"></div></div></form></div><div><a href=""> Cancel</a><a href=""> Send email</a></div>

I need it to send/reference data in a web service that was developed elsewhere. Here is the info they gave me:

Subject (string) [this is supposed to be a dropdown list of choices]
A string value for the subject of the message.  This will be appended to the pre-defined subject of the email.

Message (string)
A string value for the body of the message. 

		Example XML:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"><soapenv:Header/><soapenv:Body><tem:SubmitMessage><tem:Token>12112121-gghguuy-95959595-69693695</tem:Token><tem:PartyNameID>1763</tem:PartyNameID><tem:CaseNum>214369</tem:CaseNum><tem:Subject>This is the email subject</tem:Subject><tem:Message>This is the email message</tem:Message></tem:SubmitMessage></soapenv:Body></soapenv:Envelope>

	Outputs:
		SubmitMessageResult (multiple, object)
			Error (string)
			Has a value if an error occurred, otherwise null.


		Example XML:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><ActivityId CorrelationId="95959595-69693695" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics"></ActivityId></s:Header><s:Body><SubmitMessageResponse xmlns="http://tempuri.org/"><SubmitMessageResult xmlns:a="http://schemas.datacontract.org/xxxxx" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><a:Error i:nil="true"/></SubmitMessageResult></SubmitMessageResponse></s:Body></s:Envelope>

LOL-I am totally a beginner so I have to just bluntly ask: WHAT IN THE WORLD AM I SUPPOSED TO DO WITH THIS?

Thank you so much! Image may be NSFW.
Clik here to view.
Laughing


Viewing all articles
Browse latest Browse all 3509

Trending Articles