Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » OHF » OHFBridge: Problem with the Upload Document functionality
OHFBridge: Problem with the Upload Document functionality [message #571031] Wed, 11 October 2006 21:21
Daniel Hale is currently offline Daniel Hale
Messages: 24
Registered: July 2009
Junior Member
I've been trying to implement document uploading in the ohfbridge PHP
client (for openEMR), but I'm encountering some problems with code that
doesn't look right. Perhaps something hasn't been put in CVS yet, or
I'm trying to implement a feature that shouldn't be implemented yet. :)

The problem I'm currently having is the decodedDocument variable in
XDSDocType doesn't seem to be expected on the server end. I get this error:

org.xml.sax.SAXException: Invalid element in
org.eclipse.ohf.bridge.type.XDSDocType - decodedDocument

decodedDocument doesn't seem to be used either. The getter function
doesn't even reference it properly:
I'm guessing this:
function getDocument()
{
if(null != $decodedDocument){
return $decodedDocument;
}
$decodedDocument = base64_decode($this->encodedDocument);
return $decodedDocument;
}
should be:
function getDocument()
{
if(null != $this->decodedDocument){
return $this->decodedDocument;
}
$this->decodedDocument = base64_decode($this->encodedDocument);
return $this->decodedDocument;
}
(Actually, the current code will actually work, by luck... just not as I
think it was intended to)


I commented out that troublesome decodedDocument member variable, but
now I get an even unhappier error:

org.eclipse.ohf.ihe.xds.metadata.extract.MetadataExtractionE xception:
IOException while loading Resources from File.

Unfortunately, the portal at http://ibmod235.dal-ebis.ihost.com:8080 is
spouting the same error about decodedDocument. Is this something that
isn't expected to work yet, or is there a simple oops that just needs
fixing?

-Dan
Previous Topic:XDS Metadata Model refactored .. please update.
Next Topic:OHFBridge: Problem with the Upload Document functionality
Goto Forum:
  


Current Time: Sun Oct 26 07:52:07 GMT 2014

Powered by FUDForum. Page generated in 0.01500 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software