8 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I have a C++ program which ends up getting run on every conceivable distro. What I can't do in C++, I can do by shelling out to the O/S. I am trying to find a portable way to send the system into hibernate and suspend modes. For users who have pm-utils, of course, I can use that, but I am trying... (4 Replies)
Discussion started by: BrandonShw
4 Replies
2. UNIX for Dummies Questions & Answers
Hello everyone!
Here's my problem (I'm a newbie):
I use a program/calculator which launches several parallel processes at each iteration. Then it expects to receive a response file from each of the processes before continuing to the next iteration:
Launch_program ---> starts 30 processes... (6 Replies)
Discussion started by: kasumlolla
6 Replies
3. What is on Your Mind?
QR Code Generator (0 Replies)
Discussion started by: Neo
0 Replies
4. Ubuntu
Title says it all. Occasionally but frequently I lose sound: external speakers and headphones both make no noise. I just realized that this tends to happen (perhaps only happens) after starting the computer following hibernation. Rebooting always fixes the issue... but I'd hate to tell my... (3 Replies)
Discussion started by: CRGreathouse
3 Replies
5. Shell Programming and Scripting
I'd like to use a shell script to edit the params in my hibernate.cfg.xml file.
I need to substitute the database info(user name, password,url)
Here is a look at it:
<hibernate-configuration>
<session-factory name="">
<property... (1 Reply)
Discussion started by: mc1392
1 Replies
6. Red Hat
1) How to enable Hibernate in Linux ?
2) Does compiling kernel from source code
alters the current setup of the kernel after implementation
Thx in advance,
siva. (3 Replies)
Discussion started by: Sivaswami
3 Replies
7. Linux
Hi,
I want to enable hibernate in my machine.
when i click hibernate option, it is throwing message that hibernate is not enabled in kernel.
earlier, i was hibernating in the same machine with windows os.
any idea ?
Thx in advance.
Siva (0 Replies)
Discussion started by: Sivaswami
0 Replies
8. AIX
We have an AIX machine running Tomcat 5.0.28 along with Java 1.5. There are two web application on there however when we start Tomcat and unpack the WAR files only one of the sites work. Then if we remove the working site then the other site starts to work. So it appears that one is taking... (0 Replies)
Discussion started by: coaxis
0 Replies
SOAP::WSDL::Generator::PrefixResolver(3pm) User Contributed Perl Documentation SOAP::WSDL::Generator::PrefixResolver(3pm)
NAME
SOAP::WSDL::Generator::PrefixResolver - prefixes for different classes
SYNOPSIS
If you want to create your custom prefix resolver:
package MyPrefixResolver;
use strict; use warnings;
use base qw(SOAP::WSDL::Generator::PrefixResolver);
sub resolve_prefix {
my ($self, $type, $namespace, $node) = @_;
# return something special
return $self->SUPER::resolve_prefix($type, $namespace, $node);
}
When generating code:
use MyPrefixResolver;
use SOAP::WSDL::Generator::XSD;
my $generator = SOAP::WSDL::Generator::Template::XSD->new({
prefix_resolver_class => 'MyPrefixResolver',
});
DESCRIPTION
Prefix resolver class for SOAP::WSDL's code generator. You may subclass it to apply some custom prefix resolving logic.
Subclasses must implement the following methods:
o resolve_prefix
sub resolve_prefix {
my ($self, $namespace, $node) = @_;
# ...
}
resolve_prefix is expected to return a (perl class) prefix. It is called with the following parameters:
NAME DESCRIPTION
-----------------------------------------------------------------------------
type One of (server|interface|typemap|type|element|attribute)
namespace The targetNamespace of the node to generate a prefix for.
node The node to generate a prefix for
You usually just need type and namespace for prefix resolving. node is provided for rather funky setups, where you have to choose
different prefixes based on type names or whatever.
Node may be of any of the following classes:
SOAP::WSDL::Service
SOAP::WSDL::XSD::Attribute
SOAP::WSDL::XSD::Element
SOAP::WSDL::XSD::Type
Note that both namespace and node may be undef - you should test for definedness before doing anything fancy with them.
If you want your prefixes to represent perl class hierarchies, they should end with '::'.
Example:
Imagine you're generating interfaces for the Acme Pet Shop. Acme Corp. has set up their datatypes to be global across all interfaces
(and products), while elements are local to the product (the Pet Shop in the example). All elements are in the urn:Acme namespace.
In addition, there are types in the namespace urn:Acme:Goods, which should go into the same namespace as types, but be prefixed with
'Goods_'
You may want prefixes (roughly) like this:
Interfaces: Acme::Client::PetShop::
Server: Acme::Server::PetShop::
Types: Acme::Types::
Types (Goods): Acme::Types::Goods_
Elements: Acme::Elements::PetShop::
Typemaps: Acme::Typemaps::PetShop::
BUGS AND LIMITATIONS
You cannot suffix your types by some rule yet...
LICENSE AND COPYRIGHT
Copyright 2008 Martin Kutter.
This file is part of SOAP-WSDL. You may distribute/modify it under the same terms as perl itself
AUTHOR
Martin Kutter <martin.kutter fen-net.de>
REPOSITORY INFORMATION
$Rev: 583 $
$LastChangedBy: kutterma $
$Id: $
$HeadURL: $
perl v5.10.1 2010-12-21 SOAP::WSDL::Generator::PrefixResolver(3pm)