doujingya1166 2011-06-08 09:50
浏览 95
已采纳

测试Web服务

I would like to test my web services (wsdl/soap/php) that is exposed to my clients. ihave test it with the browsers and it's good, but when my clients test it , they have the 400 bad request error.( they test with soapui). what are the tools that i can test my web services that it exposed to my clients ? How can i verify that my server apache responds very good to http calls ?

Thanks for your answers.

  • 写回答

1条回答 默认 最新

  • donglu2761 2011-06-08 10:10
    关注

    You are in an integration scenario: you've published an interface and some code over which you have no control is trying to use it.

    Web Services, even simple ones, let along the full panoply of WS-* capabilities are notorious for subtle interoperability problems. These especially come from small version skew issues.

    I see two fundamental philosophies here, I'm rather over-stating, to make the point:

    1. You say: I publish this interface, with this WSDL, this version of the WS specs, I test it with this message and it works. You clients are responsible for creating a conformant request. I've given you a sample, it's up to to fit me. Your responsibilities are limited to producing clear working sample messages.
    2. You take responsibility for conducting interoperability testing for some set of client technologies. You clearly can't test everything, but if you some key "customers" you get or build sample applications and make sure they work. You probably end up documenting "use these options when generating client code".

    Either way I'd suggest you need to write test clients of your own, and as a Java developer I use JUnit for that. This get's me to step 1 above.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?