| Author |
how to convert soap to java
|
everson santos
Ranch Hand
Joined: Jul 11, 2009
Posts: 50
|
|
I have a java WS that get a soap from a php WS. I'd like know which object to use as parameter on method and how can i unmarshall the xml
|
 |
Naren Chivukula
Ranch Hand
Joined: Feb 03, 2004
Posts: 542
|
|
That depends on WSDL provided by your PHP service. You can see details in that.
|
Cheers,
Naren (SCJP, SCDJWS and SCWCD)
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12268
|
|
ArrayList is NOT a standard SOAP type - think in terms of an array of standard SOAP variables.
If you really need an ArrayList (which I doubt) it is easy enough to make one.
Bill
|
Java Resources at www.wbrogden.com
|
 |
everson santos
Ranch Hand
Joined: Jul 11, 2009
Posts: 50
|
|
Hii
The value passed through list param came as ElementNSImpl, I used ArrayList because php client send as param an array
***************************
]while($xx = pg_fetch_assoc($result) ){
$lista[]=$xx;
}
//call webservice
$res = $client->testList(new SoapParam($lista, "lista"));
***************************
I'm taking org.apache.xerces.dom.ElementNSImpl as value inside list object
But i don't know what's the best API to use to do it easily .... I've seen saaj, jaxb until xerces where ElementNSImpl is from
Any advice ?
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12268
|
|
Get back to us after you read my post again.
|
 |
Rudy Gireyev
Ranch Hand
Joined: May 03, 2011
Posts: 39
|
|
everson santos wrote:Any advice ?
Everson.
The easiest way to create a Java client is from a WSDL that is usually provided on the Server. The program that creates the client for you is called Wsdl2Java. You can find it using your favorite search tool.
Rudy
|
 |
 |
|
|
subject: how to convert soap to java
|
|
|