URL : http://wsrep.pilog.in:80/PilogRepositorySAP/RepositorySearchSAP?wsdl
Method: post
no headers required
no auth is required
params values are
<REPOSITORY_REQUEST>
Reference_No
Like
6044
?
</REPOSITORY_REQUEST>
?
?
<ORGN_ID>2F57487BE2F6474BE053270110ACD546</ORGN_ID>
en_US
Hi @santhoshios, what are you trying to specifically achieve with the WSDL file and your app? Are you trying to parse the data ? I found some resources that might help you in the right direction.
SOAP + Swift client
Best,
Gina
iam new to iOS, i understood generated swift file from the WSDL2SWIFT, in that Soap Action in empty so i can’t understand and i don’t know how to display the data in TABLEVIEW?
so please send me project using my WSDL file i.e
http://wsrep.pilog.in:80/PilogRepositorySAP/RepositorySearchSAP?wsdl
pass the body as follows:
<ser:repositorySearch>
<request>
<!--Optional:-->
<REPOSITORY_REQUEST>
<!--Zero or more repetitions:-->
<item>
<!--Optional:-->
<COLUMN>Reference_No</COLUMN>
<!--Optional:-->
<OPERATOR>Like</OPERATOR>
<!--Optional:-->
<VALUE>6044</VALUE>
<!--Optional:-->
<DATATYPE>?</DATATYPE>
</item>
</REPOSITORY_REQUEST>
<!--Optional:-->
<RECORDSTARTINDEX>?</RECORDSTARTINDEX>
<!--Optional:-->
<RECORDENDINDEX>?</RECORDENDINDEX>
<!--Optional:-->
<ORGN_ID>2F57487BE2F6474BE053270110ACD546</ORGN_ID>
<!--Optional:-->
<LOCALE>en_US</LOCALE>
</request>
</ser:repositorySearch>
</soapenv:Body>
Please help me???
Hi @santhoshios,
with regards to your WSDL file, it is an XML file, so you need to either learn how to use a 3rd party library as @gdelarosa suggested above or learn how to parse XML using Swift (XMLParser).
For posting XML, you can use the new swift string syntax of using """
to create templated XML like
let postxml = """
<ser:respositorySearch>
<request>
<REPOSITORY_REQUEST>
<item>
<VALUE>\(value)</VALUE>
...
"""
If you are expecting someone to write the code for you, you might have to look elsewhere, at RW we all can help you learn and provide tips and details.
cheers,
Jayant
This topic was automatically closed after 166 days. New replies are no longer allowed.