I have a problem trying to generate a Web Service Client

342 views
Skip to first unread message

Arturo Henry Torres Zenteno

unread,
Nov 13, 2009, 7:55:47 AM11/13/09
to InterSystems: Ensemble in Healthcare
Good morning,

I have a problem trying to generate a Web Service Client from a WSDL
of a Web service created in Ensemble.
Ensemble has set high levels of authentication, because in order to
display the WSDL, Ensemble requests a username and password.

What settings should I perform in Ensemble to solve the problem?

Regards,
Arthur.

PS. On another server, when I have the Ensemble without any
authentication level, I have no problems to generate a Web Service
Client.

Neerav Verma

unread,
Nov 13, 2009, 9:13:43 AM11/13/09
to ensemble-in...@googlegroups.com
"http://10.0.0.17:57774/csp/dim/DIM.WebServices.Server.DIM.cls?WSDL=1&CacheUserName=user&CachePassword=pass"

Thank You,

Neerav Verma
http://www.linkedin.com/in/vneerav
------------------------------------------------------
Joan Crawford  - "I, Joan Crawford, I believe in the dollar. Everything I earn, I spend."


--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to Ensemble-in...@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healt...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Ensemble-in-Healthcare?hl=en

Arturo Henry Torres Zenteno

unread,
Nov 13, 2009, 6:16:49 PM11/13/09
to ensemble-in...@googlegroups.com
Thank you Neerav!

Arturo Henry Torres Zenteno

unread,
Nov 16, 2009, 4:05:33 AM11/16/09
to ensemble-in...@googlegroups.com
Neerav, still not working.
Any additional ideas?

Regards,
Arturo.

On Fri, Nov 13, 2009 at 3:13 PM, Neerav Verma <vne...@gmail.com> wrote:

Neerav Verma

unread,
Nov 16, 2009, 9:53:41 AM11/16/09
to ensemble-in...@googlegroups.com
What is the error you getting

you don't see a wsdl declaration
may be you can copy your url here, may be there is a small syntax error


Thank You,

Neerav Verma
http://www.linkedin.com/in/vneerav
------------------------------------------------------
Stephen Leacock  - "I detest life-insurance agents: they always argue that I shall some day die, which is not so."

Arturo Henry Torres Zenteno

unread,
Nov 16, 2009, 10:16:31 AM11/16/09
to ensemble-in...@googlegroups.com
Hi Neerav,


The error with Eclipse is: "Selection must be WSDL"
The error with soapUI is: "Error importing wsdl"

The username and password can be encrypted?

Regards,
Arthur.

Neerav Verma

unread,
Nov 16, 2009, 10:28:34 AM11/16/09
to ensemble-in...@googlegroups.com
I haven't tried with encrypted credentials but because it is used only once to generate client classes, I didn't actually worried about it

Your url looks good. You can also create clients from the terminal

set r=##class(%SOAP.WSDL.Reader).%New()
set status=r.Process(url2,"CPC.WebServices.Client.DIM")

What happens when you go to your web service server class and click on the globe which would open the ws on a browser.
You should be able to see your methods on that page and also your wsdl by changing the url to WSDL=1

I have a feeling that your server definition has some fault. You can always verify that commenting out all your complex methods and having only one method which takes string and returns it back with some another string appended to it.



Thank You,

Neerav Verma
http://www.linkedin.com/in/vneerav
------------------------------------------------------
Pablo Picasso  - "Computers are useless. They can only give you answers."

Jill Goldberg

unread,
Nov 17, 2009, 10:49:08 AM11/17/09
to ensemble-in...@googlegroups.com
Arthur,

It may be that the tool you're using to consume the WSDL cannot handle a URL redirect, which would explain why things are working when you turn off authentication. One option is to save the WSDL to a file and load that.

--Jill

Arturo Henry Torres Zenteno

unread,
Nov 17, 2009, 11:36:32 AM11/17/09
to ensemble-in...@googlegroups.com
Neerav and Jill,

I solved the problem by adding the parameter CacheNoRedirect=1

Thank you, very much.
Arthur.
Reply all
Reply to author
Forward
0 new messages