4
SOAP 웹 서비스를 연구 중입니다. @webService (endPointInterface =), @ WebMethod, @ WebResult와 같은 주석을 사용했습니다.자바에서 webservice에 SOAP 작업을 추가하는 방법은 무엇입니까?
Code :
<wsdl:operation name="thumbNailImageService">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="thumbNailImageService">
<soap:body use="literal"/>
</wsdl:input>
나는 위의 요청에 대한 WSDL을 얻고있다,하지만 내 SOAP 조치가 null (빈 문자열)입니다.
주석과 같은 Java 코드에서 SOAP 동작을 추가하고 싶습니다. 필요
해상도 :
<soap:operation soapAction="Any Action URl points to service" style="document"/>
주석을 사용하여 SOAP 조치를 추가하는 자바 코드를 사용하여 저를 도와주세요.
나는 다음과 같이 그것을 가져 오기 또는 라이브러리를 사용하고 있습니다 : 당신이 @WebMethod
주석의 action
속성을 지정할 수 있습니다 JAX-WS로
**import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.Style;
import javax.jws.soap.SOAPBinding.Use;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlRootElement;**
감사