<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!DOCTYPE html>
<html>


<body>


<div class="container"><!-- container start -->
	<button onclick="requestJson()">点击发送Json</button>
</div><!-- container end -->

<jsp:include page="../../../header.jsp"/>
<!-- script -->
<script type="text/javascript">

    function requestJson(){
		alert("发送")
       var jsonData = {
            "jobName": "ServiceBus",
           "xmlHead": {
                <!--标识符-->
                "sysFlag": "JSBQW",
                <!--交易码-->
                "transCode": "SV000387"
            },
            "tbResultList": [
                {
                    <!--保单号-->
                    "policyNo": "SV5N2213201700380632",
                    <!--导入批次号-->
                    "importSN": "81OO10330396",
                    <!--保费-->
                    "premium": "1400",
                    <!--保额大写-->
                    "amountUp": "伍拾万元整",
                    <!--保费大写-->
                    "premiumUp": "伍佰玖拾肆元整",
                    <!---->
                    "isSuccess": "true",
                    <!--投保单号-->
                    "proposalNo": "TV5N2213201700380632"
                }
            ]
        };
        $.ajax({
            type:'post',
     /*       sendMess*/
            url:'/YG-API/sendMess',
         /*   contentType:'application/json;charset=utf-8',//指定为json类型*!/
//数据格式是json串，商品信息
        data:JSON.stringify(jsonData),*/
            success:function(data){//返回json结果
                alert(data.name);
            }
        });
    }
</script>

</body>
</html>