AXIS2如何才能返回以下这样数据?注意返回有多个值。<?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" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<NS1:SAS_GetRecordsResponse xmlns:NS1="http://www.borland.com/namespaces/Types">
<return xsi:type="xsd:base64Binary">BR0UIAAQAAAAAAAAAAAAIc</return>
<RecsOut xsi:type="xsd:int">2</RecsOut>
<NS1:Params xsi:NULL="true"/>
<NS1:OwnerData xsi:NULL="true"/>
</NS1:SAS_GetRecordsResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>这个返回值对应调用的xml是,请注意Params和OwnerData和上边是人返回是同一个名字。
<?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" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<NS1:SAS_GetRecords xmlns:NS1="http://www.borland.com/namespaces/Types">
<ProviderName xsi:type="xsd:string">prvTestSoap</ProviderName>
<Count xsi:type="xsd:int">100</Count>
<Options xsi:type="xsd:int">1</Options>
<CommandText xsi:type="xsd:string">SELECT * FROM T_TEST_SOAP</CommandText>
<NS1:Params xsi:NULL="true"/>
<OwnerData xsi:type="xsd:string"/>
</NS1:SAS_GetRecords>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
<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" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<NS1:SAS_GetRecordsResponse xmlns:NS1="http://www.borland.com/namespaces/Types">
<return xsi:type="xsd:base64Binary">BR0UIAAQAAAAAAAAAAAAIc</return>
<RecsOut xsi:type="xsd:int">2</RecsOut>
<NS1:Params xsi:NULL="true"/>
<NS1:OwnerData xsi:NULL="true"/>
</NS1:SAS_GetRecordsResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>这个返回值对应调用的xml是,请注意Params和OwnerData和上边是人返回是同一个名字。
<?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" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<NS1:SAS_GetRecords xmlns:NS1="http://www.borland.com/namespaces/Types">
<ProviderName xsi:type="xsd:string">prvTestSoap</ProviderName>
<Count xsi:type="xsd:int">100</Count>
<Options xsi:type="xsd:int">1</Options>
<CommandText xsi:type="xsd:string">SELECT * FROM T_TEST_SOAP</CommandText>
<NS1:Params xsi:NULL="true"/>
<OwnerData xsi:type="xsd:string"/>
</NS1:SAS_GetRecords>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
解决方案 »
- MyEclipse中新建一个web项目,一打开jsp页面就弹出页面错误
- JAVA发送邮件的问题!需要权限认证。
- java EE 工作流框架的选择
- 无法启动j2ee 求救
- 我想得到一个局部变量的变量名,具体来说应该怎么做啊?
- java json乱码
- 把中文写入word文件有乱码,应该如何解决呢
- 还是没有解决??Struts,急急急!!!!郁闷中....代码好像都没有错了啊.
- struts中的ActionForm中,reset(ActionMapping actionMapping, HttpServletRequest httpServletRequest)的用法
- 那位哥哥能给我一份struts的详细配置,小弟我感激不尽,并以200分相送
- webservice客户端代码如何才算一个request请求
- 运用java在图片上画点
<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" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<NS1:SAS_GetRecordsResponse xmlns:NS1="http://www.borland.com/namespaces/Types">
<return xmlns:p0="http://tempuri.org/">
<return xsi:type="xsd:base64Binary">BR0UIAAQAAAAAAAAAAAAIc </return>
<RecsOut xsi:type="xsd:int">2 </RecsOut>
<NS1:Params xsi:NULL="true"/>
<NS1:OwnerData xsi:NULL="true"/>
</return>
</NS1:SAS_GetRecordsResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>