最近試著將POJO web service打包成war部署到JBoss上(同樣的war部署在Glassfish上運行良好)
一
這意味著必須修改/增加兩個文件
本人曾試了半天
WEB
WEB
WEB
WEB
WEB
WEB
WEB
WEB
WEB
別問我到底哪個是哪個
二
好像是去年
JBoss
jbossws
jbossws
jbossws
jbossws
這個也無濟於事
最終
總結
1
2
3
Why JBoss then? 答案是我兒子的口頭禅
附上相關文件
{code}
package com
import javax
import javax
import javax
import javax
import javax
import com
import com
@WebService
@SOAPBinding(
style = SOAPBinding
use = SOAPBinding
parameterStyle=SOAPBinding
)
public interface VodOptService {
@WebMethod
@WebResult( name=
targetNamespace=
partName=
public GetPersonResponse getPerson( @WebParam(name=
targetNamespace=
partName=
GetPersonRequest request);
}
package com
import java
import javax
import org
import com
import com
import com
import com
@WebService(serviceName=
public class VodOptServiceImp implements VodOptService {
private static final Logger log = Logger
private static final String MSISDN =
public GetPersonResponse getPerson(GetPersonRequest request) {
GetPersonResponse response = new GetPersonResponse();
if(request == null) {
log
ServiceMessage
msg
msg
ArrayList<ServiceMessage
msglist
ServiceMessage error = new ServiceMessage();
error
response
return response;
}
String msisdn = request
log
Person person = new Person();
person
person
person
response
return response;
}
}
<?xml version=
<!
<web
xmlns=
xmlns:web=
xsi:schemaLocation=
version=
<display
<description>vodws</description>
<!
<listener>
<listener
com
</listener
</listener>
<servlet>
<description>vod opt web service</description>
<display
<servlet
<servlet
<load
</servlet>
<servlet
<servlet
<url
</servlet
<!
</web
<?xml version=
<!
<endpoints
xmlns=
version=
<endpoint
name=
implementation=
service=
port=
url
</endpoints>
{code}
From:http://tw.wingwit.com/Article/program/Java/ky/201311/28616.html