namespaces problem?

R

Raed Sawalha

I have create a Component using Class Library the namespace isn imsgCOM
the imsgCOM has (one struct(structUser) , one enum(UsersEnum), and two
classes (SingleUser,MultiUsers))


then i created a web service and attach the reference for the component to
it.
the web service namespace is MsgWebServices.

I already have a windows application in Form1.cs I attach in WebReferences
my WebService DLL
and in References the component DLL, the PROBLEM that when I use the
webservice namespace like

MsgWebServices then . to see the contents the structures and enums and class
in the imsgCOM component is listed in webservice namespace ,,WHY this
happending .
the webservice and component using different name spaces and each has its
own DLL

why the content of component listed in webservices namespace?


Regards
 
S

Scott Allen

These are proxy classes generated by the web service tool to enable
the web service client to communicate with the web service. I take it
the structs and classes are used as parameters in your WebMethods, so
a client would need a definition of these types in order to use the
web service.

If the structs and classes are implementation details (the web service
uses them internally), then give them a visibility of internal instead
of public.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top