Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2005 > SQL Server 2005
|
SQL Server 2005 General discussion of SQL Server *2005* version only.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 9th, 2007, 10:05 AM
SQLScott's Avatar
Wrox Author
 
Join Date: Dec 2004
Posts: 338
Thanks: 0
Thanked 2 Times in 2 Posts
Default

OK, I will try this today and get back to you shortly...

Scott Klein
Author - Professional SQL Server 2005 XML
http://www.wrox.com/WileyCDA/WroxTit...764597922.html
 
Old February 10th, 2007, 09:38 AM
SQLScott's Avatar
Wrox Author
 
Join Date: Dec 2004
Posts: 338
Thanks: 0
Thanked 2 Times in 2 Posts
Default

OK, I got this to work. Here's how:

First, the stored proc:

CREATE PROCEDURE helloworld
(
      @msg varchar(256)
)
AS
BEGIN
      SELECT @msg
END

Now, test it.

exec helloworld 'helloworld'

Now, the endpoint:

CREATE ENDPOINT hello_endpoint
STATE = STARTED
AS HTTP
(
PATH = '/helloworld',
AUTHENTICATION = (INTEGRATED),
PORTS = (CLEAR),
CLEAR_PORT = 8080,
SITE = '*'
)
FOR SOAP
(
WEBMETHOD 'GetSqlInfo'
      (
            name='Test.dbo.helloworld',
            FORMAT = ROWSETS_ONLY
      ),
      WSDL = DEFAULT,
      BATCHES = ENABLED,
      DATABASE = 'Test'
)
GO

Now, in your web browser, type the following URL:

http://localhost:8080/helloworld?wsdl

At this point, I got the wsdl page.

Try it and let me know what you get.



Scott Klein
Author - Professional SQL Server 2005 XML
http://www.wrox.com/WileyCDA/WroxTit...764597922.html
 
Old February 14th, 2007, 12:20 PM
Authorized User
 
Join Date: Feb 2007
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

if i specify site ='*' it's not working.It's giving an error that the user doesn't have permission to register the endpoint .
Also i used

sp_reserve_http_namespace N'http://localhost:8080/hello_endpoint'

but still i got the same above error.
So i modified the site = 'localhost' then i typed the url http://localhost:8080/helloworld?wsdl. it's working fine with in the same server.

but i need to access from outside of server , i tried

http://<server_name>:8080/helloworld?wsdl

but it's giving an error

HTTP 400 - Bad Request
Internet Explorer

pleas help me out to make this url work outside of the server.

thanks,






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use only 1 url for user to access? calyn_gately ASP.NET 3.5 Basics 4 August 12th, 2008 04:41 PM
URL Access to SSRS is asking for authentication Khushwinder BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 5 February 29th, 2008 05:08 AM
Secure access of Reports without a URL in ASP.NET Philip York BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 2 November 29th, 2005 03:46 AM
Valid Server URL dotnetprogrammer VS.NET 2002/2003 1 February 16th, 2005 05:56 PM
Retrieve and store the images from server URL ccc_storage Classic ASP Professional 13 August 19th, 2004 07:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.