Mapping Package Names using Axis
Hi,
I'm trying to do something which I think is pretty straightforward, but am getting no success.
When running WSDL2Java, A package is getting created called DSAdminService. I would like this to be renamed to com.cs.scs... How do I do this?
I have tried the tip in topic http://forum.java.sun.com/thread.jspa?forumID=331&threadID=553899 , but this is not helping. Here is my build file at present:
<?xml version="1.0" encoding="UTF-8"?>
<project name="engine-daemon-admin" default="make-axis" basedir=".">
<path id="axis.classpath">
<fileset dir="..\lib">
<include name="**/*.jar" />
</fileset>
</path>
<taskdef resource="axis-tasks.properties" classpathref="axis.classpath"/>
<target name="make-axis">
<axis-wsdl2java output="." url="http://s12345.csfb.cs-group.com:8210/livecluster/webservices/EngineDaemonAdmin?WSDL">
<mapping namespace="DSAdminService" package="com.cs.test"/>
</axis-wsdl2java>
</target>
</project>Any help much appreciated !
Thanks
Richard
Message was edited by:
richard_hawkes
The namespace attribute in the mapping element takes the value of your WSDL's namespace. So for example, if the source WSDL used in the WSDL2Java task has the namespace "urn:my/wsdl/namespace", and you want the generated code to be placed in the package com.cs.scs, you would use:
<axis-wsdl2java output="." url="http://s12345.csfb.cs-group.com:8210/livecluster/webservices/EngineDaemonAdmin?WSDL">
<mapping namespace="urn:my/wsdl/namespace"
package="com.cs.scs"/>
Similar Messages
-
How to find the package name using request number
I want to check the package name using the request no ,
Plz help meHi
You can use SE03 for the same. In that
Object Directory Node --> Change Object Directory Entries of Objects in a Request.
Dbclick on that and provide chield request and press F8 you will get the object with the package.
Hope this will Help.
Regards,
Hiren Patel -
How to specify table name using xdoclet
Hi
I'm trying to specify a table name using xdoclet 1.2.
I've tried the @sql.table, but that ain't working (no table mapping name is
writen to the *.jdo)
I've tried using the @jdo.class-vendor-extension with key=table and
value=tablename, but that ain't working either.
I guess number two approach ain't working because kodo want table name
extension inside another extension like this:
<extension vendor-name="kodo" key="jdbc-class-map" value="base">
<extension vendor-name="kodo" key="table" value="tablename"/>
</extension>
But, how do I specify the above using xdoclet?
Regards
JesperOk.
Is it possible somehow to just tell kodo to use another table name without
having to create mapping extensions for collections and stuff. Even better
if one could specify a table name prefix to be used on all tables.
My problem is that I need use kodo on an existing database having tables
names that conflict with kodo's auto-generated tables names. The schematool
will then try alter these tables :-(
Regards
Jesper
"Stephen Kim" <[email protected]> wrote in message
news:[email protected]...
When you use metadata mapping extensions, you should not generate
.mapping files as all that info is stored in the .jdo file. You should
instead set kodo.jdbc.MappingFactory to metadata.
Jesper Ladegaard wrote:
Thanks.
However, I still can't get it to work.
I've created a java class named Role with xdoclet like this:
* @jdo.persistence-capable
* @jdo.class-vendor-extension
* vendor-name="kodo" key="jdbc-class-map" value="base"
* @jdo.class-vendor-extension
* vendor-name="kodo" key="jdbc-class-map/table" value="BW_ROLE"
* @jdo.class-vendor-extension
* vendor-name="kodo" key="jdbc-class-map/pk-column" value="JDOID"
Xdoclet generates a jdo file like this:
<jdo>
<package name="dk.pine.users.services.model">
<class name="Role"
identity-type="datastore"
<!-- end class tag --><extension vendor-name="kodo"
key="jdbc-class-map"
value="base">
</extension>
<extension vendor-name="kodo"
key="jdbc-class-map/table"
value="BW_ROLE">
</extension>
<extension vendor-name="kodo"
key="jdbc-class-map/pk-column"
value="JDOID">
</extension>
<field name="users"
default-fetch-group="true"
<!-- end field tag --><collection
element-type="dk.pine.users.services.model.User"
embedded-element="false"
<!-- end collection tag --></collection>
<extension vendor-name="kodo"
key="inverse-owner"
value="roles">
</extension>
</field>
</class>
</package>
</jdo>
Now I run the mappingtool (with option refresh) and it generates a
mapping
file like this:
<mapping>
<package name="dk.pine.users.services.model">
<class name="Role">
<jdbc-class-map type="base" pk-column="JDOID"
table="dbo.ROLE0"/>
<jdbc-version-ind type="version-number"column="JDOVERSION"/>
<jdbc-class-ind type="in-class-name" column="JDOCLASS"/>
<field name="description">
<jdbc-field-map type="value" column="DESCRIPTION"/>
</field>
<field name="name">
<jdbc-field-map type="value" column="NAME0"/>
</field>
<field name="systemRole">
<jdbc-field-map type="value" column="SYSTEMROLE"/>
</field>
<field name="users">
<jdbc-field-map type="many-many"
element-column.JDOID="JDOID" ref-column.JDOID="ROLES_JDOID"
table="dbo.USER0_ROLES"/>
</field>
</class>
</package>
</mapping>
I expected it to create a BW_ROLE, but it create a ROLE0 table????
"Stephen Kim" <[email protected]> wrote in message
news:[email protected]...
You can use slashes to denote sub extensions.
See the example near the bottom of this link:
http://solarmetric.com/Software/Documentation/3.0.3/docs/ref_guide_integrati
on_xdoclet.html
Jesper Ladegaard wrote:
Hi
I'm trying to specify a table name using xdoclet 1.2.
I've tried the @sql.table, but that ain't working (no table mapping
name
>>
is
writen to the *.jdo)
I've tried using the @jdo.class-vendor-extension with key=table and
value=tablename, but that ain't working either.
I guess number two approach ain't working because kodo want table name
extension inside another extension like this:
<extension vendor-name="kodo" key="jdbc-class-map" value="base">
<extension vendor-name="kodo" key="table" value="tablename"/>
</extension>
But, how do I specify the above using xdoclet?
Regards
Jesper
Steve Kim
[email protected]
SolarMetric Inc.
http://www.solarmetric.com
Steve Kim
[email protected]
SolarMetric Inc.
http://www.solarmetric.com -
How to Get Package Name While Running
Hi
i want to load Package Name to Table.
So any idea about ODI Ref Function to get Package Name.Hi Nagarjuna,
You can get package name by doing following steps, as per my knowledge, scenario name and package name both are same in ODI (while creating scenario for package).
by the time you can retrieve scenario name as package name using below select query with selecting Work Repository schema in ODI variable
QUERY:
select SESS_NAME
from <%=snpRef.getObjectName("L","SNP_SESSION","D")%>
where SESS_NO = <%=snpRef.getSession("SESS_NO")%>
Steps:
1) create a project variable as Get_Package_Name and Data type as Alphanumeric, in Refreshing tab, type above select query and select work repository schema in schema (eg: create WorkRep logical schema in topology manager)
2) Add Get_Package_Name variable with refresh in package (before interface step)
3) Generate Scenario for package with same package name with version 001
When you execute the scenario you can retrieve the package name in Get_Package_Name odi variaable
Hope this may helps you
Regards,
phanikanth -
How to get the package name of a procedure used in a process flow activity
Hi all. I'm on OWB 11.2.0.2.0.
When I used a packaged procedure or function in a mapping operator, I can find out the package.program_unit name by getting the operator's FUNCTION_NAME property. For example,
OMBRETRIEVE MAPPING '$mapName' OPERATOR '$operName' GET PROPERTIES (FUNCTION_NAME)
But when the same is used in a process flow activity, I can't find a property name that will give me the same information. I can get the BOUND_NAME, it does not tell me the package name. It must be stored in the activity properties because when you pull up the Synchronize dialog for the activity, it knows the package name.
Is there a way to get this via an OMBRETRIEVE?
Thanks.ANA, this is exactly what I needed. Thank you so much. I saw REFs also in the OMBRETRIEVE MAPPING/OPERATOR syntax, but went cross-eyed trying to figure out if I could use the same there. The closest I found was GET BOUND_OBJECT.
Thanks again! -
How to call a stored procedure using its package name in Oracle
hi
we're doing a JDBC scenario where we call a stored procedure(a.prc) using its package name(b)The stored procedure has In /Out/IN-OUT parameter.
i have got 2 queries:
1- How to call the stored procedure using it's package.
2- How to capture the In/Out parameter in the response.hi Prateek
thanks for the reply.
However when i tried mapping it to Package.procedure, communication channel throws the error saying that Package.proceudre needs to be declared.
As i said , the procedure has IN-OUT parameter too.In oracle we need to write a block if we want to read the IN-OUT parameter.
How to get the IN-OUT parameter in XI? -
Mapping namespace to generated package name (clientgen)
Hello,
We have a need to map the namespace of the generated bean artifacts from clientgen to a different package name. This could be done prior to weblogic 10 with the typePackageName attribute of clientgen but this is no longer supported in weblogic 10. Is there another way to do this? Note we cannot change the namespace of the webservice wsdl we are generating the client for.
Thank you!
Julia AllenUse the <binding> child element to specify one of the following:
* For JAX-WS, one or more customization files that specify one or more of the following:
o JAX-WS and JAXB custom binding declarations. For more information, see “Customizing XML Schema-to-Java Mapping Using Binding Declarations” in Getting Started With WebLogic Web Services Using JAX-WS.
o SOAP handler files. For more information, see “Creating and Using SOAP Message Handlers” in Programming Advance Features of WebLogic Web Services Using JAX-WS.
* For JAX-RPC, one or more XMLBeans configuration files, which by convention end in .xsdconfig. Use this element if your Web Service uses Apache XMLBeans data types as parameters or return values.
The <binding> element is similar to the standard Ant <Fileset> element and has all the same attributes. See the Apache Ant documentation on the Fileset element for the full list of attributes you can specify.
Note: The <binding> element replaces the <xsdConfig> element, which is deprecated as of version 10.0 of WebLogic Server.
See here for detail. -
i already reserved app name as Ma_Test. But only one error showing "This package is using an app name that hasn't been reserved for this app: "Matest". how to solve?
Hello,
You need to make sure both names match exactly -
Full package name needed when using FindClass?
When loading a class for use by the invocation interface, do I need to use the full package name of the class to be loaded, or just the class name?
For example, I have a program called MyProg. It is part of package MyProg, and when I run it, I have to do so using java MyProg.MyProg.
When loading the class, I've tried both of the following:
cls = (*env)->FindClass(env, "MyProg\\MyProg");
cls = (*env)->FindClass(env, "MyProg");Neither one works. Anyone know for sure which one it shoulf be? I suspect that there is a classpath issue coming into play as well, but that's another post. :)Thanks! Just to clarify, this is on a Win32 machine.
-
Hello Team,
I am trying to execute a SSIS package from web page. When i try to do that i am getting following error.
"To run a SSIS package outside of SQL Server data tools you must install <task name used in package> of Integration service or highter."
In my machine Integration Services are installed and its service is also in running state.
Please help me on this.
Thanks,
Ramesh
Thanks, Ramesh ArigeThe SSIS package developed using SSIS 2008 Server R2 and Integrations Services 10.0 is exists in my machine. Is this wrong configuration, please help me on this.
I am using the below code copied from CodeProject
Thank you so much for responding.
Ramesh
Thanks, Ramesh Arige
Which way are you using from the provided blog? Using 1) C# Code or 2) C# and Stored Procedure?
Cheers,
Vaibhav Chaudhari
MCP, MCTS, MCSA (SQL Server 2012) -
How to fetch what are all the tables used in this TR no and Package name of
Hi Friends,
I have input of Transport Request no (E070-TRKORR).
How to fetch what are all the tables used in this TR no and Package name of this Table.HI,
FYI
SELECT E071OBJECT_NAME, E070MDEVCLASS
FROM E071, E070M
WHERE TRKORR = YOU REQUEST NO. -
[SOLVED]How to search package name only when using yaourt
I often install a AUR package by yaourt term, but it does not only search terms in package name but also package description, since there are so much packages in AUR, it produce many pages of items, and it can not support more to page one screenful at a time, It
become difficult to get the right choice,
Thank you in advance!
Last edited by netawater (2013-06-14 00:47:06)Hey, that's one thing I actually know how to do with regexes! All package descriptions have some spaces at their beginning, the package names themselves have not, so you can just use inverted grepping like so:
$ pacman -Ss test | grep -v '^ '
core/perl 5.10.1-5 (base)
extra/fprint_demo 0.4-2 (fprint)
extra/ghc 6.12.1-2
extra/haskell-hunit 1.2.2.1-1
extra/haskell-quickcheck 2.1.0.3-1
extra/junit 4.7-1
extra/kdesdk-kpartloader 4.4.0-1 (kde kdesdk)
extra/libxtst 1.1.0-1
extra/memtest86+ 4.00-1
extra/mono-tools 2.6.1-1
extra/openoffice-base 3.2.0-1
extra/openoffice-base-beta 3.2.0_ooo320_m12-1
extra/perl-test-pod 1.41-1
extra/python-nose 0.11.1-1
extra/qemu-kvm 0.12.2-1
extra/testdisk 6.11.3-2
extra/unarj 2.63a-2
extra/xbill 2.1-6
xyne-any/reflector 5.0-2
community/buildbot 0.7.11p3-1
community/cppunit 1.12.1-1
community/cxxtest 3.10.1-3
community/dsniff 2.4b1-15
community/gtk-aurora-engine 1.5.1-1
community/gtkperf 0.40-3
community/java-jdom 1.1.1-1
community/lib32-libxtst 1.1.0-1 (lib32)
community/perl-test-base 0.59-1
community/perl-test-deep 0.106-1
community/perl-test-differences 0.500-1
community/perl-test-exception 0.29-1
community/perl-test-manifest 1.23-1
community/perl-test-mockobject 1.09-1
community/perl-test-nowarnings 1.01-1
community/perl-test-tester 0.107-1
community/perl-test-warn 0.21-2
community/phoronix-test-suite 2.4.0-1
community/pmtools 20100123-1
community/reflector 5.0-2
community/stress 1.0.0-2
community/typespeed 0.6.5-2
arch-games/mangler-snapshot 1.1.20100116-3
arch-games/ultimatestunts 0.7.5.1-1
This still shows the repos and the versions (nothing cut wouldn't be able to handle though). It works fine with pacman as you just saw, I can't guarantee for yaourt as I don't have it installed.
Edit: Hm… I just realized that this still displays the results where 'test' only occured in the package description. Give me some time to figure this out.
Edit 2: Another grep for 'test' would solve it:
$ pacman -Ss test | grep -v '^ ' | grep test
extra/memtest86+ 4.00-1
extra/perl-test-pod 1.41-1
extra/testdisk 6.11.3-2
community/cxxtest 3.10.1-3
community/perl-test-base 0.59-1
community/perl-test-deep 0.106-1
community/perl-test-differences 0.500-1
community/perl-test-exception 0.29-1
community/perl-test-manifest 1.23-1
community/perl-test-mockobject 1.09-1
community/perl-test-nowarnings 1.01-1
community/perl-test-tester 0.107-1
community/perl-test-warn 0.21-2
community/phoronix-test-suite 2.4.0-1
arch-games/ultimatestunts 0.7.5.1-1
Still, it's not that pretty to write the same thing twice. If you really want to do it like this, I suggest you make it a function in your ~/.${SHELL}rc.
Last edited by Runiq (2010-02-27 08:36:11) -
Can I use firefox in webview? what is the package name and the activity name?
Can I use firefox in webview? what is the package name and the activity name?
I saw : intent.setClassName("com.tencent.mtt", "com.tencent.mtt.MainActivity");
but what is the name for firefox?rahulmcadit wrote:
The phone is from UK and the carrier on which phone has been locked is "ORANGE". I want to use the same phone in India. I want to unlock the phone. Can you please suggest me what is the procedure to unlock the phone. How can I pay the amount to ORANGE carrier and can use my iphone in India.
Contact ORANGE to unlock it.
See this -> http://support.apple.com/kb/HT5014 -
why did I get an error message; installer: Package name is Adobe reader XI (11.0.10) installer: Certificate used to sign package is not trusted. Use -allowUntrusted to override?
Hi sgtwalker1226,
For Which operating system are you downloading the installer?
Regards,
Rahul -
Find all Package and their related Procedure Names using a specifc Table
I have 25 Packages
Each Package holds 30-35 Procedures
I need to find out all Packages and Procedures
Each Procedure handles 5 - 20 Tables as Per The Need of Business Rule.
I need All Package and Related Procedure Names Where a Specific Table Name Appears(DBA_SOURCE doesn't serve purpose.)
Early Reply Appreciated.
Thanks and Regards,I tried the solution provided to me, but unfortunately the issue remains the same.
I was Advised to Execute the SQL utldtree.Sql, and then Execute deptree_fill.
The output is given by a Table DEPTREE (Columns are: .'NESTED_LEVEL', 'TYPE', 'SCHEMA', 'NAME' and 'SEQ#')
The output I am getting From the Table DEPTREE is as follows -
Column TYPE value is PACKAGE; Column NAME Value is ACTUAL PACKAGE NAME
Column TYPE value is PACKAGE BODY; Column NAME Value is ACTUAL PACKAGE NAME
This repeats till the count the TABLE Name is found in the same PACKAGE
Desired Output should be -
Column TYPE value PACKAGE; Column NAME Value ACTUAL PACKAGE NAME
Column TYPE value PACKAGE BODY; Column NAME Value ACTUAL PACKAGE BODY NAME
This should repeat till the count the TABLE Name appears in different PACKAGE BODY of the same PACKAGE
Warm Regards,
Maybe you are looking for
-
Why does FCP error "File Not Found" when I try to open my sequences????
I recently updated all of my software and the following day I started getting errors "file not found" when I would try to open a sequence. Now all of my sequences are being lost and I am losing time and money because I can't meet deadlines! This ****
-
G/L account for payment terms
Hi, Is it possible to maintain 2 G/L accounts under 1 chart of account for cash discount? For example, G/L account 333333 for payment term Z333 and G/L account 222222 for payment term Z222. Will appreciate immediate feedback. Thanks.
-
How can I add multi columns to a JCombo Box ?
Dear experts, How can I add multi columns to a JCombo Box ? Thankx in advance Unique
-
Hi, I have a problem with my Glyphs in Pages. They show in Special Characters, but they don't actually end up on a page. What's up with that?? What can I do? Thanks, Marc
-
This probably sounds stupid, but I'm looking for a way to just dump the current ZEN7 Inventory Database and start it from scratch. There's so much garbage workstation information in there, and I'm not at all interested in querying the results, then f