Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / August 2005

Tip: Looking for answers? Try searching our database.

Namespace with WSE and WebService in VB .Net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
julian - 22 Aug 2005 01:31 GMT
Hi,

I'm using VB .Net. I have a WebService which also uses WSE to send messages
to registered clients.

In the client the WebService is included as a Web Reference.

When calling the WebService, an object is returned with a namespace which is
the folder name containing the Web Reference.

When I receive an object of the same class in a SoapEnvelope using
SoapReceiver, it has a different namespace. Out of desperation I then convert
it to the same type of object as returned by the WebService so I can use the
same client code to process it.

How do I avoid the conversion? What have I missed?

thanks

Signature

julian

Shaun Wilde - 23 Aug 2005 09:39 GMT
I have this issue in a VB.NET project using wse1 (ugh)

Have you tried adding a (global) Import (via project properties) that is the
namespace where all your classes that you are using via webservices reside?

I also have a macro for removing the created classes and enums - since I
don't need them again and the Import then allows the compiler to reference
the ones I want as the ones in the local namespace are now deleted.

What I hate most is the use of fields rather than properties and the above
lets me have properties.

> Hi,
>
[quoted text clipped - 14 lines]
>
> thanks
julian - 24 Aug 2005 23:21 GMT
thanks Shaun,

tried and failed, the import just saves me some typing,
Signature

julian

> I have this issue in a VB.NET project using wse1 (ugh)
>
[quoted text clipped - 26 lines]
> >
> > thanks
Shaun Wilde - 25 Aug 2005 14:32 GMT
So all you need to do is delete all the extraneous classes and enums then ?

> thanks Shaun,
>
[quoted text clipped - 30 lines]
> > >
> > > thanks
julian - 25 Aug 2005 22:59 GMT
thanks again,

I thnk I've missed something / feeling a bit slow!.

Add WebReference, change WebReference Folder name from "com.xxxxxx.www" to
"something sensible" and add Global Import works great for classes from
WebService received in the client.

What happens for the same classes returned inside a SoapEnvelope using
SoapClient / SoapService?

Signature

julian

> So all you need to do is delete all the extraneous classes and enums then ?
>
[quoted text clipped - 32 lines]
> > > >
> > > > thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.