header
header
Main Menu
Home
Eviware Store
Downloads
Products
News
Forum
Eviware Blog
Search
FAQs
Customer Area
Support
Documentation
Tutorials
CookBook
Downloads
Forum
Login Form
Welcome, Guest. Please login or register.
November 22, 2008, 12:59:15 pm
Username: Password:
Login with username, password and session length

Forgot your password?
 
File URI and Digital Signatures
Welcome, Guest. Please login or register.
November 22, 2008, 12:59:15 pm
Home Help Search Login Register
News: The Forums are up! Welcome to eviware.

+  Eviware Forum
|-+  soapUI
| |-+  soapUI
| | |-+  File URI and Digital Signatures
« previous next »
Pages: [1] Print
Author Topic: File URI and Digital Signatures  (Read 388 times)
Frank Natoli
Newbie
*
Posts: 3


« on: January 09, 2008, 05:07:33 pm »

Have a document (in the format of a C4 binary image) and an XML file that contains a digital signature for the document. The digital signature contains a URI reference to the document (i.e., the C4 file). If I use SoapUI to move the C4 and XML files, SoapUI changes not only the path to the files (which is understandable) but also the filenames. The change to the filenames, particularly for the C4 document, makes it impossible to validate the digital signature in the XML file, since the URI to the C4 document is hopelessly broken. Is there a work around for this situation? Thanks.
Logged
omatzura
Administrator
Hero Member
*****
Posts: 1,425


« Reply #1 on: January 09, 2008, 05:27:32 pm »

Hi Frank,

thanks for your post..  I don't really understand this :-) What do you mean by "moving" the files with soapUI? Are they attachments? Or request?

regards,

/Ole
eviware.com
Logged
Frank Natoli
Newbie
*
Posts: 3


« Reply #2 on: January 09, 2008, 05:38:02 pm »

The files come down as attachments (as part of the response) from the SOAP server.  The attachments have are given an alphanumeric string as an id. A file or document that starts life as "/export/home/frank/123.C4" on one system ends up "/newpath/.../foo.C4", and "/export/home/frank/123.XML" ends up "/newpath/.../foo.XML" after the SoapUI operation.

My problem is, the digital signature in 123.XML (foo.XML) references a URI of 123.C4 and not foo.C4. Hence digital signature validation fails, since the XMLDSIG cannot resolve the URI reference.

Thanks for your time.
Logged
omatzura
Administrator
Hero Member
*****
Posts: 1,425


« Reply #3 on: January 09, 2008, 06:21:51 pm »

Hi!

ok.. so the problem is that the content-id of the attachment is not used correctly as the file name when saving the attachment to a file!? Can you send a dump of the responses Raw editor so I can see the entire http response including the attachments?

regards!

/Ole
eviware.com
Logged
Frank Natoli
Newbie
*
Posts: 3


« Reply #4 on: January 09, 2008, 10:28:28 pm »

Is the below what you need? Thanks for your time.

Actual file id is:T-251-530,64959,,,1,0001,0001,,
But note cid

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soap:Body>
      <ns1:getDimDataFileByFileIdentifierResponse xmlns:ns1="http://service.server.dim.jtdi.cryptek.com">
         <ns1:out ns2:mimeType="application/octet-stream" xmlns:ns2="http://www.w3.org/2004/11/xmlmime">
            <Include href="cid:119990643292810670-421333643@http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2004/08/xop/include"/>
         </ns1:out>
      </ns1:getDimDataFileByFileIdentifierResponse>
   </soap:Body>
</soap:Envelope>
Logged
omatzura
Administrator
Hero Member
*****
Posts: 1,425


« Reply #5 on: January 09, 2008, 11:48:32 pm »

Hi!

no :-) please instead send the contents of the http-log (tab at the bottom of the main window) after you've made your request (clear it first so it doesn't contain old requests..)

Thanks in advance!

regards,

/Ole
eviware.com
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
header header
header
header