web stats
Handle "web service sender" response with attachments - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 12-12-2018, 11:31 PM
tomez tomez is offline
What's HL7?
 
Join Date: Dec 2018
Posts: 2
tomez is on a distinguished road
Default Handle "web service sender" response with attachments

I need to contact a web service with "web service sender" all works well except the fact that the web service responds with some attachments which I can't find anywhere. Is "web service sender" enabled for this? Can I access them in "edit response" or do I have to use some other methods?

Currently I managed to get them only by calling the web service via HTTP in a "javascript writer" destination and collect them manually from the response.
Reply With Quote
  #2  
Old 12-13-2018, 07:46 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,123
narupley is on a distinguished road
Default

Right now the Web Service Sender only stores the main SOAP part of the response. Feel free to open a JIRA issue to add other things like multipart attachments, as that sounds like a good idea!
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
  #3  
Old 12-24-2018, 07:13 AM
tomez tomez is offline
What's HL7?
 
Join Date: Dec 2018
Posts: 2
tomez is on a distinguished road
Default

I've opened a JIRA issue to add multipart attachments to Web service sender connector but in the meantime I really need to access the complete raw response, is it available with some tricks?

Otherwise someone has a piece of code to send an http request with an attachment inside (I need to put an attachment in the request too) to the webservice with java.net.URL.openConnection?

Where can I find the code of Web service sender to copy the main parts from?

Thanks.
Reply With Quote
Reply

Tags
attachments, sender, service, web, webservice

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 03:42 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation