Sometimes when you generate a proxy class from the WSDL.exe it doesn't put in a namespace. So if it doesn't add one in.
'------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:2.0.50727.42
'
' Changes to this file may cause incorrect behavior and will be lost if' the code is regenerated.
' </auto-generated>
'------------------------
Option
StrictOffOptionExplicitOn
Imports
SystemImports System.ComponentModel
Imports System.Diagnostics
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.Xml.Serialization
'
'This source code was auto-generated by wsdl, Version=2.0.50727.42.
'
Namespace CP
PartialPublicClass SampleClass
'<--WSDL GENERATED CODE HERE-->
End Class
End Namespace
In your bridge file declare the proxy tag as follows
<
proxytype="CP.SampleClass, App_Code" /This solution probably is why you are getting the "VidaSecurity is not defined" however it will probably save you more problems when you do get that working. One reason might be that you have referenced the file in the ScriptManager.
<atlas:ScriptManagerrunat="server"ID="scriptManager">
<Services>
<atlas:ServiceReferencePath="SampleBridge.asbx"/>
</Services>
</atlas:ScriptManager>
Let me know if this helps :).
JoeWeb
JoeWeb:
This solution probably is why you are getting the "VidaSecurity is not defined" however it will probably save you more problems when you do get that working.
This solution probably won't solve why you are getting "VidaSecurity is not defined" however it will probably save you more problems when you do get that working.
That's what I meant lol.
Hello.. you were right.. that didn't sole the problem
Well... when I load the page in browser and press the buton to debug JavaScript code, a blank page appears with only this line :
VidaSecurity.AxonAxis.path = '/VidaSecurity/bridge/axonaxis.asbx'
I think that this code is placed by an XML data generated by he ScriptManager at the bottom of the page:
<script type="text/xml-script">
<page xmlns:script="http://schemas.microsoft.com/xml-script/2005">
<references>
<add src="http://pics.10026.com/?src=../bridge/axonaxis.asbx/js" onscriptload="VidaSecurity.AxonAxis.path = '/VidaSecurity/bridge/axonaxis.asbx'" />
</references>
<components>
<pageRequestManager id="_PageRequestManager" updatePanelIDs="" asyncPostbackControlIDs="" scriptManagerID="ScriptManager1" form="form1" />
</components>
</page></script>
<script type="text/javascript">
</script>
If ScriptManager is placiing that code, why it doesn't add the corresponding VidaSecurity object creation?
Jaime
I have finally made it work..
I only added this tag to web.config: <webServices enableBrowserAccess="true"/> under microsoft.web.
Jaime
Way to go. That's kind of odd though because I thought that only needed to be enabled for including asmx files in the scope of the application. Who knows... way to go still for pressing on and figuring it out. Congrats.
JoeWeb
No comments:
Post a Comment