使用myeclipse7+tomcat6+jdk5,开发webservice服务端,用myeclipse的webservice explore 调试没问题。
使用delphi soap开发客户端调用service接口,进入断点调试时发现传递的参数值到了webservice的实现方法里是空值,不知怎么回事?以前用xFire实现过类似的功能都正常?不知JAX-WS有什么问题,求教?
使用delphi soap开发客户端调用service接口,进入断点调试时发现传递的参数值到了webservice的实现方法里是空值,不知怎么回事?以前用xFire实现过类似的功能都正常?不知JAX-WS有什么问题,求教?
JAX-WS参数传递的问题 解决了吗?我在开发时先遇到了同样的问题,能提供下解决方法不?用myeclipse的webservice explore 调试SOAP消息如下:
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns0="http://ws.myeclipseide.com/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns0:getSum>
<arg0>1</arg0>
<arg1>2</arg1>
</ns0:getSum>
</soapenv:Body>
</soapenv:Envelope>delphi调试SOAP消息如下:
<?xml version="1.0"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<getSum xmlns="http://ws.myeclipseide.com/">
<arg0>1</arg0>
<arg1>2</arg1>
</getSum>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>可见其主要差别为命名空间定义出现了错误!
不知要从DELPHI端解决,还是到JAVA端解决!
InvRegistry.RegisterInvokeOptions(TypeInfo(soapservice), ioDocument);
这样的一行就可以了,中文资料里边居然没有这样的解答,郁闷。