Dianna
Posts: 0
Joined: Thu Mar 06, 2014 7:00 pm

Automatically Create Service Response fails with incorrect format

If i try to 'Automatically Create Service Response' it fails with an incorrect format.

I'm sure there is a way to process the data but i'm bit of a Java Script newbie and at the moment wouldn't know where to start or if the data could be parsed using jQuery. Any help would be greatly received!

Thanks!
Dianna

Dianna
Posts: 0
Joined: Thu Mar 06, 2014 7:00 pm

Automatically Create Service Response fails with incorrect format

If i try to 'Automatically Create Service Response' it fails with an incorrect format.

I'm sure there is a way to process the data but i'm bit of a Java Script newbie and at the moment wouldn't know where to start or if the data could be parsed using jQuery. Any help would be greatly received!

Thanks!
Dianna

<!DOCTYPE html SYSTEM

<!-- <hs:metatags --

<!-- </hs:metatags --

<!--

input{

border: 1px solid #CCCCCC;

color:#333333;

width:212px;

height:18px;

}

textarea{

border: 1px solid #CCCCCC;

color:333333;

width:212px;

height:187px;

}

--

<!-- <hs:title --
TSGI | The Spectrum Group Inc.
<!-- </hs:title --

Code: Select all

@import url(/~media/elements/Text/font_styles.css); 
div.lpxcenterpageouter { 
  text-align: center; position: absolute; top: 0px; left: 0px; width: 100%  

}
div.lpxcenterpageinner {
position: relative; margin: 0 auto; text-align: left; width: 922px;
}

Code: Select all

<!-- 
    .navBackgroundQuickSiteMain { 
  background-image:url('/~media/elements/LayoutClipart/undefined'); background-position: undefined; background-repeat:no-repeat  

}
.navBackgroundSelectedQuickSiteMain {
background-image:url('/media/elements/LayoutClipart/undefined'); background-position: undefined; background-repeat:no-repeat
}
--

Code: Select all

[img]/~media/elements/shared/javascript_disabled.gif[/img] width="373"  

<!-- <hs:element4 --Image title="" width="922" <!-- </hs:element4 --<!-- <hs:element3 --Image title="" width="922" <!-- </hs:element3 --<!-- <hs:element5 --Image title="" width="922" <!-- </hs:element5 --<!-- <hs:element11 --© 2014 TSGI. All rights reserved.
<!-- </hs:element11 --<!-- <hs:element16 --Image width="252" Image width="1" Image width="250" Image width="1" Image width="250" <!-- </hs:element16 --<!-- <hs:element15 --Image width="602" Image width="1" Image width="600" Image width="1" Image width="600" <!-- </hs:element15 --<!-- <hs:element51 --Image title="" width="632" <!-- </hs:element51 --<!-- <hs:element50 --Image title="" width="632" <!-- </hs:element50 --<!-- <hs:element20 --TSGI Launches Black Rewards Card Program
<!-- </hs:element20 --<!-- <hs:element21 --Image title="" width="610" <!-- </hs:element21 --<!-- <hs:element22 --Black Rewards Card to Revolutionize Small Business Marketing Forever
<!-- </hs:element22 --<!-- <hs:element23 --TSGI Marketing has partnered with Choice Office Solutions in Charlotte,
NC to offer an exciting new program to increase sales opportunities for area small businesses.

The innovative Black Rewards Card Program is a multi-dimensional approach to sales that has never been attempted before. Customers will agree that it is a fresh new sales tool that will transcend business types and increase sales with an immediate impact on sales volume.

See the Black Rewards Card tab for more information about this exciting new tool offered by TSGI Marketing.
<!-- </hs:element23 --<!-- <hs:element25 --New Federal Sales Training Workshops Coming Soon

<!-- </hs:element25 --<!-- <hs:element26 --Get the customers you've always wanted!
Check out the Program
CLICK HERE
<!-- </hs:element26 --<!-- <hs:element38 --BUSINESS HOURS

Monday-Friday 9AM-5PM EST

Customer Service (877) 907-4270
<!-- </hs:element38 --<!-- <hs:element47 --Image title="" width="579" <!-- </hs:element47 --<!-- <hs:element49 --<!-- </hs:element49 --<!-- <hs:element53 --1[url=http:///index.html]Image width="16" Image width="10" HomeImage width="8.0" [/url][url=http:///Cross-Marketing-Program.html]Image width="7.0" Image width="16" Image width="10" Black Rewards CardImage width="8.0" [/url][url=http:///Community-Partners.html]Image width="7.0" Image width="16" Image width="10" MembersImage width="8.0" [/url][url=http:///Consulting-Services.html]Image width="7.0" Image width="16" Image width="10" Consulting Services Image width="8.0" [/url][url=http:///Contact-Us.html]Image width="7.0" Image width="16" Image width="10" Contact Us[/url]
<!-- </hs:element53 --<!-- <hs:element58 --Image title="" width="208" <!-- </hs:element58 --<!-- <hs:element59 --Image title="" width="632" <!-- </hs:element59 --<!-- <hs:element60 --TSGI Announces New Consulting Workshops
<!-- </hs:element60 --<!-- <hs:element61 --TSGI Consulting is working on new programs and workshops that will be launching soon. Keep a look out on the Consulting Services tab for the upcoming schedule. Our consulting team would love to meet with you individually to discuss how we can help your business grow and prosper. Call to schedule your appointment today.
<!-- </hs:element61 --<!-- <hs:element62 --Image width="629" Image width="1" Image width="1" Image width="628" Image width="1" Image width="1" Image width="629" <!-- </hs:element62 --<!-- <hs:element63 --TSGI,
The Spectrum Group,
International,
is a Consulting and Marketing firm with 21 years experience in both the Federal and Small Business markets.

Each of our Consultants are successful Small Business Owners,
that have vast experience working with the Federal Government,
GSA Contracts,
as well as Non-Government and Local Business.

If you are looking to start a new business,
make your business more profitable,
or sell to the Federal Government,
a TSGI Consultant will be an invaluable addition to your business.

Our Marketing Department is constantly creating new material that can be used for many business types. Our consultants can also create a personalized marketing plan for your business to immediately increase your profits.

For more information,
or to set up an appointment,
send us a message,
or call (877) 907-4270.
<!-- </hs:element63 --<!-- <hs:element67 --P.O. Box 2374,
Davidson,
NC 28036 | email: a href="mailto:mail@tsgi.us.com" rel="nofollow"mail@tsgi.us.com/a | call:
(877) 907-4270
<!-- </hs:element67 --<!-- <hs:footer --<!-- </hs:footer --
<!-- <hs:realtracker --

Code: Select all

img alt="" height="1" width="1"  

<!-- </hs:realtracker --

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Automatically Create Service Response fails with incorrect format

Hello! Only json or xml can be parsed automatically, but this response is neither json nor xml.

Dianna
Posts: 0
Joined: Thu Mar 06, 2014 7:00 pm

Automatically Create Service Response fails with incorrect format

Correct. The xml verison is below. But when I enter that I cannot get it to transfer from the Test tab to the Response tab.

<!DOCTYPE html>
<html>
<head>
<!-- <hs:metatags> -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="generator" content="Homestead SiteBuilder">
<!-- </hs:metatags> -->

Code: Select all

 <style type="text/css"> 

<!--

input{

border: 1px solid #CCCCCC;

color:#333333;

width:212px;

height:18px;

}

textarea{

border: 1px solid #CCCCCC;

color:333333;

width:212px;

height:187px;

}

-->

</style>

<!-- <hs:title> -->
<title>TSGI | The Spectrum Group Inc.</title>
<!-- </hs:title> -->
<script type="text/javascript">
<!--
function reDo() {

Code: Select all

           top.location.reload(); 

}
if (navigator.appName == 'Netscape' && parseInt(navigator.appVersion) < 5) {

Code: Select all

           top.onresize = reDo; 

}
dom=document.getElementById
//-->
</script>
<script type="text/javascript">
<!--

var strRelativePagePath = "index.html".toLowerCase();

var strRelativePathToRoot = "&quot

Code: Select all

   //--> 

</script>
<link rel="stylesheet" href="/media/elements/Text/font_styles_ns4.css" type="text/css">
<style type="text/css">
@import url(/media/elements/Text/font_styles.css);
div.lpxcenterpageouter {
text-align: center; position: absolute; top: 0px; left: 0px; width: 100%
}
div.lpxcenterpageinner {
position: relative; margin: 0 auto; text-align: left; width: 922px;
}
</style>
<script type="text/javascript">
<!--
var unique_id = new Array();
var form_name = new Array();
var required = new Array();
var req_message = new Array();

Code: Select all

   //--> 

</script>

<STYLE type="text/css">
<!--
.navBackgroundQuickSiteMain {
background-image:url('/media/elements/LayoutClipart/undefined'); background-position: undefined; background-repeat:no-repeat
}
.navBackgroundSelectedQuickSiteMain {
background-image:url('/media/elements/LayoutClipart/undefined'); background-position: undefined; background-repeat:no-repeat
}
-->
</STYLE>
<script type="text/javascript" src="/site/Elements/HCUser_Forms_Submit/FormValidation.js">
</script>
</head>
<body bgcolor="#FFFFFF" link="#FFFFFF" vlink="#00D3EB" alink="#00D3EB" background="files/QuickSiteImages/QS_bg.jpg" onload="" id="element1" onunload="" scroll="auto">
<noscript>
<img height="40" width="373" border="0" alt="" src="/media/elements/shared/javascript_disabled.gif">
</noscript>
<div class="lpxcenterpageouter"><div class="lpxcenterpageinner"><!-- <hs:element4> --><div id="element4" style="position: absolute; top: 145px; width: 922px; height: 858px; z-index: 0;"><div style="overflow: hidden; height: 858px; width: 922px; border: 0px solid #52A8EC; border-radius: 0px; box-shadow: none;"><img height="858" width="922" style="display: block; border-radius: 0px;" title="" alt="" src="files/QuickSiteImages/QS_repeat.jpg" /><><><!-- </hs:element4> --><!-- <hs:element3> --><div id="element3" style="position: absolute; width: 922px; height: 152px; z-index: 1;"><div style="overflow: hidden; height: 152px; width: 922px; border: 0px solid #52A8EC; border-radius: 0px; box-shadow: none;"><img height="152" width="922" style="display: block; border-radius: 0px;" title="" alt="" src="files/QuickSiteImages/QS_header.jpg" /><><><!-- </hs:element3> --><!-- <hs:element5> --><div id="element5" style="position: absolute; top: 952px; width: 922px; height: 53px; z-index: 2;"><div style="overflow: hidden; height: 53px; width: 922px; border: 0px solid #52A8EC; border-radius: 0px; box-shadow: none;"><img height="53" width="922" style="display: block; border-radius: 0px;" title="" alt="" src="files/QuickSiteImages/QS_footer.jpg" /><><><!-- </hs:element5> --><!-- <hs:element11> --><div id="element11" style="position: absolute; top: 972px; left: 351px; width: 238px; height: 18px; z-index: 3;"><div style="font-size: 1px; line-height: 1px;" align="center"><font face="Helvetica, Arial, sans-serif" color="#FFFFFF" class="size10 Helvetica10">© 2014 TSGI. All rights reserved.<br></font><><><!-- </hs:element11> --><!-- <hs:element16> --><div id="element16" style="position: absolute; top: 153px; left: 660px; width: 252px; height: 208px; z-index: 4;"><table cellspacing="0" border="0" cellpadding="0"><tr><td colspan="5" bgcolor="#999999"><img height="1" width="252" border="0" alt="" style="display: block;" src="/site/siteapps/shapes.action?CMD=GetRectangleGif&r=153&g=153&b=153"></td></tr><tr><td rowspan="4" bgcolor="#999999"><img height="207" width="1" border="0" alt="" style="display: block;" src="/site/siteapps/shapes.action?CMD=GetRectangleGif&r=153&g=153&b=153"></td><td bgcolor="#CCCCCC"><img height="206" width="250" border="0" alt="" style="display: block;" src="/site/siteapps/shapes.action?CMD=GetRectangleGif&r=204&g=204&b=204"></td><td rowspan="4" bgcolor="#999999"><img height="207" width="1" border="0" alt="" style="display: block;" src="/site/siteapps/shapes.action?CMD=GetRectangleGif&r=153&g=153&b=153"></td></tr><tr><td colspan="3" bgcolor="#999999"><img height="1" width="250" border="0" alt="" style="display: block;" src="/site/siteapps/shapes.action?CMD=GetRectangleGif&r=153&g=153&b=153"></td></tr></table><><!-- </hs:element16> --><!-- <hs:element15> --><div id="element15" style="position: absolute; top: 173px; left: 31px; width: 602px; height: 234px; z-index: 5;"><table cellspacing="0" border="0" cellpadding="0"><tr><td colspan="5" bgcolor="#F2F2F2"><img height="1" width="602" border="0" alt="" style="display: block;" src="/site/siteapps/shapes.action?CMD=GetRectangleGif&r=242&g=242&b=242"></td></tr><tr><td rowspan="4" bgcolor="#F2F2F2"><img height="233" width="1" border="0" alt="" style="display: block;" src="/site/siteapps/shapes.action?CMD=GetRectangleGif&r=242&g=242&b=242"></td><td bgcolor="#000000"><img height="232" width="600" border="0" alt="" style="display: block;" src="/site/siteapps/shapes.action?CMD=GetRectangleGif&r=0&g=0&b=0"></td><td rowspan="4" bgcolor="#F2F2F2"><img height="233" width="1" border="0" alt="" style="display: block;" src="/site/siteapps/shapes.action?CMD=GetRectangleGif&r=242&g=242&b=242"></td></tr><tr><td colspan="3" bgcolor="#F2F2F2"><img height="1" width="600" border="0" alt="" style="display: block;" src="/site/siteapps/shapes.action?CMD=GetRectangleGif&r=242&g=242&b=242"></td></tr></table><><!-- </hs:element15> --><!-- <hs:element51> --><div id="element51" style="position: absolute; top: 425px; left: 1px; width: 632px; height: 46px; z-index: 6;"><table cellspacing="0" border="0" cellpadding="0"><tr><td height="46" bgcolor="#FFFFFF" width="632"><img height="46" width="632" title="" alt="" style="display: block;" src="/site/siteapps/shapes.action?CMD=GetRectangleGif&r=255&g=255&b=255"></td></tr></table><><!-- </hs:element51> --><!-- <hs:element50> --><div id="element50" style="position: absolute; top: 425px; left: 1px; width: 632px; height: 44px; z-index: 7;"><table cellspacing="0" border="0" cellpadding="0"><tr><td height="44" bgcolor="#666666" width="632"><img height="44" width="632" title="" alt="" style="display: block;" src="/site/siteapps/shapes.action?CMD=GetRectangleGif&r=102&g=102&b=102"></td></tr></table><><!-- </hs:element50> --><!-- <hs:element20> --><div id="element20" style="position: absolute; top: 434px; left: 31px; width: 582px; height: 32px; z-index: 8;"><div style="font-size: 1px; line-height: 1px;"><font face="Georgia, Times, serif" color="#FFFFFF" class="size22 Georgia22">TSGI Launches Black Rewards Card Program<br></font><><><!-- </hs:element20> --><!-- <hs:element21> --><div id="element21" style="position: absolute; top: 687px; left: 28px; width: 610px; height: 1px; z-index: 9;"><table cellspacing="0" border="0" cellpadding="0"><tr><td height="1" bgcolor="#DFDFDF" width="610"><img height="1" width="610" title="" alt="" style="display: block;" src="/site/siteapps/shapes.action?CMD=GetRectangleGif&r=223&g=223&b=223"></td></tr></table><><!-- </hs:element21> --><!-- <hs:element22> --><div id="element22" style="position: absolute; top: 478px; left: 30px; width: 602px; height: 21px; z-index: 10;"><div style="font-size: 1px; line-height: 1px;"><font face="Georgia, Times, serif" color="#406AB0" class="size14 Georgia14">Black Rewards Card to Revolutionize Small Business Marketing Forever<br></font><><><!-- </hs:element22> --><!-- <hs:element23> --><div id="element23" style="position: absolute; top: 518px; left: 30px; width: 602px; height: 180px; z-index: 11;"><div style="font-size: 1px; line-height: 1px;"><font face="Arial, Helvetica, sans-serif" color="#FFFFFF" class="size11 Arial11">TSGI Marketing has partnered with Choice Office Solutions in Charlotte,
NC to offer an exciting new program to increase sales opportunities for area small businesses. <br></font><><div style="font-size: 1px; line-height: 1px;"><font face="Arial, Helvetica, sans-serif" color="#FFFFFF" class="size11 Arial11"><b></b><br></font><><div style="font-size: 1px; line-height: 1px;"><font face="Arial, Helvetica, sans-serif" color="#FFFFFF" class="size11 Arial11">The innovative Black Rewards Card Program is a multi-dimensional approach to sales that has never been attempted before. Customers will agree that it is a fresh new sales tool that will transcend business types and increase sales with an immediate impact on sales volume. <br></font><><div style="font-size: 1px; line-height: 1px;"><font face="Arial, Helvetica, sans-serif" color="#FFFFFF" class="size11 Arial11"><br></font><><div style="font-size: 1px; line-height: 1px;"><font face="Arial, Helvetica, sans-serif" color="#FFFFFF" class="size11 Arial11">See the </font><font face="Arial, Helvetica, sans-serif" color="#FFFFFF" class="size11 Arial11"><a target="self" href="Cross-Marketing-Program.html">Black Rewards Card</a></font><font face="Arial, Helvetica, sans-serif" color="#FFFFFF" class="size11 Arial11"> tab for more information about this exciting new tool offered by TSGI Marketing. <br></font><><><!-- </hs:element23> --><!-- <hs:element25> --><div id="element25" style="position: absolute; top: 772px; left: 30px; width: 561px; height: 42px; z-index: 12;"><div style="font-size: 1px; line-height: 1px;"><font face="Georgia, Times, serif" color="#3F9C2D" class="size14 Georgia14">New Federal Sales Training Workshops Coming Soon<br></font><><div style="font-size: 1px; line-height: 1px;"><font face="Georgia, Times, serif" color="#3F9C2D" class="size14 Georgia14"><br></font><><><!-- </hs:element25> --><!-- <hs:element26> --><div id="element26" style="position: absolute; top: 301px; left: 666px; width: 239px; height: 52px; z-index: 13;"><div style="font-size: 1px; line-height: 1px;" align="center"><font face="Arial, Helvetica, sans-serif" color="#333333" class="size9 Arial9">Get the customers you've always wanted!<br></font><><div style="font-size: 1px; line-height: 1px;" align="center"><font face="Georgia, Times, serif" color="#406AB0" class="size14 Georgia14"><i>Check out the Program</i><br></font><><div style="font-size: 1px; line-height: 1px;" align="center"><font face="Arial, Helvetica, sans-serif" color="#3F9C2D" class="size8 Arial8"><b><a target="self" href="Cross-Marketing-Program.html">CLICK HERE</a></b><br></font><><><!-- </hs:element26> --><!-- <hs:element38> --><div id="element38" style="position: absolute; top: 842px; left: 664px; width: 244px; height: 90px; z-index: 14;"><div style="height: 88px; padding: 0px; border-width: 1px; border-color: #999999; border-style: solid; background-color: transparent;"><div style="font-size: 1px; line-height: 1px;" align="center"><font face="Georgia, Times, serif" color="#406AB0" class="size14 Georgia14">BUSINESS HOURS</font><font face="Georgia, Times, serif" color="#FFFFFF" class="size14 Georgia14"> <br></font><><div style="font-size: 1px; line-height: 1px;" align="center"><font face="Georgia, Times, serif" color="#FFFFFF" class="size8 Georgia8"><br></font><><div style="font-size: 1px; line-height: 1px;" align="center"><font face="Arial, Helvetica, sans-serif" color="#FFFFFF" class="size10 Arial10">Monday-Friday 9AM-5PM EST<br></font><><div style="font-size: 1px; line-height: 1px;" align="center"><font face="Arial, Helvetica, sans-serif" color="#FFFFFF" class="size10 Arial10"> <br></font><><div style="font-size: 1px; line-height: 1px;" align="center"><font face="Arial, Helvetica, sans-serif" color="#FFFFFF" class="size10 Arial10">Customer Service (877) 907-4270<br></font><><><><!-- </hs:element38> --><!-- <hs:element47> --><div id="element47" style="position: absolute; top: 185px; left: 43px; width: 579px; height: 210px; z-index: 15;"><div style="overflow: hidden; height: 210px; width: 579px; border: 0px solid #52A8EC; border-radius: 0px; box-shadow: none;"><img height="210" width="579" style="display: block; border-radius: 0px;" title="" alt="" src="publishImages/index~element47.jpg" /><><><!-- </hs:element47> --><!-- <hs:element49> --><div id="element49" style="position: absolute; top: 23px; left: 24px; z-index: 16;"><div align="left"><SCRIPT TYPE="text/javascript" SRC="logos/QuickSiteLogo.js"></SCRIPT><><><!-- </hs:element49> --><!-- <hs:element53> --><div id="element53" style="position: absolute; top: 112px; left: 90px; width: 733px; height: 21px; z-index: 17;"><div align="left"><SCRIPT type="text/javascript">var nav_element_id="element53&quot</SCRIPT><div id="nav_version" style="display:none;">1<><SCRIPT TYPE="text/javascript" SRC="navs/QuickSiteMain.js"></SCRIPT><TABLE ID="ntb" CELLSPACING="0" CELLPADDING="0" BORDER="0" ><TR ALIGN="CENTER" VALIGN="MIDDLE"><TD><TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0"><TR><TD ALIGN="center" VALIGN="MIDDLE" NOWRAP="NOWRAP" id="QuickSiteMain_Link1" style="cursor: pointer;cursor: hand;color:#666666;font-size: 1px; line-height: 1px;" onmouseover="doMouseChange(nav_QuickSiteMain,this,'1',true);" onmouseout="doMouseChange(nav_QuickSiteMain,this,'1',false);"><A HREF="/index.html" TARGET="self" STYLE="text-decoration:none;" NAME="Home"><IMG NAME="IDQuickSiteMain1" SRC="/media/elements/LayoutClipart/../LayoutClipart/AccentGraphics/Accent_Sphere_Black.gif" HEIGHT="16" WIDTH="16" BORDER="0"><IMG SRC="/tp.gif" WIDTH="10" HEIGHT="16" BORDER="0"><FONT ID="QuickSiteMain_f1" FACE="Arial, Helvetica, sans-serif" CLASS="size14 Arial14" STYLE="color:#666666">Home</FONT><IMG SRC="/tp.gif" WIDTH="8.0" HEIGHT="1" BORDER="0"></A></TD><TD ALIGN="center" VALIGN="MIDDLE" NOWRAP="NOWRAP" id="QuickSiteMain_Link2" style="cursor: pointer;cursor: hand;color:#666666;font-size: 1px; line-height: 1px;" onmouseover="doMouseChange(nav_QuickSiteMain,this,'2',true);" onmouseout="doMouseChange(nav_QuickSiteMain,this,'2',false);"><A HREF="/Cross-Marketing-Program.html" TARGET="self" STYLE="text-decoration:none;" NAME="Black Rewards Card"><IMG SRC="/tp.gif" WIDTH="7.0" HEIGHT="1" BORDER="0"><IMG NAME="IDQuickSiteMain2" SRC="/media/elements/LayoutClipart/../LayoutClipart/AccentGraphics/Accent_Sphere_Black.gif" HEIGHT="16" WIDTH="16" BORDER="0"><IMG SRC="/tp.gif" WIDTH="10" HEIGHT="16" BORDER="0"><FONT ID="QuickSiteMain_f2" FACE="Arial, Helvetica, sans-serif" CLASS="size14 Arial14" STYLE="color:#666666">Black Rewards Card</FONT><IMG SRC="/tp.gif" WIDTH="8.0" HEIGHT="1" BORDER="0"></A></TD><TD ALIGN="center" VALIGN="MIDDLE" NOWRAP="NOWRAP" id="QuickSiteMain_Link3" style="cursor: pointer;cursor: hand;color:#666666;font-size: 1px; line-height: 1px;" onmouseover="doMouseChange(nav_QuickSiteMain,this,'3',true);" onmouseout="doMouseChange(nav_QuickSiteMain,this,'3',false);"><A HREF="/Community-Partners.html" TARGET="self" STYLE="text-decoration:none;" NAME="Members"><IMG SRC="/tp.gif" WIDTH="7.0" HEIGHT="1" BORDER="0"><IMG NAME="IDQuickSiteMain3" SRC="/media/elements/LayoutClipart/../LayoutClipart/AccentGraphics/Accent_Sphere_Black.gif" HEIGHT="16" WIDTH="16" BORDER="0"><IMG SRC="/tp.gif" WIDTH="10" HEIGHT="16" BORDER="0"><FONT ID="QuickSiteMain_f3" FACE="Arial, Helvetica, sans-serif" CLASS="size14 Arial14" STYLE="color:#666666">Members</FONT><IMG SRC="/tp.gif" WIDTH="8.0" HEIGHT="1" BORDER="0"></A></TD><TD ALIGN="center" VALIGN="MIDDLE" NOWRAP="NOWRAP" id="QuickSiteMain_Link4" style="cursor: pointer;cursor: hand;color:#666666;font-size: 1px; line-height: 1px;" onmouseover="doMouseChange(nav_QuickSiteMain,this,'4',true);" onmouseout="doMouseChange(nav_QuickSiteMain,this,'4',false);"><A HREF="/Consulting-Services.html" TARGET="self" STYLE="text-decoration:none;" NAME="Consulting Services "><IMG SRC="/tp.gif" WIDTH="7.0" HEIGHT="1" BORDER="0"><IMG NAME="IDQuickSiteMain4" SRC="/media/elements/LayoutClipart/../LayoutClipart/AccentGraphics/Accent_Sphere_Black.gif" HEIGHT="16" WIDTH="16" BORDER="0"><IMG SRC="/tp.gif" WIDTH="10" HEIGHT="16" BORDER="0"><FONT ID="QuickSiteMain_f4" FACE="Arial, Helvetica, sans-serif" CLASS="size14 Arial14" STYLE="color:#666666">Consulting Services </FONT><IMG SRC="/tp.gif" WIDTH="8.0" HEIGHT="1" BORDER="0"></A></TD><TD ALIGN="center" VALIGN="MIDDLE" NOWRAP="NOWRAP" id="QuickSiteMain_Link5" style="cursor: pointer;cursor: hand;color:#666666;font-size: 1px; line-height: 1px;" onmouseover="doMouseChange(nav_QuickSiteMain,this,'5',true);" onmouseout="doMouseChange(nav_QuickSiteMain,this,'5',false);"><A HREF="/Contact-Us.html" TARGET="_self" STYLE="text-decoration:none;" NAME="Contact Us"><IMG SRC="/tp.gif" WIDTH="7.0" HEIGHT="1" BORDER="0"><IMG NAME="IDQuickSiteMain5" SRC="/media/elements/LayoutClipart/../LayoutClipart/AccentGraphics/Accent_Sphere_Black.gif" HEIGHT="16" WIDTH="16" BORDER="0"><IMG SRC="/tp.gif" WIDTH="10" HEIGHT="16" BORDER="0"><FONT ID="QuickSiteMain_f5" FACE="Arial, Helvetica, sans-serif" CLASS="size14 Arial14" STYLE="color:#666666">Contact Us</FONT></A></TD></TR></TABLE></TD></TR></TABLE><BR/><script type="text/javascript">
if(typeof(addMouseAndStyleSupportQuickSiteMain) == 'undefined' && typeof(nav_element_id) != 'undefined'){

var elementDefnDiv = document.getElementById(nav_element_id);
var tbWasIdentified = 'false&#39
for(var i=0;i<elementDefnDiv.childNodes.length;i++){

Code: Select all

if(elementDefnDiv.childNodes[ 
         i 
     ].tagName == 'DIV') { 

 var childDiv = elementDefnDiv.childNodes[ 
             i 
         ]; 
 for(var j=0;j<childDiv.childNodes.length;j++){ 

  if(childDiv.childNodes[ 
                 j 
             ].tagName == 'TABLE' && childDiv.childNodes[ 
                 j 
             ].id == 'ntb'){ 

   childDiv.childNodes[ 
                     j 
                 ].style.display='none&#39 
   tbWasIdentified = 'true&#39 

             } 
  if(tbWasIdentified == 'true'){ 

   break; 

             } 

         } 

     } 
if(tbWasIdentified == 'true'){ 

 break; 

     } 

 } 

} else {

addMouseAndStyleSupportQuickSiteMain(nav_QuickSiteMain);

}
</script><><><!-- </hs:element53> --><!-- <hs:element58> --><div id="element58" style="position: absolute; top: 161px; left: 683px; width: 208px; height: 137px; z-index: 18;"><div style="overflow: hidden; height: 137px; width: 208px; border: 0px solid #52A8EC; border-radius: 0px; box-shadow: none;"><img height="137" width="208" style="display: block; border-radius: 0px;" title="" alt="" src="BlackRewardsFront.jpg" /><><><!-- </hs:element58> --><!-- <hs:element59> --><div id="element59" style="position: absolute; top: 712px; left: 1px; width: 632px; height: 44px; z-index: 19;"><table cellspacing="0" border="0" cellpadding="0"><tr><td height="44" bgcolor="#666666" width="632"><img height="44" width="632" title="" alt="" style="display: block;" src="/site/siteapps/shapes.action?CMD=GetRectangleGif&r=102&g=102&b=102"></td></tr></table><><!-- </hs:element59> --><!-- <hs:element60> --><div id="element60" style="position: absolute; top: 718px; left: 31px; width: 582px; height: 32px; z-index: 20;"><div style="font-size: 1px; line-height: 1px;"><font face="Georgia, Times, serif" color="#FFFFFF" class="size22 Georgia22">TSGI Announces New Consulting Workshops<br></font><><><!-- </hs:element60> --><!-- <hs:element61> --><div id="element61" style="position: absolute; top: 809px; left: 30px; width: 599px; height: 68px; z-index: 21;"><div style="font-size: 1px; line-height: 1px;"><font face="Arial, Helvetica, sans-serif" color="#FFFFFF" class="size11 Arial11">TSGI Consulting is working on new programs and workshops that will be launching soon. Keep a look out on the </font><font face="Arial, Helvetica, sans-serif" color="#FFFFFF" class="size11 Arial11"><a target="_self" href="Consulting-Services.html">Consulting Services</a></font><font face="Arial, Helvetica, sans-serif" color="#FFFFFF" class="size11 Arial11"> tab for the upcoming schedule. Our consulting team would love to meet with you individually to discuss how we can help your business grow and prosper. Call to schedule your appointment today.<br></font><><><!-- </hs:element61> --><!-- <hs:element62> --><div id="element62" style="position: absolute; top: 754px; left: 2px; width: 630px; height: 3px; z-index: 22;"><table cellpadding="0" width="630" cellspacing="0" border="0"><tr><td colspan="2" bgcolor="#FFFFFF"><img style="display: block;" height="1" width="629" border="0" alt="" src="/site/siteapps/shapes.action?CMD=GetRectangleGif&r=255&g=255&b=255"></td><td><img style="display: block;" height="1" width="1" border="0" alt="" src="/site/siteapps/shapes.action?CMD=GetCornerGif&w=1&h=1&r2=255&g2=255&b2=255&r=150&g=150&b=150"></td></tr><tr><td bgcolor="#FFFFFF"><img style="display: block;" height="1" width="1" border="0" alt="" src="/site/siteapps/shapes.action?CMD=GetRectangleGif&r=255&g=255&b=255"></td><td bgcolor="#FFFFFF"><img style="display: block;" height="1" width="628" border="0" alt="" src="/site/siteapps/shapes.action?CMD=GetRectangleGif&r=255&g=255&b=255"></td><td bgcolor="#969696"><img style="display: block;" height="1" width="1" border="0" alt="" src="/site/siteapps/shapes.action?CMD=GetRectangleGif&r=150&g=150&b=150"></td></tr><tr><td><img style="display: block;" height="1" width="1" border="0" alt="" src="/site/siteapps/shapes.action?CMD=GetCornerGif&w=1&h=1&r2=255&g2=255&b2=255&r=150&g=150&b=150"></td><td colspan="2" bgcolor="#969696"><img style="display: block;" height="1" width="629" border="0" alt="" src="/site/siteapps/shapes.action?CMD=GetRectangleGif&r=150&g=150&b=150"></td></tr></table><><!-- </hs:element62> --><!-- <hs:element63> --><div id="element63" style="position:

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Automatically Create Service Response fails with incorrect format

You have not valid xml. In valid xml all tags should be terminated. There are a lot of unterminated tags in this xml: img, link, meta...
Please validate your xml, use http://www.w3schools.com/xml/xml_vali... for example.

Dianna
Posts: 0
Joined: Thu Mar 06, 2014 7:00 pm

Automatically Create Service Response fails with incorrect format

Maybe I'm just very confused. If I have the URL how would I extract the xml?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Automatically Create Service Response fails with incorrect format

Dear Dianna,

There is some thoughts you need to understand before start to work on implementation:
ol
liYou want to work with some http handler which is not a service./li
liThat's why this handler response not XML./li
liAnd this response couldn't be parsed by internal functional./li
liSo to deal with this not specified handler you should implement "Generic (custom JavaScript implementation)". Here is how to do it: http://docs.appery.io/documentation/u.../li
liIn "Generic (custom JavaScript implementation)" you can parse response manually or in other way that you have found./li
/ol

Regards.

Return to “Issues”