当前位置: 首页 > 知识库问答 >
问题:

将SOAP:地址位置从http更改为https

邹涵畅
2023-03-14
<transportReceiver name="https"      class="org.apache.axis2.transport.http.SimpleHTTPServer"> <parameter     name="port">8443</parameter> 
</transportReceiver>
<transports> <transport>HTTPS</transport> </transports> 

它给了我例外

org.apache.axis2.deployment.DeploymentException: Service [ RTAPDevService] is trying to expose in a transport : <transports> <transport>HTTPS</transport> </transports> and which is not available in Axis2 – 

共有1个答案

严高峻
2023-03-14

xml中有一个错误。应该是:

<transports><transport>https</transport></transports>

不是HTTPS。

您的wsdl将如下所示:

 <wsdl:service name="SampleService">
<wsdl:port name="SampleServiceHttpsSoap11Endpoint" binding="ns:SampleServiceSoap11Binding">
<soap:address location="https://localhost:8443/Axis2HttpsProject/services/SampleService.SampleServiceHttpsSoap11Endpoint/"/>
</wsdl:port>
<wsdl:port name="SampleServiceHttpsSoap12Endpoint" binding="ns:SampleServiceSoap12Binding">
<soap12:address location="https://localhost:8443/Axis2HttpsProject/services/SampleService.SampleServiceHttpsSoap12Endpoint/"/>
</wsdl:port>
<wsdl:port name="SampleServiceHttpsEndpoint" binding="ns:SampleServiceHttpBinding">
<http:address location="https://localhost:8443/Axis2HttpsProject/services/SampleService.SampleServiceHttpsEndpoint/"/>
</wsdl:port>
</wsdl:service>
 类似资料:
  • 问题内容: 是的,我的应用程序服务器在https上运行。客户端要求将肥皂地址从http更改为https。 客户要求每当他想要2通过浏览器看到wsdl时,soap地址应为https 我已经在axis2.xml中添加了它… 我在service.xml中添加了以下内容 在关闭标签之后,但它给了我下面的错误。 它给了我例外 问题答案: service.xml中 有一个错字。它应该是 : 不是HTTPS。

  • 我有一个由Apache CXF WS生成的WSDL,如下所示 在application.java中 关于我的服务实现

  • 这里我使用Java第一种方法创建web服务。 我在JBOSS EAP6.0中使用endpointapi公开了一个使用JAX-WS的web服务。 无论我在上面的publish方法中为address字段提供了什么值,这都不重要,也就是说,我没有看到它的影响。上面的是我的Web服务实现类。部署完war文件后,我将获得在以下位置生成的WSDL文件。 %jboss_home%/standalone/data

  • 我们目前已经公开了具有以下URL的JAX-RPC Web服务 http://xx.xx.xx.xx/myservice/MYGatewaySoapHttpPort?wsdl 我们通过从上面的WSDL生成webservice,将webservice迁移到JAX-WS 但是新的网络服务可以从以下网址访问 http://xx.xx.xx.xx/myservice/MYGateway?wsdl 如何使我的

  • 我试图让量角器通过根据这个github问题设置seleniumServerJar路径来启动独立的Selenium服务器,但它在不同的地址和端口上启动selenium服务器,而不是使用java-jar或./node_modules/protractor/bin/webdriverManager启动。 从java开始-jar/path/to/jar输出: $java-jar selenium-serv

  • 问题内容: 我已经在Web项目的jsp / servlet中创建了一个登录应用程序,我想知道访问我的登录页面的不同用户的地理位置。我怎么知道某个人正在从哪里访问我的登录页面?例如:如果某人正在访问加拿大的页面,那么一条记录将插入到我的数据库中,例如:IP:20.4.9.134和位置:Canada。 问题答案: 我用这个: http://freegeoip.net/xml/122.169.8.137