Error on trying to bind to the DataService

0 views
Skip to first unread message

Wali R

unread,
Oct 22, 2008, 10:01:56 AM10/22/08
to WebWidgetry Users
Hi guys,

I receive the following error when trying to bind to the
WW.DataService I created following the Northwind example: Error The
remote server returned an error: (401) Unauthorized


I was having problems (unrelated I think) with creating a demo project
so I started from scratch using the Northwind database using the
tutorial & was doing well until I got to trying to bind the interface
piece.

I can get directly to the service and consume it and the wsdl from a
browser locally and remotely.

Please help!!

Thanks,

Wali


Ryan Gahl

unread,
Oct 22, 2008, 11:40:08 AM10/22/08
to webwidge...@googlegroups.com
Hi Wali. Seems like some sort of permissions thing. First of all, could you give us what all of your property values are in the WW.DataServices plugin (screenshots might be easiest)... as well as the url of your running webservice?
--
Ryan Gahl
Manager, Senior Software Engineer
Nth Penguin, LLC
http://www.nthpenguin.com
--
WebWidgetry.com / MashupStudio.com
Future Home of the World's First Complete Web Platform
--
Inquire: 1-920-574-2218
Blog: http://www.someElement.com
LinkedIn Profile: http://www.linkedin.com/in/ryangahl

Wali R

unread,
Oct 22, 2008, 12:35:39 PM10/22/08
to WebWidgetry Users
OK...I'm freaking out on caffeine & not able to find any upload file
thingy here in the post....


I'm assuming this is what you want...

Always Start When Debugging True
Port Number 1759
Use Dynamic Ports True
Virtual Path /NorthwindWS
Full Path C:\Documents and Settings
\ISSUPPORT\My Documents\Visual Studio 2008\WebSites\NorthwindWS
Opened URL file:///C:/Documents and
Settings/ISSUPPORT/My Documents/Visual Studio 2008/WebSites/
NorthwindWS/


The url is:
http://localhost/NWWService/Services/NorthwindService.asmx

I hope this is what you need.

Thanks again,

Wali
On Oct 22, 11:40 am, "Ryan Gahl" <ryan.g...@nthpenguin.com> wrote:
> Hi Wali. Seems like some sort of permissions thing. First of all, could you
> give us what all of your property values are in the WW.DataServices plugin
> (screenshots might be easiest)... as well as the url of your running
> webservice?
>
> On Wed, Oct 22, 2008 at 9:01 AM, Wali R <issupp...@southcoastmedical.com>wrote:
>
>
>
>
>
> > Hi guys,
>
> > I receive the following error when trying to bind to the
> > WW.DataService I created following the Northwind example:  Error The
> > remote server returned an error: (401) Unauthorized
>
> > I was having problems (unrelated I think) with creating a demo project
> > so I started from scratch using the Northwind database using the
> > tutorial & was doing well until I got to trying to bind the interface
> > piece.
>
> > I can get directly to the service and consume it and the wsdl from a
> > browser locally and remotely.
>
> > Please help!!
>
> > Thanks,
>
> > Wali
>
> --
> Ryan Gahl
> Manager, Senior Software Engineer
> Nth Penguin, LLChttp://www.nthpenguin.com

Ryan Gahl

unread,
Oct 22, 2008, 2:36:24 PM10/22/08
to webwidge...@googlegroups.com
Hi Wali... actually what I'm looking for are the properties in the WW.DataServices plugin (the ones that are displayed when you have your active Provider selected in the tree at the top)... sorry for not being clear.

Ryan Gahl

unread,
Oct 22, 2008, 2:37:27 PM10/22/08
to webwidge...@googlegroups.com
But also... I notice you have dynamic port numbers turned on, yet the service URL you pasted in does not include the port number... Are you running the service through IIS then, on port 80?

Wali R

unread,
Oct 22, 2008, 2:52:00 PM10/22/08
to WebWidgetry Users
Ryan,

Wasn't you, it was more me....do you mean the Database Connection
properties? Or actually by clicking the provider?

-Database Connections
-Northwind <-this guy?
-Providers
-Northwind <-Or this guy?

If its the 1st then:
Connection String: Data Source=localhost\Sqlexpress; Integrated
Security=True; Database=Northwind
Database: Northwind
Datasource: localhost\SqlExpress
IntegratedSecurity: True
Last 2 blank.



If its the 2nd one then: (oh boy)
ConnectionStringName: Northwind
GeneratedNamespace: Test.Northwind

Nothing under Inclusions & Exclusions
Misc:
AppendWith: X
ExtractNameFromSPName: False
FixPluralClassNames: True
GenerateLazyLoads: False
GenerateRelatedTablesAsProperties: False
Next one blank.
RemoveUnderscores: True
SPClassNames: SPs
UserSP: True
The only other field used is
RegexIgnoreCase: True




I hope I'm not being too dull here...

Thanks for all your help.

Wali

On Oct 22, 2:36 pm, "Ryan Gahl" <ryan.g...@nthpenguin.com> wrote:
> Hi Wali... actually what I'm looking for are the properties in the
> WW.DataServices plugin (the ones that are displayed when you have your
> active Provider selected in the tree at the top)... sorry for not being
> clear.
>

Wali R

unread,
Oct 22, 2008, 3:11:16 PM10/22/08
to WebWidgetry Users
Yes it is running on IIS on port 80 on my dev box...
Wali

On Oct 22, 2:37 pm, "Ryan Gahl" <ryan.g...@nthpenguin.com> wrote:
> But also... I notice you have dynamic port numbers turned on, yet the
> service URL you pasted in does not include the port number... Are you
> running the service through IIS then, on port 80?
>

Ryan Gahl

unread,
Oct 22, 2008, 3:14:14 PM10/22/08
to webwidge...@googlegroups.com
That's what I was looking for (the 2nd one actually). Thanks.

You need to make sure that you copy that URL from the browser (including any port number that might be in the url after localhost if you're running on anything other than port 80)...

So, then you have to make sure you have that service running, then open another instance of Studio for WW.Interface... and when you get to the part where you put in the WebServiceDescription value, make sure you use that same URL (plus the "?WSDL" at the end)... and then also paste that url (this time without the "?WSDL") into the WebServicePath....

So that might be the other screenshot/info we want. What are the property values you have in the WW.Interface plugin when you try to do the bind?

By the way... you can just attach screenshots/files in your email messages... you can just use your normal email client, and send your message to webwidge...@googlegroups.com (making sure you are sending FROM the same email address you signed up with).

Wali R

unread,
Oct 22, 2008, 4:51:11 PM10/22/08
to WebWidgetry Users
I think that because I chose the web only option on the forum is the
reason I can't attach files. I sent an email to the webwidgetry-
us...@googlegroups.com address so a screenshot is somewhere....

I have all the settings just as you outlined above...I don't
understand why I can't connect. I see later in the tutorial that the
virtual path has to be set to just /. I tried that as well in both the
data service and the interface but it didn't help...

I meant to try it at home last night on a more "virgin" instance of VS
on my home PC but only got started on setting up the Northwind
database (I'm like the only person in the world who never plays with
that thing) and installing the dataservice and interface.

I'm almost sure I've got something screwed...Is there a log generated
somewhere on the WW side? I tried the event log, nothing.

Thanks,

Wali

On Oct 22, 3:14 pm, "Ryan Gahl" <ryan.g...@nthpenguin.com> wrote:
> That's what I was looking for (the 2nd one actually). Thanks.
>
> You need to make sure that you copy that URL from the browser (including any
> port number that might be in the url after localhost if you're running on
> anything other than port 80)...
>
> So, then you have to make sure you have that service running, then open
> another instance of Studio for WW.Interface... and when you get to the part
> where you put in the WebServiceDescription value, make sure you use that
> same URL (plus the "?WSDL" at the end)... and then also paste that url (this
> time without the "?WSDL") into the WebServicePath....
>
> So that might be the other screenshot/info we want. What are the property
> values you have in the WW.Interface plugin when you try to do the bind?
>
> By the way... you can just attach screenshots/files in your email
> messages... you can just use your normal email client, and send your message
> to webwidge...@googlegroups.com (making sure you are sending FROM the
> same email address you signed up with).
>

Ryan Gahl

unread,
Oct 22, 2008, 5:06:13 PM10/22/08
to webwidge...@googlegroups.com
Yep, got the screenshot. The 401 message really makes me think it's something odd about your setup... like IIS is just disallowing the connection.

How about you try this... launch your WW.DataServices project from Visual Studio (not IIS)... so to do that you have to open the website from the file system first. Once that's running, copy that URL from the browser over into WW.Interface (both URL places of course)

Wali R

unread,
Oct 22, 2008, 5:15:19 PM10/22/08
to WebWidgetry Users
Grrrrrr.....Its trying to make a monkey out of me (and its winning). I
tried this yesterday evening, I swear I did. Of course that works
now.

Well I guess I can continue on with playing with WW.Interfaces now. I
will try & see on a different box here if it will run from IIS.

Any clues anybody????


Thanks again!!!

On Oct 22, 5:06 pm, "Ryan Gahl" <ryan.g...@nthpenguin.com> wrote:
> Yep, got the screenshot. The 401 message really makes me think it's
> something odd about your setup... like IIS is just disallowing the
> connection.
>
> How about you try this... launch your WW.DataServices project from Visual
> Studio (not IIS)... so to do that you have to open the website from the file
> system first. Once that's running, copy that URL from the browser over into
> WW.Interface (both URL places of course)
>
Reply all
Reply to author
Forward
0 new messages