[flexcoders] Re: mx:webservice and .NET 2.0 webservices

2008-05-02 Thread nehavyas13
Hi,

I am getting the same error as this post says which is shown below.
I do not know webservices, I am just trying to access a WSDL file from
flex. Can you please let me know why Flex shows this error? On which
element is it expecting a namespace. The WSDL file I am using already
has a targetNamespace. 

Thanks in advance.

Regards,
Neha


ReferenceError: Error #1065: Variable @namespace is not defined.
at
mx.rpc.xml::SchemaLoader/schemaImports()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\xml\SchemaLoader.as:102]
at
mx.rpc.wsdl::WSDLLoader/schemaImports()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\wsdl\WSDLLoader.as:253]
at
mx.rpc.wsdl::WSDLLoader/resultHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\wsdl\WSDLLoader.as:162]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:168]
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:191]
at
mx.rpc::Responder/result()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Responder.as:41]
at
mx.rpc::AsyncRequest/acknowledge()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:74]
at
DirectHTTPMessageResponder/completeHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:381]

ReferenceError: Error #1065: Variable @namespace is not defined.


--- In flexcoders@yahoogroups.com, "essuark" <[EMAIL PROTECTED]> wrote:
>
> Figured it out... Whew! So I was building a basic framework for one of
> my team members and I stub out some webservices so there would be
> there but they returned null. FLEX does not like that. Once I
> commented out the webmethod in question, it ran find... Odd message.
> Can anyone explain why Flex returned an error when parsing the WSDL?
> Again, this wasn't when I called the webmethod but rather when Flex
> created the webservice and checked out the wsdl...
> 
> thanks
> r
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Peeyush Tuli"  wrote:
> >
> > Its a wild guess but there I think the flex version you are using
> expects
> > a particular attribute namespace on the root definitions element
in your
> > wsdl.
> > 
> > This is required to associate the elements in the wsdl to a particular
> > namespace.
> > 
> > Usually there is a default attribute namespace or targetnamespace
> > automatically
> > associated with it in case you do not associate your webservice
> > elements( operations/ports/messages) to certain namespace.
> >  some thing like -
> > 
> > http://tempuri.org/"*>
> > ¡Ý
> > 
> > ¡Ý
> > 
> > Can you check whether this in your wsdl?
> > 
> > ~Peeyush
> > 
> > 
> > On Thu, Mar 6, 2008 at 5:16 PM, essuark  wrote:
> > 
> > >   Also the .NET side, is your basic skeleton webservice the IDE
> > > generates. So NO changes to .NET and I made sure the WS works by
> > > calling it with a C# application.
> > >
> > > Are there any new attributes one needs to add to C#?
> > >
> > > thanks
> > > Ralph
> > >
> > >
> > > --- In flexcoders@yahoogroups.com ,
> > > "essuark"  wrote:
> > > >
> > > > Interesting... I thought it happened when I called the
> webservice but
> > > > it is actually happening when the mx:webservice class is
initialize
> > > > and I assuming the wsdl being called. So I get the error BEFORE
> I call
> > > > the webmethod. I am using the latest beta, we are in the
middle of a
> > > > build so we can upgrade to the release
> > > >
> > > > thanks
> > > > r
> > > >
> > > > --- In flexcoders@yahoogroups.com ,
> > > "Peeyush Tuli"  wrote:
> > > > >
> > > > > flex 2 and .Net 2 webservices mix pretty well.
> > > > >
> > > > > What's your flex version?
> > > > >
> > > > > Are you getting the error at the time of loading the wsdl
> itself , i.e
> > > > > without invoking any webmethod?
> > > > > Are your request response message types defined in a particular
> > > > > namespace in the xsd?
> > > > >
> > > > > ~Peeyush
> > > > >
> > > > > On Thu, Mar 6, 2008 at 2:27 AM, essuark  wrote:
> > > > >
> > > > > > I am using Visual Studio 2005 that creates everything in .NET
> > > 2.0 -
> > > > > > are you using Visual Studio 2008 and .NET 3.x?
> > > > > >
> > > > > > thanks
> > > > > > r
> > > > > >
> > > > > >
> > > > > > --- In flexcoders@yahoogroups.com
> ,
> > > > "Tracy
> > > > > > Spratt"  wrote:
> > > > > > >
> > > > > > > Yes, I am successfully using .Net 2.0 webservice, though
since
> > > I am
> > > > > > > using VS 8, maybe it is .Net 3x?
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > As pretty much a newbie with web services, I have left
almost
> > > > everthing
> > > > > > > at the default (except for resultFormat). Are you doing
> anything
> > > > fancy,
> > 

Re: [flexcoders] Re: mx:webservice and .NET 2.0 webservices

2008-03-06 Thread Peeyush Tuli
Its a wild guess but there I think the flex version you are using expects
a particular attribute namespace on the root definitions element in your
wsdl.

This is required to associate the elements in the wsdl to a particular
namespace.

Usually there is a default attribute namespace or targetnamespace
automatically
associated with it in case you do not associate your webservice
elements( operations/ports/messages) to certain namespace.
 some thing like -

http://tempuri.org/"*>
−

−

Can you check whether this in your wsdl?

~Peeyush


On Thu, Mar 6, 2008 at 5:16 PM, essuark <[EMAIL PROTECTED]> wrote:

>   Also the .NET side, is your basic skeleton webservice the IDE
> generates. So NO changes to .NET and I made sure the WS works by
> calling it with a C# application.
>
> Are there any new attributes one needs to add to C#?
>
> thanks
> Ralph
>
>
> --- In flexcoders@yahoogroups.com ,
> "essuark" <[EMAIL PROTECTED]> wrote:
> >
> > Interesting... I thought it happened when I called the webservice but
> > it is actually happening when the mx:webservice class is initialize
> > and I assuming the wsdl being called. So I get the error BEFORE I call
> > the webmethod. I am using the latest beta, we are in the middle of a
> > build so we can upgrade to the release
> >
> > thanks
> > r
> >
> > --- In flexcoders@yahoogroups.com ,
> "Peeyush Tuli"  wrote:
> > >
> > > flex 2 and .Net 2 webservices mix pretty well.
> > >
> > > What's your flex version?
> > >
> > > Are you getting the error at the time of loading the wsdl itself , i.e
> > > without invoking any webmethod?
> > > Are your request response message types defined in a particular
> > > namespace in the xsd?
> > >
> > > ~Peeyush
> > >
> > > On Thu, Mar 6, 2008 at 2:27 AM, essuark  wrote:
> > >
> > > > I am using Visual Studio 2005 that creates everything in .NET
> 2.0 -
> > > > are you using Visual Studio 2008 and .NET 3.x?
> > > >
> > > > thanks
> > > > r
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com 
> > > > ,
> > "Tracy
> > > > Spratt"  wrote:
> > > > >
> > > > > Yes, I am successfully using .Net 2.0 webservice, though since
> I am
> > > > > using VS 8, maybe it is .Net 3x?
> > > > >
> > > > >
> > > > >
> > > > > As pretty much a newbie with web services, I have left almost
> > everthing
> > > > > at the default (except for resultFormat). Are you doing anything
> > fancy,
> > > > > like setting contentType, or anything?
> > > > >
> > > > >
> > > > >
> > > > > And are you using Beta 3?
> > > > >
> > > > >
> > > > >
> > > > > Maybe post the WebService declaration and invocation code?
> > > > >
> > > > >
> > > > >
> > > > > Tracy
> > > > >
> > > > >
> > > > >
> > > > > 
> > > > >
> > > > > From: flexcoders@yahoogroups.com 
> > > > > 
> > [mailto:
> > > > flexcoders@yahoogroups.com 
> > > > ] On
> > > > > Behalf Of essuark
> > > > > Sent: Wednesday, March 05, 2008 3:21 PM
> > > > > To: flexcoders@yahoogroups.com 
> > > > > 
> > > > > Subject: [flexcoders] mx:webservice and .NET 2.0 webservices
> > > > >
> > > > >
> > > > >
> > > > > Has any one successfully called a .NET 2.0 webservice? I can
> create
> > > > > one in .NET 1.1 and it works fine but 2.0 doesn't work. I did
> > create a
> > > > > C# test application that did connect to it and it worked so I
> > know it
> > > > > is flex.
> > > > >
> > > > > Here is the error.
> > > > >
> > > > > ReferenceError: Error #1065: Variable @namespace is not defined.
> > > > > at
> > > > >
> > mx.rpc.xml::SchemaLoader/schemaImports()[E:\dev\flex_3_beta3\sdk\framewo
> > > > > rks\projects\rpc\src\mx\rpc\xml\SchemaLoader.as:101]
> > > > > at
> > > > >
> > mx.rpc.wsdl::WSDLLoader/schemaImports()[E:\dev\flex_3_beta3\sdk\framewor
> > > > > ks\projects\rpc\src\mx\rpc\wsdl\WSDLLoader.as:260]
> > > > > at
> > > > >
> > mx.rpc.wsdl::WSDLLoader/resultHandler()[E:\dev\flex_3_beta3\sdk\framewor
> > > > > ks\projects\rpc\src\mx\rpc\wsdl\WSDLLoader.as:169]
> > > > > at flash.events::EventDispatcher/dispatchEventFunction()
> > > > > at flash.events::EventDispatcher/dispatchEvent()
> > > > > at
> > > > >
> > mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::disp
> > > > > atchRpcEvent
> > > > > 
> > > > >
> > ()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractIn
> > > > > voker.as:175]
> > > > > at
> > > > >
> > mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resu
> > > > > ltHandler
> > 
> > > > >
> > ()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractIn
> > > > > voker.as:198]
> > > > > at
> > > > >
> > mx.rpc::Responder/result()[E:\dev\flex_3_beta3\sdk\frameworks\projects\r
> > > > > pc\src\mx\rpc\Responder.as:48]
> > > > > at
> > > > >
> > mx.rpc::AsyncRequest/acknowledge()[E:\dev\flex_3_beta3\sdk\frameworks\pr
> > > > > ojects\rpc\src\mx\rpc\AsyncRequest.as:81]
> > > > > at
> > > > >
> >

[flexcoders] Re: mx:webservice and .NET 2.0 webservices

2008-03-06 Thread essuark
Also the .NET side, is your basic skeleton webservice the IDE
generates. So NO changes to .NET and I made sure the WS works by
calling it with a C# application. 

Are there any new attributes one needs to add to C#?

thanks
Ralph

--- In flexcoders@yahoogroups.com, "essuark" <[EMAIL PROTECTED]> wrote:
>
> Interesting... I thought it happened when I called the webservice but
> it is actually happening when the mx:webservice class is initialize
> and I assuming the wsdl being called. So I get the error BEFORE I call
> the webmethod. I am using the latest beta, we are in the middle of a
> build so we can upgrade to the release
> 
> thanks
> r
> 
> --- In flexcoders@yahoogroups.com, "Peeyush Tuli"  wrote:
> >
> > flex 2 and .Net 2 webservices mix pretty well.
> > 
> > What's your flex version?
> > 
> > Are you getting the error at the time of loading the wsdl itself , i.e
> > without invoking any webmethod?
> > Are your request response message types defined in a particular
> > namespace in the xsd?
> > 
> > ~Peeyush
> > 
> > On Thu, Mar 6, 2008 at 2:27 AM, essuark  wrote:
> > 
> > >   I am using Visual Studio 2005 that creates everything in .NET
2.0 -
> > > are you using Visual Studio 2008 and .NET 3.x?
> > >
> > > thanks
> > > r
> > >
> > >
> > > --- In flexcoders@yahoogroups.com ,
> "Tracy
> > > Spratt"  wrote:
> > > >
> > > > Yes, I am successfully using .Net 2.0 webservice, though since
I am
> > > > using VS 8, maybe it is .Net 3x?
> > > >
> > > >
> > > >
> > > > As pretty much a newbie with web services, I have left almost
> everthing
> > > > at the default (except for resultFormat). Are you doing anything
> fancy,
> > > > like setting contentType, or anything?
> > > >
> > > >
> > > >
> > > > And are you using Beta 3?
> > > >
> > > >
> > > >
> > > > Maybe post the WebService declaration and invocation code?
> > > >
> > > >
> > > >
> > > > Tracy
> > > >
> > > >
> > > >
> > > > 
> > > >
> > > > From: flexcoders@yahoogroups.com 
> [mailto:
> > > flexcoders@yahoogroups.com ] On
> > > > Behalf Of essuark
> > > > Sent: Wednesday, March 05, 2008 3:21 PM
> > > > To: flexcoders@yahoogroups.com 
> > > > Subject: [flexcoders] mx:webservice and .NET 2.0 webservices
> > > >
> > > >
> > > >
> > > > Has any one successfully called a .NET 2.0 webservice? I can
create
> > > > one in .NET 1.1 and it works fine but 2.0 doesn't work. I did
> create a
> > > > C# test application that did connect to it and it worked so I
> know it
> > > > is flex.
> > > >
> > > > Here is the error.
> > > >
> > > > ReferenceError: Error #1065: Variable @namespace is not defined.
> > > > at
> > > >
> mx.rpc.xml::SchemaLoader/schemaImports()[E:\dev\flex_3_beta3\sdk\framewo
> > > > rks\projects\rpc\src\mx\rpc\xml\SchemaLoader.as:101]
> > > > at
> > > >
> mx.rpc.wsdl::WSDLLoader/schemaImports()[E:\dev\flex_3_beta3\sdk\framewor
> > > > ks\projects\rpc\src\mx\rpc\wsdl\WSDLLoader.as:260]
> > > > at
> > > >
> mx.rpc.wsdl::WSDLLoader/resultHandler()[E:\dev\flex_3_beta3\sdk\framewor
> > > > ks\projects\rpc\src\mx\rpc\wsdl\WSDLLoader.as:169]
> > > > at flash.events::EventDispatcher/dispatchEventFunction()
> > > > at flash.events::EventDispatcher/dispatchEvent()
> > > > at
> > > >
> mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::disp
> > > > atchRpcEvent
> > > > 
> > > >
> ()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractIn
> > > > voker.as:175]
> > > > at
> > > >
> mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resu
> > > > ltHandler
> 
> > > >
> ()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractIn
> > > > voker.as:198]
> > > > at
> > > >
> mx.rpc::Responder/result()[E:\dev\flex_3_beta3\sdk\frameworks\projects\r
> > > > pc\src\mx\rpc\Responder.as:48]
> > > > at
> > > >
> mx.rpc::AsyncRequest/acknowledge()[E:\dev\flex_3_beta3\sdk\frameworks\pr
> > > > ojects\rpc\src\mx\rpc\AsyncRequest.as:81]
> > > > at
> > > >
> DirectHTTPMessageResponder/completeHandler()[E:\dev\flex_3_beta3\sdk\fra
> > > >
> meworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:387]
> > > > at flash.events::EventDispatcher/dispatchEventFunction()
> > > > at flash.events::EventDispatcher/dispatchEvent()
> > > > at flash.net::URLLoader/onComplete()
> > > >
> > > > Thanks
> > > > Ralph
> > > >
> > >
> > >  
> > >
> >
>




[flexcoders] Re: mx:webservice and .NET 2.0 webservices

2008-03-06 Thread essuark
Interesting... I thought it happened when I called the webservice but
it is actually happening when the mx:webservice class is initialize
and I assuming the wsdl being called. So I get the error BEFORE I call
the webmethod. I am using the latest beta, we are in the middle of a
build so we can upgrade to the release

thanks
r

--- In flexcoders@yahoogroups.com, "Peeyush Tuli" <[EMAIL PROTECTED]> wrote:
>
> flex 2 and .Net 2 webservices mix pretty well.
> 
> What's your flex version?
> 
> Are you getting the error at the time of loading the wsdl itself , i.e
> without invoking any webmethod?
> Are your request response message types defined in a particular
> namespace in the xsd?
> 
> ~Peeyush
> 
> On Thu, Mar 6, 2008 at 2:27 AM, essuark <[EMAIL PROTECTED]> wrote:
> 
> >   I am using Visual Studio 2005 that creates everything in .NET 2.0 -
> > are you using Visual Studio 2008 and .NET 3.x?
> >
> > thanks
> > r
> >
> >
> > --- In flexcoders@yahoogroups.com ,
"Tracy
> > Spratt"  wrote:
> > >
> > > Yes, I am successfully using .Net 2.0 webservice, though since I am
> > > using VS 8, maybe it is .Net 3x?
> > >
> > >
> > >
> > > As pretty much a newbie with web services, I have left almost
everthing
> > > at the default (except for resultFormat). Are you doing anything
fancy,
> > > like setting contentType, or anything?
> > >
> > >
> > >
> > > And are you using Beta 3?
> > >
> > >
> > >
> > > Maybe post the WebService declaration and invocation code?
> > >
> > >
> > >
> > > Tracy
> > >
> > >
> > >
> > > 
> > >
> > > From: flexcoders@yahoogroups.com 
[mailto:
> > flexcoders@yahoogroups.com ] On
> > > Behalf Of essuark
> > > Sent: Wednesday, March 05, 2008 3:21 PM
> > > To: flexcoders@yahoogroups.com 
> > > Subject: [flexcoders] mx:webservice and .NET 2.0 webservices
> > >
> > >
> > >
> > > Has any one successfully called a .NET 2.0 webservice? I can create
> > > one in .NET 1.1 and it works fine but 2.0 doesn't work. I did
create a
> > > C# test application that did connect to it and it worked so I
know it
> > > is flex.
> > >
> > > Here is the error.
> > >
> > > ReferenceError: Error #1065: Variable @namespace is not defined.
> > > at
> > >
mx.rpc.xml::SchemaLoader/schemaImports()[E:\dev\flex_3_beta3\sdk\framewo
> > > rks\projects\rpc\src\mx\rpc\xml\SchemaLoader.as:101]
> > > at
> > >
mx.rpc.wsdl::WSDLLoader/schemaImports()[E:\dev\flex_3_beta3\sdk\framewor
> > > ks\projects\rpc\src\mx\rpc\wsdl\WSDLLoader.as:260]
> > > at
> > >
mx.rpc.wsdl::WSDLLoader/resultHandler()[E:\dev\flex_3_beta3\sdk\framewor
> > > ks\projects\rpc\src\mx\rpc\wsdl\WSDLLoader.as:169]
> > > at flash.events::EventDispatcher/dispatchEventFunction()
> > > at flash.events::EventDispatcher/dispatchEvent()
> > > at
> > >
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::disp
> > > atchRpcEvent
> > > 
> > >
()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractIn
> > > voker.as:175]
> > > at
> > >
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resu
> > > ltHandler

> > >
()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractIn
> > > voker.as:198]
> > > at
> > >
mx.rpc::Responder/result()[E:\dev\flex_3_beta3\sdk\frameworks\projects\r
> > > pc\src\mx\rpc\Responder.as:48]
> > > at
> > >
mx.rpc::AsyncRequest/acknowledge()[E:\dev\flex_3_beta3\sdk\frameworks\pr
> > > ojects\rpc\src\mx\rpc\AsyncRequest.as:81]
> > > at
> > >
DirectHTTPMessageResponder/completeHandler()[E:\dev\flex_3_beta3\sdk\fra
> > >
meworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:387]
> > > at flash.events::EventDispatcher/dispatchEventFunction()
> > > at flash.events::EventDispatcher/dispatchEvent()
> > > at flash.net::URLLoader/onComplete()
> > >
> > > Thanks
> > > Ralph
> > >
> >
> >  
> >
>




Re: [flexcoders] Re: mx:webservice and .NET 2.0 webservices

2008-03-05 Thread Peeyush Tuli
flex 2 and .Net 2 webservices mix pretty well.

What's your flex version?

Are you getting the error at the time of loading the wsdl itself , i.e
without invoking any webmethod?
Are your request response message types defined in a particular
namespace in the xsd?

~Peeyush

On Thu, Mar 6, 2008 at 2:27 AM, essuark <[EMAIL PROTECTED]> wrote:

>   I am using Visual Studio 2005 that creates everything in .NET 2.0 -
> are you using Visual Studio 2008 and .NET 3.x?
>
> thanks
> r
>
>
> --- In flexcoders@yahoogroups.com , "Tracy
> Spratt" <[EMAIL PROTECTED]> wrote:
> >
> > Yes, I am successfully using .Net 2.0 webservice, though since I am
> > using VS 8, maybe it is .Net 3x?
> >
> >
> >
> > As pretty much a newbie with web services, I have left almost everthing
> > at the default (except for resultFormat). Are you doing anything fancy,
> > like setting contentType, or anything?
> >
> >
> >
> > And are you using Beta 3?
> >
> >
> >
> > Maybe post the WebService declaration and invocation code?
> >
> >
> >
> > Tracy
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com  [mailto:
> flexcoders@yahoogroups.com ] On
> > Behalf Of essuark
> > Sent: Wednesday, March 05, 2008 3:21 PM
> > To: flexcoders@yahoogroups.com 
> > Subject: [flexcoders] mx:webservice and .NET 2.0 webservices
> >
> >
> >
> > Has any one successfully called a .NET 2.0 webservice? I can create
> > one in .NET 1.1 and it works fine but 2.0 doesn't work. I did create a
> > C# test application that did connect to it and it worked so I know it
> > is flex.
> >
> > Here is the error.
> >
> > ReferenceError: Error #1065: Variable @namespace is not defined.
> > at
> > mx.rpc.xml::SchemaLoader/schemaImports()[E:\dev\flex_3_beta3\sdk\framewo
> > rks\projects\rpc\src\mx\rpc\xml\SchemaLoader.as:101]
> > at
> > mx.rpc.wsdl::WSDLLoader/schemaImports()[E:\dev\flex_3_beta3\sdk\framewor
> > ks\projects\rpc\src\mx\rpc\wsdl\WSDLLoader.as:260]
> > at
> > mx.rpc.wsdl::WSDLLoader/resultHandler()[E:\dev\flex_3_beta3\sdk\framewor
> > ks\projects\rpc\src\mx\rpc\wsdl\WSDLLoader.as:169]
> > at flash.events::EventDispatcher/dispatchEventFunction()
> > at flash.events::EventDispatcher/dispatchEvent()
> > at
> > mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::disp
> > atchRpcEvent
> > 
> > ()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractIn
> > voker.as:175]
> > at
> > mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resu
> > ltHandler 
> > ()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractIn
> > voker.as:198]
> > at
> > mx.rpc::Responder/result()[E:\dev\flex_3_beta3\sdk\frameworks\projects\r
> > pc\src\mx\rpc\Responder.as:48]
> > at
> > mx.rpc::AsyncRequest/acknowledge()[E:\dev\flex_3_beta3\sdk\frameworks\pr
> > ojects\rpc\src\mx\rpc\AsyncRequest.as:81]
> > at
> > DirectHTTPMessageResponder/completeHandler()[E:\dev\flex_3_beta3\sdk\fra
> > meworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:387]
> > at flash.events::EventDispatcher/dispatchEventFunction()
> > at flash.events::EventDispatcher/dispatchEvent()
> > at flash.net::URLLoader/onComplete()
> >
> > Thanks
> > Ralph
> >
>
>  
>


RE: [flexcoders] Re: mx:webservice and .NET 2.0 webservices

2008-03-05 Thread Tracy Spratt
Yes, so maybe my experience will not help you.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of essuark
Sent: Wednesday, March 05, 2008 3:58 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: mx:webservice and .NET 2.0 webservices

 

I am using Visual Studio 2005 that creates everything in .NET 2.0 -
are you using Visual Studio 2008 and .NET 3.x?

thanks
r

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Yes, I am successfully using .Net 2.0 webservice, though since I am
> using VS 8, maybe it is .Net 3x?
> 
> 
> 
> As pretty much a newbie with web services, I have left almost
everthing
> at the default (except for resultFormat). Are you doing anything
fancy,
> like setting contentType, or anything?
> 
> 
> 
> And are you using Beta 3?
> 
> 
> 
> Maybe post the WebService declaration and invocation code?
> 
> 
> 
> Tracy
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
[mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of essuark
> Sent: Wednesday, March 05, 2008 3:21 PM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] mx:webservice and .NET 2.0 webservices
> 
> 
> 
> Has any one successfully called a .NET 2.0 webservice? I can create
> one in .NET 1.1 and it works fine but 2.0 doesn't work. I did create a
> C# test application that did connect to it and it worked so I know it
> is flex. 
> 
> Here is the error.
> 
> ReferenceError: Error #1065: Variable @namespace is not defined.
> at
>
mx.rpc.xml::SchemaLoader/schemaImports()[E:\dev\flex_3_beta3\sdk\framewo
> rks\projects\rpc\src\mx\rpc\xml\SchemaLoader.as:101]
> at
>
mx.rpc.wsdl::WSDLLoader/schemaImports()[E:\dev\flex_3_beta3\sdk\framewor
> ks\projects\rpc\src\mx\rpc\wsdl\WSDLLoader.as:260]
> at
>
mx.rpc.wsdl::WSDLLoader/resultHandler()[E:\dev\flex_3_beta3\sdk\framewor
> ks\projects\rpc\src\mx\rpc\wsdl\WSDLLoader.as:169]
> at flash.events::EventDispatcher/dispatchEventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at
>
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::disp
<http://www.adobe.com/2006/flex/mx/internal::disp> 
> atchRpcEvent
> <http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent
<http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent> >
>
()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractIn
> voker.as:175]
> at
>
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resu
<http://www.adobe.com/2006/flex/mx/internal::resu> 
> ltHandler <http://www.adobe.com/2006/flex/mx/internal::resultHandler
<http://www.adobe.com/2006/flex/mx/internal::resultHandler> >
>
()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractIn
> voker.as:198]
> at
>
mx.rpc::Responder/result()[E:\dev\flex_3_beta3\sdk\frameworks\projects\r
> pc\src\mx\rpc\Responder.as:48]
> at
>
mx.rpc::AsyncRequest/acknowledge()[E:\dev\flex_3_beta3\sdk\frameworks\pr
> ojects\rpc\src\mx\rpc\AsyncRequest.as:81]
> at
>
DirectHTTPMessageResponder/completeHandler()[E:\dev\flex_3_beta3\sdk\fra
>
meworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:387]
> at flash.events::EventDispatcher/dispatchEventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at flash.net::URLLoader/onComplete()
> 
> Thanks
> Ralph
>

 



[flexcoders] Re: mx:webservice and .NET 2.0 webservices

2008-03-05 Thread essuark
I am using Visual Studio 2005 that creates everything in .NET 2.0 -
are you using Visual Studio 2008 and .NET 3.x?

thanks
r

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Yes, I am successfully using .Net 2.0 webservice, though since I am
> using VS 8, maybe it is .Net 3x?
> 
>  
> 
> As pretty much a newbie with web services, I have left almost everthing
> at the default (except for resultFormat).  Are you doing anything fancy,
> like setting contentType, or anything?
> 
>  
> 
> And are you using Beta 3?
> 
>  
> 
> Maybe post the WebService declaration and invocation code?
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of essuark
> Sent: Wednesday, March 05, 2008 3:21 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] mx:webservice and .NET 2.0 webservices
> 
>  
> 
> Has any one successfully called a .NET 2.0 webservice? I can create
> one in .NET 1.1 and it works fine but 2.0 doesn't work. I did create a
> C# test application that did connect to it and it worked so I know it
> is flex. 
> 
> Here is the error.
> 
> ReferenceError: Error #1065: Variable @namespace is not defined.
> at
> mx.rpc.xml::SchemaLoader/schemaImports()[E:\dev\flex_3_beta3\sdk\framewo
> rks\projects\rpc\src\mx\rpc\xml\SchemaLoader.as:101]
> at
> mx.rpc.wsdl::WSDLLoader/schemaImports()[E:\dev\flex_3_beta3\sdk\framewor
> ks\projects\rpc\src\mx\rpc\wsdl\WSDLLoader.as:260]
> at
> mx.rpc.wsdl::WSDLLoader/resultHandler()[E:\dev\flex_3_beta3\sdk\framewor
> ks\projects\rpc\src\mx\rpc\wsdl\WSDLLoader.as:169]
> at flash.events::EventDispatcher/dispatchEventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at
> mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::disp
> atchRpcEvent
> 
> ()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractIn
> voker.as:175]
> at
> mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resu
> ltHandler 
> ()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractIn
> voker.as:198]
> at
> mx.rpc::Responder/result()[E:\dev\flex_3_beta3\sdk\frameworks\projects\r
> pc\src\mx\rpc\Responder.as:48]
> at
> mx.rpc::AsyncRequest/acknowledge()[E:\dev\flex_3_beta3\sdk\frameworks\pr
> ojects\rpc\src\mx\rpc\AsyncRequest.as:81]
> at
> DirectHTTPMessageResponder/completeHandler()[E:\dev\flex_3_beta3\sdk\fra
> meworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:387]
> at flash.events::EventDispatcher/dispatchEventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at flash.net::URLLoader/onComplete()
> 
> Thanks
> Ralph
>