Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to convert soap to java  RSS feed

 
everson santos
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That depends on WSDL provided by your PHP service. You can see details in that.

 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
everson santos
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Get back to us after you read my post again.
 
Rudy Gireyev
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!