1
голосов
1ответов
1274 просмотров

Manipulating namespace prefixes in SAAJ / raw xml access within SAAJ

My SAAJ-based client generates the following XML and sends it to a .NET web service: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Header> <AuthenticationHeader xmlns="http://www.w3.org/2001/XMLSchema-instance"> <Password xmlns="htt...

1
голосов
1ответов
305 просмотров

Missing namespaces, LINQ works in web app but not website!

Okay guys, I have an asp.net website set up to target the 3.5 framework, using Linq to Sql. However, the site won't build, and i get missing namespace and assembly exception whenever i try to. Here's the catch, I have installed 3.5 SP1, and I have added the System.Core, System.Data.Linq, System...

6
голосов
1ответов
2338 просмотров

UUID namespace and name. How to retrieve it?

I have the following problem. I assign to any object in my database a UUID. When I get a UUID from any source, to obtain the object I need to know what type of object is, so I can query the correct table in the database. As far as I understand, UUID version 5 supports namespacing, but I am not su...

4
голосов
4ответов
11225 просмотров

Get Namespace, classname from a dll in C# 2.0

I will get dll's dynamically. I need to load the dll and get the namespace, classname to invoke a method (the method name is static it will be always "OnStart()"). Basically I need to run a method by loading the dll. Can somebody help!!!.

0
голосов
2ответов
264 просмотров

using namespace issue

When I use the following #include <map> using namespace LCDControl; Any reference to the std namespace ends up being associated with the LCDControl name space. For instance: Generic.h:249: error: 'map' is not a member of 'LCDControl::std' How do I get around this? I didn't see anyth...

2
голосов
2ответов
233 просмотров

Is attaching functions to the jQuery object bad practice?

Currently I have a jQuery plugin which not only sets up its function in $.fn but also $ itself, checking if (typeof(this) == 'function') to see if it has been called through $.pluginname or $(elm).pluginname... is this bad practice, and if so, is there a better way to make providing the element o...

5
голосов
3ответов
1510 просмотров

.NET: How do you decide how to structure your Namespaces?

I'm wondering what guidelines you guys are using for determining the structure for your Namespaces. When do you decide something warrants it's own Namespace? I read in a forum discussion or article that a best practice is to go for a shallow tree with as few child Namespaces as possible but can'...

33
голосов
4ответов
27795 просмотров

PHP library for parsing XML with a colons in tag names?

I've been trying to use SimpleXML, but it doesn't seem to like XML that looks like this: <xhtml:div>sample <xhtml:em>italic</xhtml:em> text</xhtml:div> So what library will handle tags that look like that (have a colon in them)?

0
голосов
3ответов
132 просмотров

Namespace recommendations for holding enumerations?

Well i have just been through my rather large project and used correct namespacing (within the naming conventions) so i have things like Models, Service, UI etc.... all the standard stuff.. AND I HAVE DRAWN A BLANK :-)!! I have quite a few enumerations, constants and things like that which i ne...

0
голосов
1ответов
284 просмотров

Use of any class / namespace with ZendFramwork

EDIT: Additional questions: do I have to add the '.php' at the end of new NAMSPACE_CLASSNAME Can I access any Zend package inside my controller / model, for example: /* Controller // Methods // inside a */ method $client = new Zend_Http_Client('http://exa...

1
голосов
5ответов
10264 просмотров

Why is namespace not recognised?

I have a solution called Tools that has three projects in it; Tools, PerecentageBar, MessageBox. Each of these projects is part of the Tools assembly.[In the properties page of each I have set the AssemblyName to MyCompany.Tools.Controls]. I have in Tools Project: namespace MyCompany.Tools.Con...

0
голосов
3ответов
530 просмотров

How can I use a class with the same name from another namespace in my class?

I have two classes with the same name in different namespaces. I want one of these classes to reference the other class. The reason is that I am migrating to some newer code and I want to update the old code to simply pass through to the newer code. Here is a super basic example: namespace proj...

0
голосов
2ответов
120 просмотров

Preferred ordering of terms in namespace name

I'm about to set out on developing a .NET class library that will be consumed by several projects. I've reached a point in my design where I'm not 100% sure which order my namespaces should be nested in. The two options I see are: The shared project uses MyCompany.Common.Web MyCompany.Com...

2
голосов
2ответов
5285 просмотров

XSL Transform, select on prefix namespace?

I am trying to select a node from the following xml that have prefix from namespace: <gesmes:Envelope xmlns:gesmes="http://www.gesmes.org/xml/2002-08-01"> <Cube> <Cube time="2009-10-12"> <Cube currency="USD" rate="1.4765"/> ...............................

39
голосов
2ответов
1092 просмотров

Why is the Process class in the Diagnostics namespace?

Why is the Process class part of the Diagnostics namespace? This is a part of design of the BCL that kept me wondering for some time now. I find it kind of counter-intuitive, I fail to see the connection between Process and for instance the Debug and Trace classes.

4
голосов
2ответов
4299 просмотров

Adding to local namespace in Python?

Is there a way in Python to add to the locals name-space by calling a function without explicitly assigning variables locally? Something like the following for example (which of course doesn't work, because locals() return a copy of the local name-space) where the print statement would print '1'...

20
голосов
6ответов
17556 просмотров

Finding all Namespaces in an assembly using Reflection (DotNET)

I've got an assembly (loaded as ReflectionOnly) and I want to find all the namespaces in this assembly so I can convert them into "using" ("Imports" in VB) statements for an auto-generated source code file template. Ideally I'd like to restrict myself to top-level namespaces only, so instead of:...

9
голосов
5ответов
1011 просмотров

The use of global:: for conflicting namespaces

From what I understand, the global:: qualifier allows you to access a namespace that has been hidden by another with the same name. The MSDN page uses System as an example. If you create your own namespace System, you can reach the original with global::System. The first thing that came to mind i...

5
голосов
2ответов
8086 просмотров

How do I deserialize XML namespaces in C# (System.Xml.Serialization)?

I am just putting the finishing touches to my Zthes format deserializer (System.Xml.Serialization) which uses the namespace "dc" in the element "thes". All "term" elements are deserializing fine because they have no namespace but I cannot figure out how to tell the deserializer that the "thes" el...

1
голосов
3ответов
439 просмотров

Linq2sql naming convention

I have just started using Linq2sql, it generates all of the Classes after my tables which is awesome. my problem is that i have a lot of objects that have the same name as my tables. this is forcing my to fully namespace everything which i don’t really like as i think it makes my code look messy...

5
голосов
3ответов
984 просмотров

Javascript: namespacing

I'm currently using the following pattern to create namespaces and singleton objects in Javascript: var Namespace = function () { var priv = { privateVar1: '', privateVar2: '', privateFunction1: function () { //do stuff [...] }, ...

0
голосов
1ответов
560 просмотров

problem with DWR integration in spring?

Actually this is not, how can we integrate DWR and all that. But actually the problem is i am using xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr" and few hours back 'http://www.directwebremoting.org' was down, so i was unable to deploy my application, And now when the site is...

11
голосов
4ответов
10580 просмотров

Using a class in a namespace with the same name?

I have to use an API provided by a DLL with a header like this namespace ALongNameToType { class ALongNameToType { static void Foo(); } } Is there a way to use ALongNameToType::ALongNameToType::Foo without having to type ALongNameToType::ALongNameToType each time? I tried us...

0
голосов
2ответов
352 просмотров

Namespace problem

I'm working on an ASP.NET web application with .NET 3.5 and have run into the following problem: I'm working with a class under the namespace X.Web.Controls.Core which references the class Utils in the namespace X.X2.components.util. I get an error that Utils is already defined in the namespace...

2
голосов
2ответов
7080 просмотров

How to change Namespace of jQuery?

I'm working on a library which uses jQuery internally which work fine. But I don't want force the user to use my jQuery version just because he uses my library in his code. So the question is, how can I use jQuery under a different name? Is it sufficient to do something like this: var mylib.jQ...

18
голосов
7ответов
26096 просмотров

The type name {myUserControl} does not exist in the type {myNamespace.myNamespace}

I have a problem (obviously the question :) I have a project-- MyProject... hence the rest of the project uses a default of any classes as namespace "MyProject"... no problem. In my project, I created a custom user control that has many other controls on it (label, textboxes, etc). So, that c...

0
голосов
1ответов
739 просмотров

Namespace not found, though added .dll

I have an ASP.NET 3.5 web application. I added the a class library project, that have class as clsOperation, this class have 3 methods. I build this class. Add .dll to my web application as reference.Biult my website. but while I am trying to add a header in the code behind (using my namespace) t...

2
голосов
2ответов
580 просмотров

which namespace does toupper belong to

when I'm reading some c++ sample code for beginner , I'm puzzled at the usage of toupper in the following line : std::transform(data.begin(), data.end(), data.begin(), ::toupper); from the above line, I know that "transform" is from namespace std , but I don't know which namespace does toupper...

1
голосов
1ответов
1524 просмотров

Namespace or something else to avoid name conflict with Kohana's Image library

I have a custom helper whose class name, Image_Core conflicts with Kohana's Image Library ( I can use the Library anywhere except inside my helper ) Is there any other way to call the Image Library, like a namespace or something? ( well, it isn't in a namespace, as I just checked ) or will I h...

0
голосов
4ответов
1598 просмотров

Relationship between Assembly and Namespace in .NET framework?

I know that it's possible to have many classes in a namespace. Now, is it possible to have a class in more than one assembly (.dll file)?