soap命名空间的别名

xiaoxiao2021-02-27  162

通过客户端程序调用SOAP WEB Service,返回的消息中会给命名空间给一个别名(xmlns:p254=”http://test.ws.zz.yy.xx.com”),但服务端并没有任何地方指定别名为p254,但无论通过哪种方式调用,这个别名都是固定的,那么这个别名是怎么指定的呢?

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header/> <soapenv:Body> <testResp> <testReturn xmlns:p254="http://test.ws.zz.yy.xx.com"> <p254:name>abc</p254:name> <p254:email>xx@yy.com</p254:email> </testReturn> </testResp>

回答


abc xx@yy.com 这样应该也可以,p254相当于一个变量吧

转载请注明原文地址: https://www.6miu.com/read-16281.html

最新回复(0)