web stats
How to load wsdl from a file - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 05-16-2011, 10:54 AM
swanja swanja is offline
Mirth Newb
 
Join Date: Aug 2008
Posts: 7
swanja
Post How to load wsdl from a file

Hi,

I have built a channel that sends the contents of a file to a web service: source is FileReader, destination is web service sender.
Forthe webservice sender, is there a way I can load the wsdl from a file?
Reply With Quote
  #2  
Old 05-17-2011, 02:23 AM
Selvi Selvi is offline
Mirth Newb
 
Join Date: Nov 2010
Posts: 12
Selvi is on a distinguished road
Default

YES.. you can do that..

Choose the Destination Connector type as "SOAP Sender". Click the browse the button and choose the wsdl file to be loaded.

Then you can click the 'Get Methods' button to get the methods populated.

Hope this helps.

Thanks
selvi
Reply With Quote
  #3  
Old 05-17-2011, 02:35 AM
Jrp_Dev Jrp_Dev is offline
Mirth Newb
 
Join Date: May 2011
Location: Madrid
Posts: 25
Jrp_Dev is on a distinguished road
Default

There is no Browse Button in Mirth 2.x for web service sender.
Reply With Quote
  #4  
Old 05-17-2011, 04:14 AM
Dagan Dagan is offline
OBX.2 Kenobi
 
Join Date: Jun 2009
Posts: 60
Dagan is on a distinguished road
Default

I tried something with a an wsdl from other manufacturer that didn't work, but may be for you can be usefull.
If you have any webserver running, take the wsdl and paste it in any folder that can be accessed. For example, if you have an IIS on the server1 with an test aplication (called test). You can paste your mywsdl.wsdl file in the root and access to it with this:

http://server1/test/mywsdl.wsdl

This worked for me to obtain the methods, but didn't work because of the manufacturer webservice.

Hope this helps.
Reply With Quote
  #5  
Old 05-19-2011, 10:27 PM
swanja swanja is offline
Mirth Newb
 
Join Date: Aug 2008
Posts: 7
swanja
Default

Thanks for the tip, Dagan.
I don't have a web server running conveniently,though. Let me see if I can get one going.
-ja
Reply With Quote
  #6  
Old 05-20-2011, 11:20 AM
jacobb jacobb is offline
Mirth Employee
 
Join Date: Aug 2006
Location: Irvine, CA
Posts: 1,218
jacobb is an unknown quantity at this point
Default

Quote:
Originally Posted by swanja View Post
Thanks for the tip, Dagan.
I don't have a web server running conveniently,though. Let me see if I can get one going.
-ja
You can use the public_html folder in Mirth to host the wsdl if you need to.
__________________
Jacob Brauer
Director, Software Development
NextGen Healthcare

Reply With Quote
  #7  
Old 05-21-2011, 03:06 AM
swanja swanja is offline
Mirth Newb
 
Join Date: Aug 2008
Posts: 7
swanja
Smile

Thanks Jacob. That is very useful to know.
A colleague here suggested to try a "file" url. I used:

file:///c:/data/test/MyWebService.wsdl

and it seemed to work. I am going to test this further. Hooray to the versatility of Mirth

-ja
Reply With Quote
  #8  
Old 05-21-2011, 10:59 AM
swanja swanja is offline
Mirth Newb
 
Join Date: Aug 2008
Posts: 7
swanja
Default

Both public_html and 'file' url work. But there is a conflict with the Authentication setting (the web service I am testing with requires authentication).

Perhaps, if the accessing of the .wsdl be made into a design-time activity and accessing of the web service be a run-time activity, this may be resolved? Just a thought.

[I am using MC v2.1.0]

-ja
Reply With Quote
  #9  
Old 12-20-2011, 07:48 AM
DavidL DavidL is offline
OBX.1 Kenobi
 
Join Date: Sep 2011
Location: Dayton Ohio
Posts: 43
DavidL is on a distinguished road
Default

What URI would one use to get to the public_html folder? I've tried a number of things but none appear to work ...
Reply With Quote
  #10  
Old 12-20-2011, 08:22 AM
DavidL DavidL is offline
OBX.1 Kenobi
 
Join Date: Sep 2011
Location: Dayton Ohio
Posts: 43
DavidL is on a distinguished road
Default

As it turns out, I was trying too hard.

I was trying
http://localhost/public_html/test.wsdl
http://localhost/mirth/public_html/test.wsdl
http://localhost:8080/public_html/test.wsdl
http://localhost:8080/mirth/public_html/test.wsdl

... when all I needed was
http://localhost:8080/test.wsdl

(If you didn't use the defaults when setting up Mirth Connect, you'll want to replace 8080 with whatever port number you specified for the HTTP server.)
Reply With Quote
Reply

Tags
webservice, wsdl

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 05:24 AM.


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