cancel
Showing results for 
Search instead for 
Did you mean: 

HTML to Web Service Scenario - Runtime Error Exception

Former Member
0 Kudos

Hi Friends,

I am tryin to do HTML to Web Service Scenario for Validating email for the fWeb Service Email

Validation http://www.webservicex.net/ValidateEmail.asmx?wsdl. While executing the scenario in

Integration Directory there is no error but when sending the payload (Payload contains onl)from SAP

HTML then getting error in SXMB_MONI as

"Runtime exception occurred during application mapping com/sap/xi/tf/_MM_EmailRequest_To_ValidateEmail_; com.sap.aii.utilxi.misc.api.BaseRuntimeException:Content is not allowed in prolog."

Please guide me for the same.

Regards,

Nitin Patil

Accepted Solutions (1)

Accepted Solutions (1)

former_member9864
Participant
0 Kudos

Nitin,

what do you mean with "Payload contains onl"? What does ONL stand for?

Well the error message is telling me that something is not correct in your HTML payload. Check your payload in hex mode to find out whether there are some kind of "invisible footprints" like 0xXX left by your HTML editor. Try to use simple editor like windows notepad to recreate your payload and have it another try.

Regards,

Chen

shivhare
Active Contributor
0 Kudos

Hi,

I am also agree with Lin . I think some problem in your WSDl so recheck it

Regards,

Amit

Former Member
0 Kudos

Hi,

Thanks for ur reply, i have ched the same but payload doesn't contain any junk characters and still same error persisting. by the way payload contains only one field email address to be verified.

Please suggest any other option which can be tried.

Regards,

Nitin

former_member9864
Participant
0 Kudos

Hi,

well it might be the reason that XI is always working with XML but not HTML. It's important that your HTML should be following the XML wellformness. It would be strongly recommanded that you use XHTML but not normal HTML here, because I think XI has no tolerence at all when the inbound HTML is not XML-wellformed.

Try to compose your XHTML like the following:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title/>
</head>
<body>
<p>some email address</p>
</body>
</html>

Make sure there are no weird characters and empty lines within and before the <?xml

Regards,

Chen

Answers (0)