Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

Hi,

I followed the SQL Anywhere 12.0.1 tutorial below to create a SOAP service:

http://dcx.sybase.com/1201/en/dbprogramming/working-soap.html

I created the service and the client successfully. However, when I tried to call the service in the same way described in Lesson 3 of the tutorial, I got this error:

HTTP request failed. Status code '404 not found' SQLCODE=-983, ODBC 3 State="HY000" Line 1, column 1

I'm having trouble figure out why. I've confirmed that the server is listening on port 8082. From the error message, it appears that the SOAP service cannot be found.

I did exactly what the tutorial describes, with only one exception that both my service and my client are in the same database.

I would greatly appreciate it if someone could advise.

Thanks,

Calvin

asked 20 Feb '13, 03:08

ctang's gravatar image

ctang
16224
accept rate: 0%


I did exactly what the tutorial describes, with only one exception that both my service and my client are in the same database.

AFAIK, this "one exception" is the cause. To cite the docs:

A web client procedure is restricted from making an outbound HTTP request to itself; it cannot call a localhost SQL Anywhere web service running on the same database.

So I'd suggest to try with using two different databases.

permanent link

answered 20 Feb '13, 03:32

Volker%20Barth's gravatar image

Volker Barth
40.2k361550822
accept rate: 34%

Thanks for your reply, Volker. I tried putting the service and the client in different databases on the same physical host. It still doesn't work. Is that supposed to work?

Thanks,

Calvin

(20 Feb '13, 13:22) ctang
Your answer
toggle 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

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×66

question asked: 20 Feb '13, 03:08

question was seen: 2,878 times

last updated: 20 Feb '13, 13:22