我们已经使用Apache CXF开发了Web服务,并且它们运行良好。
这是我们生成的wsdl文件(http:// localhost:8080 / MyWeb / tata / soap?wsdl)的一部分。
<xs:sequence>
<xs:element minOccurs="0" name="strikePrice" type="xs:double"/>
<xs:element minOccurs="0" name="symbol" type="xs:string"/>
</xs:sequence>
<soap:body use="literal"/>
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
Run Code Online (Sandbox Code Playgroud)
我们已经使用Apache CXF开发了Web服务,并且它们运行良好。
在阅读Web服务性能调整教程时,我始终阅读文档文字以实现互操作性。
我的问题是,我的WSDL是文件/文字吗?
因为Internet上的大多数教程都用xsd:String代替(xs:String)来表示文档/文字方法?
xs:String和xsd:String是否相同?
xs:string和xsd:string相同,只要前缀“ xs”和“ xsd”都绑定到名称空间URI“ http://www.w3.org/2001/XMLSchema”即可。