Re: [問題] Web Service SOAP 之SOAPMessage解讀問題
< 前文恕刪 >
: //以下是回應時的SOAPMessage
: <?xml version="1.0" ?>
: <S:Envelope xmlns:S="" rel="nofollow">http://schemas.xmlsoap.org/soap/envelope/">
: <S:Body>
: <ns2:sayHelloResponse xmlns:ns2="" rel="nofollow">http://myself.idv.tw/">
: <return>Hello!!!!</return>
: </ns2:sayHelloResponse>
: </S:Body>
: </S:Envelope>
: //=====================================================================================
Client端:
org.blah.blah.HelloService service = new org.blah.blah.HelloService Hello();
org.blah.blah.Hello port = service.getsayHelloPort();
String result = port.sayHello();
System.out.println("result=" + result); //印出Hello!!!
不曉得你指的是不是這個?
(上面這只是大概寫法, 一定有錯^^" 詳細請見NetBeans文件)
有Step by Step的解說:
Getting Started with JAX-WS Web Services
http://www.netbeans.org/kb/60/websvc/jax-ws.html
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.47.46.80
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 3 篇):