java中用axis调用多入参的webservice出现No such operation 'callWebService'的错误如何解决
java中用axis调用多入参的webservice出现No such operation 'callWebService'的错误如何解决?
在java中调用的入参报文如是:
<?xml version="1.0" encoding="UTF-8"?>
<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:callWebService soapenv:encodingStyle=" http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1=" http://webservice.bsn.ztesoft.com">
<connectId xsi:type="xsd:string">1</connectId>
<content xsi:type="xsd:string"><?xml version="1.0" encoding="UTF-8"?><AccumulatorQueryReq><AccNbr>18919800951</AccNbr><QryType>1</QryType><FamilyId>10</FamilyId><BeginMonth>2011-09</BeginMonth><EndMonth>2011-09</EndMonth><QueryType>50</QueryType><SysCode></SysCode></AccumulatorQueryReq></content>
<passwd xsi:type="xsd:string">1</passwd>
<srvFunction xsi:type="xsd:string">AccumulatorQuery</srvFunction>
<srvModule xsi:type="xsd:string">AccumulatorQuerySrv</srvModule>
</ns1:callWebService>
</soapenv:Body>
</soapenv:Envelope>
正确的入参报文是:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:m0="http://model.webservice.bsn.ztesoft.com">
<SOAP-ENV:Body>
<m:callWebService xmlns:m="http://webservice.bsn.ztesoft.com" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<requMessage xsi:type="m0:RequMessage">
<connectId xsi:type="xsd:string">1</connectId>
<content xsi:type="xsd:string"><?xml version="1.0" encoding="UTF-8"?><AccumulatorQueryReq><AccNbr>18919800951</AccNbr><QryType>1</QryType><FamilyId>10</FamilyId><BeginMonth>2011-09</BeginMonth><EndMonth>2011-09</EndMonth><QueryType>50</QueryType><SysCode></SysCode></AccumulatorQueryReq>
</content>
<passwd xsi:type="xsd:string">1</passwd>
<srvFunction xsi:type="xsd:string">AccumulatorQuery</srvFunction>
<srvModule xsi:type="xsd:string">AccumulatorQuerySrv</srvModule>
</requMessage>
</m:callWebService>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
比较java中该调用错误的报文和正确的报文,发现错误的原因好像是入参报文中缺少一层节点
<requMessage xsi:type="m0:RequMessage">
...
</requMessage>
现在的问题是:如何在java程序中增加这样的节点呢?还是有其他的错误原因?求高手解答。