Clicky

Hi there!

I am trying to call a web service from Delphi 2010 but I am getting the following exception:
"In project xxx.exe an exception of class ESOAPHTTPException occurred with the message: 'URL- end point for service/port 'MyLog/MyLogSoap' can't be read from WSDL 'http://localhost:3177/ws/MyLog.asmx?WSDL'."

When I try this with Delphi 7 it works.

I attached a code snippet that shows how I call the web service.

Any ideas what is going wrong?

Regards,
Dirk.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
var
  lHttpRio: THttprio;
begin
  lHttpRio.HTTPWebNode.SendTimeout:=0;
  lHttpRio.HTTPWebNode.ReceiveTimeout:=0;
  lHttpRio.HTTPWebNode.ConnectTimeout:=0;
  lHttpRio.HTTPWebNode.UseUTF8InHeader := true;
  lHttpRio.WSDLLocation := 'http://localhost:3177/ws/MyLog.asmx?WSDL';
  lHttpRio.Service := 'MyLog';
  lHttpRio.Port := 'MyLogSoap';

  (lHttpRio as MyLogSoap).DoLog('test');

asked 09/27/2010 02:27

dirkil2's gravatar image

dirkil2 ♦♦


7 Answers:
same code in D7?  No firewalls?
Hard to help since it is on a private machine.. hard to test it.
link
GeneralTackett's gravatar image

GeneralTackett

Yes, same code, same machine, same firewall.
link
dirkil2's gravatar image

dirkil2

same components for access?
link
GeneralTackett's gravatar image

GeneralTackett

Probably not. The Delphi 7 version uses the Indy components that were shipped with Delphi 7 and the Delphi 2010 version uses the Indy components that were shipped with Delphi 2010.

So they probably use different versions of Indy.
link
dirkil2's gravatar image

dirkil2

hmm I am using BDS 2006 and would test but need interface and way to talk to your app... code looks ok. but you never know.
link
GeneralTackett's gravatar image

GeneralTackett

Well, I solved the problem now myself without really understanding what is going on.

Just for debugging purposes I dropped a THTTPRIO component on a form instead of creating this control in code. I entered the WSDLLocation and the Service. Then for the Port property I could choose from two options "MyLogSoap" and "MyLogSoap12". I didn't know about the existence of "MyLogSoap12" so just for the heck I chose this option and it worked straight away.

I have no idea why I have two ports to choose from and when I have to choose which. I leave my question open for a few more day and if someone can explain that to me I will award the points for the explanation.
link
dirkil2's gravatar image

dirkil2

This question has been classified as abandoned and is being closed as part of the Cleanup Program.  See my comment at the end of the question for more details.
link
mlmcc's gravatar image

mlmcc

Your answer
[hide preview]

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×44
×18

Asked: 09/27/2010 02:27

Seen: 615 times

Last updated: 12/08/2010 08:23