plroberto
|
Posted: November 13, 2009 17:13 by plroberto
|
|
Hello, Can anybody give me any advice on where to start to create a web service client to access to the registry? What I need is to make some basic query to the registry: - search for documents of a specific patient - get details/metadata of a specific document - provide documents (metadata) for a specific user We installed all the HIEOS system but we only need to use to the registry and not to the repository because we have to use an existing one based on a different software. In the past I have done many web service client in many languages, this time I just can't figure out where to start. With Java I usually create the web service client (Stub+Proxy) from the WSDL file using Axis2, but it doesn't seems to works for this type of wsdl/ws (or I simply don't understand how to use the generated source). Axis2 generates the three following classes: com.vangent.hieos.services.xds.registry.serviceimpl.MetadataExceptionException0 com.vangent.hieos.services.xds.registry.serviceimpl.XdsregistrybCallbackHandler com.vangent.hieos.services.xds.registry.serviceimpl.XdsregistrybStub. I tryed to use the following code to create a simple query: XdsregistrybStub wsStub = new XdsregistrybStub(null, "http://my_ip:8080/axis2/services/xdsregistryb"); XMLInputFactory xmlInputFactory = XMLInputFactory.newInstance(); FileInputStream fis = new FileInputStream("query.xml"); XMLStreamReader xmlStreamReader = xmlInputFactory.createXMLStreamReader(fis); AdhocQueryRequest query = AdhocQueryRequest.Factory.parse(xmlStreamReader); wsStub.AdhocQueryRequest(query); using xml file like this: <query:AdhocQueryRequest xmlns:query="urn:oasis:names:tc:ebxml-regrep:xsd:query:3.0"> <query:ResponseOption returnComposedObjects="true" returnType="ObjectRef"></query:ResponseOption> <rim:AdhocQuery xmlns:rim="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0" id="urn:uuid:14d4debf-8f97-4251-9a74-a90016b0af0d"> <rim:Slot name="$XDSDocumentEntryPatientId"> <rim:ValueList> <rim:Value>'b1f770dad41c457^^^&1.3.6.1.4.1.21367.2009.1.2.315&ISO'</rim:Value> </rim:ValueList> </rim:Slot> <rim:Slot name="$XDSDocumentEntryStatus"> <rim:ValueList> <rim:Value>('urn:oasis:names:tc:ebxml-regrep:StatusType:Approved', 'urn:oasis:names:tc:ebxml-regrep:StatusType:Deprecated')</rim:Value> </rim:ValueList> </rim:Slot> </rim:AdhocQuery> </query:AdhocQueryRequest> with many variations, but the only thing I obtain is a java.lang.Exception: org.apache.axis2.databinding.ADBException: Unexpected subelement Slot I Also tryed to insert the xsd definition inthe xml file but nothing helped, so I guess I'm doing all wrong ![]() Any advice on where to start, what to read would be really appreciated. Thanks, Roberto |
Creating Web Service Client
Replies: 1 - Last Post: November 17, 2009 02:02
by: Bernie Thuman
by: Bernie Thuman
showing 1 - 2 of 2
Bernie Thuman
|
Posted: November 17, 2009 02:02 by Bernie Thuman
|
|
HIEOS is compliant with the IHE WSDL files found here: ftp://ftp.ihe.net/TF_Implementation_Material/ITI/ Let me know if this helps. Thanks -- Bernie |
Replies: 1 - Last Post: November 17, 2009 02:02
by: Bernie Thuman
by: Bernie Thuman







