[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to include a whole USRSPC in a SOAP definition



I'm working on my first project using SOAP. I've broken it into several
parts but now need to get the parts all together.

Part 1 was just getting the SOAP obj created and called. Part of the
SOAP obj was a file and for now I just sent a blank knowing it would
send back an error. At least I would know that I had everything setup
correctly. This part is done.

Part 2 was to create an XML file to be sent. This itself was several
steps. 1 create the file. 2 take care of any <, >, & in the data. And 3
BASE64 encode the whole thing (this is how the file needs to be sent).
These are all done and it now exists in a usrspc.

Now I need to put part 2 into part 1.
This is the whole SOAP eval...
       SOAP =
        '<?xml version="1.0" encoding="utf-8"?>'
       +'<s:Envelope'
       +'    xmlns:s="http://www.w3.org/2003/05/soap-envelope";'
       +'    xmlns:a="http://www.w3.org/2005/08/addressing";>'
       +'  <s:Header>'
       +'    <a:Action s:mustUnderstand="1">'
       +'http://www.fastenterprises.com/MFET/NewSubmission </a:Action>'
       +'<h:MFETHeader xmlns:h="http://www.fastenterprises.com";'
       +' xmlns:i="http://www.w3.org/2001/XMLSchema-instance";>'
       +'<h:User>*******</h:User>'
       +'<h:Password>*****</h:Password>'
       +'<h:Environment>T</h:Environment>'
       +'</h:MFETHeader>'
       +'<a:MessageID>urn:uuid:d01106bf-c6c7-414b-a081-46c9a9440734'
       +'</a:MessageID>'
       +'<a:ReplyTo>'

+'<a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>'
       +'</a:ReplyTo>'
       +'<a:To
s:mustUnderstand="1">https://tapstaging.tax.utah.gov/efile/mfet'
       +' </a:To>'
       +'</s:Header>'
       +'<s:Body> <SubmissionType
xmlns="http://www.fastenterprises.com";>'
       +'TC109XML</SubmissionType> <ReferenceId xmlns="http://www'
       +'.fastenterprises.com">20100712T0415087219</ReferenceId>'
       +'<File xmlns="http://fastenterprises.com";></File>'
       +'</s:Body>'
       +'</s:Envelope>'

I need to insert the whole usrspc into that third line from the bottom.
The line that reads "File xmlns...></File>"

My question... how do you refer to a whole usrspc with 1 variable name?

Mike



-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------