如果请求中未提供命名空间前缀,java @webservice 将接收空参数值
webservice客户端正在发送如下请求,我必须让它工作我试图将目标命名空间删除为@WebService(targetNamespace =“”)
and
@WebMethod()
@WebResult(name = "fusionIntegrationResponse", targetNamespace = "")
@RequestWrapper(targetNamespace = "")
@ResponseWrapper(targetNamespace = "")
@Override`enter code here`
public FusionIntegrationResponse activateFusion(String agentId, String ucn, String companyId) {
WSDL always add targetnamespace and if I remove explicitly it says invalid definition.
**webservice receives null values for all parameter for following soap request message.**
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<activateFusion xmlns="http://ws.fusionintegration.service.fnb.co.za/">
<arg0>F3015505</arg0>
<arg1>96334</arg1>
<arg2>15</arg2>
</activateFusion>
</SOAP-ENV:Body></SOAP-ENV:Envelope>
**following works fine**
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.fusionintegration.service.fnb.co.za/">
<soapenv:Header/>
<soapenv:Body>
<ws:activateFusion>
<arg0>F3015505</arg0>
<arg1>96334</arg1>
<arg2>15</arg2>
</ws:activateFusion>
</soapenv:Body>
</soapenv:Envelope>