钧明项目复盘
原创约 1437 字大约 5 分钟...
169-钧明项目复盘.md
注意
本博文仅供学术研究和交流参考,严禁将其用于商业用途。如因违规使用产生的任何法律问题,使用者需自行负责。
远程连接
向日葵 506 780 147 密码 3636

SVN地址
服务端


用户名密码
user/jmuser administrator/jmadmin
WEB端地址
http://183.63.111.61:6888/eassso/login?service=http%3A%2F%2F183.63.111.61%3A6888%2Fportal%2F
webservice接口

- 使用工具: SoapUI
- 参数
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:log="http://login.webservice.bos.kingdee.com">
<soapenv:Header/>
<soapenv:Body>
<log:login soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<userName xsi:type="xsd:string">kduser</userName>
<password xsi:type="xsd:string">a</password>
<slnName xsi:type="xsd:string">eas</slnName>
<dcName xsi:type="xsd:string">junming2020</dcName>
<language xsi:type="xsd:string">L2</language>
<dbType xsi:type="xsd:int">1</dbType>
</log:login>
</soapenv:Body>
</soapenv:Envelope>
- 结果
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:loginResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://login.webservice.bos.kingdee.com">
<loginReturn href="#id0"/>
</ns1:loginResponse>
<multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:WSContext" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="urn:client">
<dbType xsi:type="xsd:int">1</dbType>
<dcName xsi:type="xsd:string">junming2020</dcName>
<password xsi:type="xsd:string">a</password>
<sessionId xsi:type="xsd:string">fadf063f-7526-45cf-bc74-d79354d53e4b</sessionId>
<slnName xsi:type="xsd:string">eas</slnName>
<userName xsi:type="xsd:string">kduser</userName>
</multiRef>
</soapenv:Body>
</soapenv:Envelope>

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservice.app.kh.custom.eas.kingdee.com">
<soapenv:Header/>
<soapenv:Body>
<web:customerDataAdd soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<param xsi:type="xsd:string">
<![CDATA[
<item>
<name>佛山钧明物业管理有限公司</name>
<taxNumber>JM001.03.02</taxNumber>
<clientType>SFTS01</clientType>
<createOrg>JM001.03.01</createOrg>
<financeorgNumber>JM001.03.01</financeorgNumber>
</item>
]]>
</param>
</web:customerDataAdd>
</soapenv:Body>
</soapenv:Envelope>
- 结果
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:customerDataAddResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://webservice.app.kh.custom.eas.kingdee.com">
<customerDataAddReturn xsi:type="xsd:string">{"id":"5wJ6KKvRRZKDYsRj4URQIr8MBA4=","state":"0","number":"SFTS01-JM001.03.01-000023","msg":"客户接口————添加成功,客户fid为:5wJ6KKvRRZKDYsRj4URQIr8MBA4=;客户编码为:SFTS01-JM001.03.01-000023"}</customerDataAddReturn>
</ns1:customerDataAddResponse>
</soapenv:Body>
</soapenv:Envelope>


- 收款单接口: 127.0.0.1:56898/ormrpc/services/WSReceiptFacade?wsdl
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservice.app.sk.custom.eas.kingdee.com">
<soapenv:Header/>
<soapenv:Body>
<web:receiptAdd soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<param xsi:type="xsd:string">
<![CDATA[
<item>
--单头
<billHead>
<bizDate>2019-8-05</bizDate>--业务日期(必录)
<companyNumber>JM001.06</companyNumber>--公司编码(必录)
<realRecCompanyID>JM001.02.03</realRecCompanyID>--实际收款公司
<feeTypeID></feeTypeID>--收付类别
<receivingBillType>999</receivingBillType>--收款类型(必录)
<currencyID>BB01</currencyID>--币别(必录)
<payeeAccountBankID>02</payeeAccountBankID>--收款账户
<payeeAccountID>1002.02.01</payeeAccountID>--收款科目
<bizTypeID>01</bizTypeID>--业务种类
<settleTypeID>014</settleTypeID>--结算方式
<settlementNumber>01</settlementNumber>--结算号
<oppBgItemNumber></oppBgItemNumber>--流入预算项目编码
<adminOrgUnitId>JM</adminOrgUnitId>--部门
<costCenterID>JM001.01.01.03</costCenterID>--成本中心
<personId>邱文</personId>--人员
<payerTypeID></payerTypeID>--往来类型编码
<payerNumber></payerNumber>--往来户编码
<recPayerTypeID>00001</recPayerTypeID>--付款人类型
<billMakerName>NB039</billMakerName>--付款人名称
<payerAccountBank>01</payerAccountBank>--付款账户
<payerAccountNumber>交通银行</payerAccountNumber>--付款银行
<projectID>JM001.02.02YJJM.002</projectID>--项目
<oppAccountID>1101.01</oppAccountID>--对方(付款)科目
<description>107</description>--摘要
<eraNumber>038</eraNumber>--时代单号(必录)
</billHead>
--分录
<entrys>
<billEntry>
<amount>111</amount>--收款金额(必录)
<rebateLocAmt>111</rebateLocAmt>--折本位币
<oppAccountID></oppAccountID>--对方科目
<costCenterID>JM001.01.01.04</costCenterID>--成本中心
<expenseTypeID>GC003</expenseTypeID>--费用类型
<oppBgItemId></oppBgItemId>--流入预算项目
<remark>haha</remark>--备注
<roomMessage>记录</roomMessage>--房间信息
</billEntry>
</entrys>
</item>
]]>
</param>
</web:receiptAdd>
</soapenv:Body>
</soapenv:Envelope>

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://service.kingdee.modules.andyou.com/">
<soapenv:Header/>
<soapenv:Body>
<ser:deleteCustByEasId>
<!--Optional:-->
< easId >123456</ easId >
</ser:deleteCustByEasId>
</soapenv:Body>
</soapenv:Envelope>

原因:

最终证实确为客户现场网络中断所致
解决不存在方法名的bug
如下图所示,在总的接口里没有找到这个方法

路径:F:\EASserver85\eas\server\deploy\eas.ear 路径: E:\JM200515\Project_0\runtime\server\deploy\eas.ear
- 找到这接口文件发布生成文件


- 将其替换客户端的web.war包

- 打开对应的wsdd文件将其对应的文件复制

- 将其粘贴在配置服务文件内

- 最后重启服务端和客户端
备注:以上均上在客户端进行war包进行
打包布署
如下图所示,打包命令所处的位置如下

打包命令 build.bat
bat文件内容
@echo off&setlocal enabledelayedexpansion
set jdkdir=E:\EAS85BOS\bos\bos\BOSModular\jdk\bin\
set metadata=E:\JM200515\Project_0\metadata\com\kingdee\eas\custom\
set deployed_metas=E:\JM200515\Project_0\deployed_metas\com\kingdee\eas\custom\
set classes=E:\JM200515\Project_0\classes\com\kingdee\eas\custom\
set outpath=E:\patchWPS\
set targetpath=%outpath%target\
set srvpath=%targetpath%server\
set metasName=jm_custom_tender-metas.jar
set className=jm_custom_tender-class.jar
echo start&pause
if not exist %outpath% mkdir %outpath%
%jdkdir%jar cvf %outpath%%metasName% -C %deployed_metas% com
%jdkdir%jar uvf %outpath%%metasName% -C %deployed_metas% entity_pkmapping.properties
%jdkdir%jar uvf %outpath%%metasName% -C %deployed_metas% facade_pkmapping.properties
%jdkdir%jar uvf %outpath%%metasName% -C %deployed_metas% bim.log
%jdkdir%jar uvf %outpath%%metasName% -C %deployed_metas% bim.permission
%jdkdir%jar cvf %outpath%%className% -C %classes% .
if not exist %srvpath% (
mkdir %srvpath%
mkdir %srvpath%metas\sp
mkdir %srvpath%deploy\fileserver.ear\easWebClient\metas\sp
mkdir %srvpath%lib\sp
mkdir %srvpath%deploy\fileserver.ear\easWebClient\lib\sp
mkdir %srvpath%deploy\fileserver.ear\easWebClient\deploy
)
copy %outpath%%metasName% %srvpath%metas\sp
copy %outpath%%metasName% %srvpath%deploy\fileserver.ear\easWebClient\metas\sp
copy %outpath%%className% %srvpath%lib\sp
copy %outpath%%className% %srvpath%deploy\fileserver.ear\easWebClient\lib\sp
echo success&pause
根据提示运行后可得到如下文件,而在确定server里不是空的文件夹有对应的jar文件则表示打包成功,而server文件则是我们想要的,常规操作是将server文件压缩进行后续操作



遇到的问题
收款单的编码规则未启用

WEB端bug

分割线
相关信息
以上就是我关于 钧明项目复盘 知识点的整理与总结的全部内容,希望对你有帮助。。。。。。。
Powered by Waline v2.15.4