In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-10-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
1. Add the interface package com.ultrapower.ioss.projectsign.service;import javax.jws.WebMethod;import javax.jws.WebParam;import javax.jws.WebService that depends on org.apache.cxf cxf-spring-boot-starter-jaxws 3.2.72 and defines webservice @ WebServicepublic interface ProjectSignService {@ WebMethod String sendResInfo (@ WebParam (name = "serSupplier") String serSupplier, @ WebParam (name = "serCaller") String serCaller, @ WebParam (name = "callerPwd") String callerPwd, @ WebParam (name = "callTime") String callTime, @ WebParam (name = "opDetail") String opDetail);} 3, complete the implementation of the interface package com.ultrapower.ioss.projectsign.service.defaults;import javax.jws.WebService Import org.springframework.beans.factory.annotation.Autowired;import com.ultrapower.ioss.projectsign.service.ProjectSignService;/** * Note: the comment before the interface implementation class name targetNamespace is the reverse order of the package name of the current class implementation interface (PS: plus a backslash). * endpointInterface is the full name of the interface to be implemented. @ WebService (targetNamespace= "http://service.webservicedemo.dbgo.com/", * endpointInterface =" com.dbgo.webservicedemo.service.UserService ") * / @ WebService (targetNamespace=" http://service.projectsign.ioss.ultrapower.com/",endpointInterface = "com.ultrapower.ioss.projectsign.service.ProjectSignService") public class ProjectSignWebService implements ProjectSignService {@ Override public String sendResInfo (String serSupplier, String serCaller, String callerPwd, String callTime, String opDetail) {return "success" }} 4, add configuration / * http://localhost:8080/services/project?wsdl * / @ Configurationpublic class WebServiceConfig {@ Autowired private Bus bus; @ Bean public Endpoint endpoint () {EndpointImpl endpoint = new EndpointImpl (bus, projectSignService ()); endpoint.publish ("/ project"); / / endpoint.getInInterceptors () .add (new LoggingInInterceptor ()); / / endpoint.getOutInterceptors () .add (new LoggingOutInterceptor ()) Swagger2Feature feature = new Swagger2Feature (); feature.setBasePath ("/ ws"); feature.setSupportSwaggerUi (true); endpoint.setFeatures (Arrays.asList (new Feature [] {feature})); return endpoint;} @ Bean (name = Bus.DEFAULT_BUS_ID) public SpringBus springBus () {return new SpringBus ();} @ Bean public ProjectSignService projectSignService () {return new ProjectSignWebService () }}
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.