简体   繁体   中英

Parsing a SOAP response without wsdl using java/php

I wish to consume a SOAP webservice from the Govt. of India public data sets. Here is an sample URL: http://data.gov.in/sites/default/files/Fish_2013.xml

I have been using REST APIs and have never used a SOAP one.This is a SOAP webservice and it does not give me any information about the wsdl file location. As per my understanding I can generate a client using the WSDL if available and use it but how do I use a SOAP API without WSDL. Most of the other posts talk about changing the response format but then its not possible in my case.

You can do 2 tricks:

  • install a local webserver
  • map the localhost/yourproject?wsdl to that xml file
  • use a Soap client generator tool on that wsdl link ( some allow other links wich doesn't end at wsdl some doesn't)
  • use the generated artifacts to consume soap.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM