为何.net的Webservice产生的wsdl文件里会有两个端口的配置?

该service是给c++程序调用的,访问时需要指定wsdl文件里的端口,但我生成的wsdl里自动生成了两个端口的配置信息

(port name见以下AxionPosServiceSoap,AxionPosServiceSoap12).

<wsdl:service name="AxionPosService">

- < wsdl:port name =" AxionPosServiceSoap " binding =" tns:AxionPosServiceSoap ">
  < soap:address location =" http://localhost:1129/AxionPosService.asmx " />
  wsdl:port >
- < wsdl:port name =" AxionPosServiceSoap12 " binding =" tns:AxionPosServiceSoap12 ">
  < soap12:address location =" http://localhost:1129/AxionPosService.asmx " />
  wsdl:port >
- < wsdl:port name =" AxionPosServiceHttpGet " binding =" tns:AxionPosServiceHttpGet ">
  < http:address location =" http://localhost:1129/AxionPosService.asmx " />
  wsdl:port >
- < wsdl:port name =" AxionPosServiceHttpPost " binding =" tns:AxionPosServiceHttpPost ">
  < http:address location =" http://localhost:1129/AxionPosService.asmx " />
  wsdl:port >
  wsdl:service >
 

客户方的工程师说不知道该调用哪一个(由于我也不知道啥原因,只好跟客户说两个都试下^^):

至于原因我在网上找了相关的资料没啥收获,有哪位大侠能帮忙解释下么?

 

转载于:https://www.cnblogs.com/allen_he/archive/2009/10/30/1593131.html

你可能感兴趣的:(c#,c/c++)