1
기본 웹 서비스 (다음 코드)를 설정했습니다. 그런 다음 WSDL 파일을 생성했습니다 (오른쪽 클릭 -> WSDL 생성). 불행히도 SoapAction은 비어 있습니다. 어떤 충고? @WebService이 있었기 때문에 @WebService (name = "testService", targetNamespace = "test.test/webService")을 추가했습니다. 제가 도움이 될 것이라고 생각했습니다. 꽤 성가신 버그 (또는 인간의 어리 석음 ^^)생성 된 WSDL 파일이 비어 있습니다.
Tst289374.java :
package com.test;
import javax.jws.*;
import javax.jws.soap.SOAPBinding;
@WebService(name = "testService", targetNamespace = "test.test/webService")
public class Tst289374 {
@WebMethod
public void hello() {
}
}
WSDL :
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.2.6hudson-86 svn-revision#12773. -->
<definitions targetNamespace="http://test.com/" name="Tst289374Service" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:tns="http://test.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<types>
<xsd:schema>
<xsd:import namespace="http://test.com/" schemaLocation="Tst289374Service_schema1.xsd"/>
</xsd:schema>
</types>
<message name="hello">
<part name="parameters" element="tns:hello"/>
</message>
<message name="helloResponse">
<part name="parameters" element="tns:helloResponse"/>
</message>
<portType name="Tst289374">
<operation name="hello">
<input wsam:Action="http://test.com/Tst289374/helloRequest" message="tns:hello"/>
<output wsam:Action="http://test.com/Tst289374/helloResponse" message="tns:helloResponse"/>
</operation>
</portType>
<binding name="Tst289374PortBinding" type="tns:Tst289374">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="hello">
**<soap:operation soapAction=""/>**
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="Tst289374Service">
<port name="Tst289374Port" binding="tns:Tst289374PortBinding">
<soap:address location="REPLACE_WITH_ACTUAL_URL"/>
</port>
</service>
</definitions>
편집 : 또한하지 못했습니다 클릭이 생성 된 WSDL 파일 미상 비누 동작을하지 마십시오.