help with SOAP

Enrique Arredondo henry at vegena.net
Tue Nov 14 11:42:33 PST 2006


Hi,

I'm doing an ACH processing project within filepro with the help of curl 
command, and now I'm stuck in the parsing of the responce I get from the 
ACH center. Is there a built in parser in curl ? I tried using "deurl" but 
no luck.

Here's what I do:

1. I created the SOAP message in a filepro report:

<?xml version="1.0" encoding="UTF-8" ?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd=
schemas.xmlsoap.org/soap/envelope/" 
xmlns:soapenc="http://schemas.xmlsoap.org/so
p.org/soap/encoding/" xmlns:ns5="http://test.achex.com" 
xmlns:ns6="java:com.ache
    <soap:Body>
    <ns5:createCheckAuthorization>
     <credentials href="#id0" />

bla blablablabla.......

2. After I get the file created with the fields populated , I run this 
command:

curl --data @request_xml.txt --header 'Content-Type: text/xml' 
http://blabla.bla.com/soap

NOTE: Once I have this working , I'll run everything internally from the 
process line. like system noredraw "curl ......" and then read the output
with "import ascii......."

3. I get a responce that I have to parse to get the results, I tried 
changing the </ for a CR+</  but I don't know how to use the tr to do all 
that. Or is there a parser like "deurl" to work with some xml:sopa like 
this :

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsi="h
ttp://www.w3.org/2001/XMLSchema-instance" 
xmlns:soapenc="http://schemas.xmlsoap.
org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><env:Body 
env:e
ncodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><m:createCheckAuthoriza
tionResponse xmlns:m="http://achex.com"><result 
xmlns:n1="java:com.achex.webserv
ices" xsi:type="n1:AuthorizationResponse"><clearerID 
xsi:type="xsd:string">12251
</clearerID><details xsi:nil="true"></details><merchantID 
xsi:type="xsd:string">
12251</merchantID><statusCode 
xsi:type="xsd:string">210</statusCode><statusDispl
ayDescription xsi:nil="true"></statusDisplayDescription><trackingID 
xsi:type="xs
d:string">12251-11140610230000</trackingID></result></m:createCheckAuthorization
Response></env:Body></env:Envelope>



More information about the Filepro-list mailing list