简体   繁体   English

在Java中执行Axis2 Web服务客户端时响应代码为null,但在服务器端成功执行了Web服务

[英]Response code is null while executing Axis2 webservice client in java but webservice executed successfully at the server end

I am working on axis2 webservice in java for insertion of records into database. 我正在使用Java中的axis2 Web服务将记录插入数据库中。 i am testing the webservice client, it return null response code, actually i return integer value in webservice but i inserted the records in database successfully, i can able to see in my databnase while executing the client but it return null instead of integer response code 100.whenever i see the log file in server side, no exception rises. 我正在测试Web服务客户端,它返回空响应代码,实际上我在Web服务中返回整数值,但是我成功地在数据库中插入了记录,我可以在执行客户端时在数据库中查看它,但是它返回空而不是整数响应代码100.每当我在服务器端看到日志文件时,都不会出现异常。

I have faced similar issue, i resolved it through message inspector. 我遇到了类似的问题,我通过邮件检查器解决了。

Implement message inspector IClientMessageInspector capture and correct your response at AfterReceiveReply 实现消息检查器IClientMessageInspector捕获并在AfterReceiveReply更正您的响应

Please provide your response to help you. 请提供您的回复以帮助您。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM