namespaces problem?

  • Thread starter Thread starter Raed Sawalha
  • Start date Start date
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
 
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.
 
Back
Top