File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes how to convert soap to java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "how to convert soap to java" Watch "how to convert soap to java" New topic
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
    
    1
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
    
    1
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how to convert soap to java
 
Similar Threads
unexpected XML tag in JAX-WS client
org.springframework.ws.client.WebServiceTransportException: Method Not Allowed [405]
How to generate wsdl with spring ws
@SchemaValidation on XSD JAX-WS 2.1.4 for WEBSERVICE :faultstring Intepretation
The format of XML SOAP