如何修改soap消息参数
我当前的SOAP1.1消息运行良好,并产生了适当的结果。但是,SOAP消息将参数设置为arg0、arg1、arg2。。。我想传递带有标记名的参数,比如,fName,lName,age,gender 为了实现这一点,我需要对服务器端服务进行哪些更改如何修改soap消息参数,soap,Soap,我当前的SOAP1.1消息运行良好,并产生了适当的结果。但是,SOAP消息将参数设置为arg0、arg1、arg2。。。我想传递带有标记名的参数,比如,fName,lName,age,gender 为了实现这一点,我需要对服务器端服务进行哪些更改 <?xml version=1.0 encoding=UTF-8?> <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"
<?xml version=1.0 encoding=UTF-8?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">
<S:Header/>
<S:Body>
<ns2:getRelatedClassModels xmlns:ns2="http://service.accounting.cassit.com/">
<arg0 xsi:type=xsd:string>Aqif</arg0>
<arg1 xsi:type=xsd:string>hameed</arg1>
</ns2:getRelatedClassModels>
</S:Body>
</S:Envelope>
Aqif
哈米德
我希望它是这样的
<?xml version=1.0 encoding=UTF-8?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">
<S:Header/>
<S:Body>
<ns2:getRelatedClassModels xmlns:ns2="http://service.accounting.cassit.com/">
<fName>Aqif</fName>
<lName>hameed</lName>
</ns2:getRelatedClassModels>
</S:Body>
</S:Envelope>
Aqif
哈米德
Aqif
哈米德
SOAPV1.2及更高版本可以使用这种类型的消息结构。我必须升级我的SOAP版本。您不能随意更改消息结构。事实就是这样。但是你没有给我们任何关于这意味着什么,你在使用什么软件的上下文,所以这个问题是无法回答的。
<?xml version=1.0 encoding=UTF-8?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">
<S:Header/>
<S:Body>
<ns2:getRelatedClassModels xmlns:ns2="http://service.accounting.cassit.com/">
<fName>Aqif</fName>
<lName>hameed</lName>
</ns2:getRelatedClassModels>
</S:Body>
</S:Envelope>