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 Allen
Use 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.
Similar Messages
-
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_hawkesThe 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"/> -
in use:
vRO 5.1
eclipse 3.7.2
vRo plug-sdk 5.1
steps:
1.create a plug-in project from samples(choose solar system)
2.find the dar package and upload it by vRo configuration
3.vRo configuration said upload successfully,but the solar system configuration is not properly configued..
problem:
Problem accessing /config_general/null/Default.action Reason:There is no Action mapped for namespace/ config_general and action name default
How to solve it??
Thanks so much!!There was problem from crm side...its working now..
-
Name TCURC is not in the namespace for generated BI meta objects
Hi,
When I try to load data into infocube, I get a short dump during the DTP load with the below message
UNCAUGHT_EXCEPTION
Exception: CX_RSR_X_MESSAGE
Upon analysing the dump analysis I found the below system fields
SY-MSGTY E
SY-MSGID R7
SY-MSGNO 019
SY-MSGV1 TCURC
which gives the message text "Name TCURC is not in the namespace for generated BI meta objects"
If I remove the mapping with Amount KF in the TRFN and load data it works fine without error but on mapping the KF with currency unit I get this error.It is something related to Currency but I'm unable to figure out the problem.
Any suggestions on what could be the problem?
Thanks.Is this the real error?
Please, can you check the currency conversion with the function module CONVERT_TO_LOCAL_CURRENCY?
Have you customize the currency-tables? Use the functions RSA1 -> source system -> context menu -> global settings + exchange rate
Sven -
Package name for Toplink generated file
Is there is way to specify a package name for the java file generated when you export a project.
Thanks,
RajivYes, select the project in the mapping workbench, click on the "Defaults" tab.
There's a checkbox called "Specify Project Package".
Darren
Is there is way to specify a package name for the java file generated when you export a project.
Thanks,
Rajiv -
Inbound IDOC error (Name MARA is not in the namespace for generated BW Metaobjects)
Hi everybody,
we are currently having some issues with importing idocs into our ERP DEV System and i cannot figure out what the problem could be.
I am trying to import an IDOC Type ARTMAS (5) but i keep getting the following error "Name MARA is not in the namespace for generated BW Metaobjects"
The system is a ERP only system with no BI content activated at all.
I don´t find any more errors nor any dumps or SLG1 entries related to this issue.
Did someone already experienced that kind of problem, or do some of you maybe have an idea where to have a deeper look.
thanks & best regards
Peter
EDIT:
Running on ERP 6.0 EHP 7 SPS 4Hi Ganesh,
I guess there is something wrong with the data in the ODS.
Check this post:
Re: error 18 in the update!
Bye
Dinesh -
In the header file generated by javah, the package name is not in the funct
and in the header file generated by javah, the package name is not in the function declaration:
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class VocalJNITest */
#ifndef IncludedVocalJNITest
#define IncludedVocalJNITest
#ifdef __cplusplus
extern "C" {
#endif
* Class: VocalJNITest
* Method: JNI_1myJNI
* Signature: ()V
JNIEXPORT void JNICALL Java_VocalJNITest_JNI_11myJNI (***please not there is no package name in it****)
(JNIEnv *, jclass);
#ifdef __cplusplus
#endif
#endif
In the VocalJNITest.java file, I put package com.jni.test in it, why dose it not appear in the VocalJNITest.h file.it works,
thanks alot, but java really confuses me, for example, if i run the app, i need to type the complete name java com/...../jnitest, in which the "/" is used instead of
". " like com.vocal.jnitest as the package name in the source file.
but when using javah, i need to use ". " instead of "/";
i tried com/vocal/jnitest, but failed so i post the question here. -
WSDL type names generated by JDev 10.1.2 are prefixed by package name
Is there a way to prevent JDeveloper to prefix type names with package name? Example:
package a.test;
public interface TestWS {
public PublishType getType( String a) throws Exception;
When Web Service is generates using this interface, WSDL will have something like:
<complexType name="a_test_PublishType" jdev:packageName="a.test" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
Is there a setting to prevent this from happening?
Thanks,
DejanBy default <c:out/> tag "escapes" the output, option escapeXml is implicitly true
To change this behaviour add the option: escapeXml="false"
In your case:
<c:out value="${bindings.InstituteDescription}" escapeXml="false"/>
Hope it helped.
Regards
Fred -
Name is not in the namespace for generated BW Metaobjects
Hi Experts,
I am facing errors while loading data from ods to cube, thru init run,
1."Name is not in the namespace for generated BW Metaobjects"
2.Also "Error 18 in the update "
Can anyone help me out in resolving this issue.
Thanks in advance.
Points rewarded.Hi Ganesh,
I guess there is something wrong with the data in the ODS.
Check this post:
Re: error 18 in the update!
Bye
Dinesh -
Wlsc problem with package name
I am using wlsc ant task to generate my java code for a web service. Unlike the simplistic examples (HelloWorld and Complex) I have my complex types split into a separate .xsd file instead of putting them directly into the WSDL file.
Is there a way to set the package name that will be generated for these types? It seems to generate everything into a java package based on the namespace (which is different than the wsdl).
The wlsc ant task has an argument called "packageName" which I am setting. The java classes for the service itself use that package, just not the types defined in the xsd file(s). :(
Thanks for any helpsee SAP documentation for package naming convention:
Packages
The following namespaces are available for packages:
Package names beginning with a letter from A to S, or from U to X.
Package names beginning with these letters are reserved for objects of the SAP standard system from the SAP namespace. You cannot create customer objects or objects from prefix namespaces in these packages.
Note that the package name must be no more than 30 characters long. The name of the main package should reflect the content of the package Adjacent packages should have similar names.
The Transport Organizer records changes to objects in these packages, so that they can be transported.
These packages belong to the "SAP" transport layer and are assigned to an SAP software component (such as SAP_BASIS, SAP_APPL).
Package names beginning with Y or Z
You can create customer-specific objects from the customer namespace in these packages.
The Transport Organizer records changes to objects in these packages, so that they can be transported, provided the SAP System has been set up appropriately. (For more information, see Setting the System Change Option). These packages are assigned to the software component HOME.
So create the packages accordingly... -
Binding file for controlling package name
I looked at the related links, tried a few examples, not much success...
I realize this can be solved with more effort, but just trying the easy path, so ... ignore this if looks unreasonable, I know how busy developers feel...
Is there a good example to conform to these requirements:
Basically i would like binding file as a child element for wsdlc running in JAXWS mode that will follow package naming rules for JAXRPC... meaning:
Java files generated from xsd will match package name with xsd name space, while for JWS classes control specific package name ...
Most of my attempts failed due to xpath complaining for not finding any element for the node ...
Binding attempt 1: make all classes serializable
============================
<jaxws:bindings
xs:schemaLocation="Customer.xsd"
node="/xs:schema">
<jxb:globalBindings xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<jxb:serializable/>
</jxb:globalBindings>
</jaxws:bindings>
Binding attempt 2: keep same name for xsd classes
============================
<schemaBindings>
[ <package> com.myown.pack</package> ]
[ <nameXmlTransform> http://xmlschema.my.xsd.com/CustomerCall </nameXmlTransform> ]*Yes, select the project in the mapping workbench, click on the "Defaults" tab.
There's a checkbox called "Specify Project Package".
Darren
Is there is way to specify a package name for the java file generated when you export a project.
Thanks,
Rajiv -
I use OC4J and WSA built in early Jan. of 2006.
WSA generated the package name in reverse order sometimes and causing the runtime
to fail.
The actual package name is oracle.ias.messaging.ws.
On OC4J console, it is expecting ws.messaging.ias.oracle.XXX
Here is the error msg
06/01/23 16:32:06 WARNING: Problem validating implementation class. The method p
ublic abstract java.lang.String ws.messaging.ias.oracle.NotificationServicesPort
Type.replaceMessage(java.lang.String,ws.messaging.ias.oracle.MessageType) throws
java.rmi.RemoteException, as defined by the interface ws.messaging.ias.oracle.N
otificationServicesPortType, is not implemented by oracle.ias.messaging.ws.servi
ce.ServiceImpl
The complete test case is at:
http://xzang-pc2/temp/reverse-package-name/
This mapping file is fine:
http://xzang-pc2/temp/reverse-package-name/howto/src/service/ns-java-wsdl-mapping.xml
This mapping file has the reversed package name:
http://xzang-pc2/temp/reverse-package-name/howto/out/war/WEB-INF/ns-java-wsdl-mapping.xml
1 mapping file is ok. 2 are not.
In some other cases, it's correct.
Can someone help me please?Wonder whether the following would help.
In the genInterface command, specify mappingFileName="mapping.xml".
mapping.xml:
<java-wsdl-mapping version="1.0">
<package-mapping>
<package-type>oracle.ias.messaging.ws</package-type>
<namespaceURI>http://oracle.ias.messaging.ws</namespaceURI>
</package-mapping>
</java-wsdl-mapping> -
Making generated variable names?
Hey, I'm trying to make new Vector variables given some input I already have. I'm doing it as follows:
for (int i=0; i < commandName.size()-1; i++) {
String newVariableName = commandName.elementAt(i).toString();
Vector newVariableName = new Vector();
Of course, it's not working - but do you know if it is possible to generate variable names in this manner?Use HashMap.
You will generally find that most languages that offer variable dereferencing are also essentially "typeless", although you can sometimes query what the type of the "value" of a variable is.
HashMap does this exactly, with the bonus that you can double your namespace by creating two maps! :-) -
So, i'm doing this on my own app. I made an update for an older app that was build using Native Android. But this time, i used Adobe AIR... The catch is Adobe likes to append a "air." to the front of your package name without asking you. So basically I can't upload my update because it has a new package name is now "air.com.mycompany.myapp" rather than the original "com.mycompany.myapp"
Basically I'm going through this guide..
http://helpx.adobe.com/air/kb/opt-out-air-application-analytics.html
I followed all the steps, made all the adjustments to the androidmanifest.xml like it asks.
But after going along with the above guide, with no issues when i get to the step that says
"Run the following command to create the resource file for the updated AndroidManifest.xml:"
I run this..
"/Users/brybam/Documents/eclipse/android-sdk-mac_x86/platform-tools/aapt" package -f -M AndroidManifest.xml -F resources.arsc -I "/Users/brybam/Documents/eclipse/android-sdk-mac_x86/platforms/android-8/android.jar" -S ./res
But I keep getting the same error regarding the xml files in res/layout
./res/layout/expandable_chooser_row.xml:1: error: Error parsing XML: not well-formed (invalid token)
./res/layout/expandable_multiple_chooser_row.xml:1: error: Error parsing XML: not well-formed (invalid token)
./res/layout/main.xml:1: error: Error parsing XML: not well-formed (invalid token)
./res/layout/multiple_file_selection_panel.xml:1: error: Error parsing XML: not well-formed (invalid token)
./res/layout/ssl_certificate_warning.xml:1: error: Error parsing XML: not well-formed (invalid token)
The guide doesn't say anything about these xml files, and im not sure what to do with these or how to handle them.
If i go into the res/layout folder, and just delete these (i know they're necessary. But i just deleted them as a test, to get through the rest of the guide...)
I was able to get through the rest of the steps in the guide fine, make an apk, and put it on my phone...only to find out the app will crash the moment you try to run it. Probably because i deleted the layout xml files...But i cant get the command i need to run above to accept them!
So, earlier in the guide they have me use thing thing called the "AXMLPrinter2.jar" to make the AndroidManifest.xml readable so i can edit it.
I run something like this:
java -jar "/Users/brybam/Desktop/repackage/AXMLPrinter2.jar" AndroidManifest.xml > AndroidManifest.xml.bk
This makes a new file "AndroidManifest.xml.bk" and i can edit that.
So, I was thinking with all of these layout xml files, maybe I could run this "AXMLPrinter2.jar" on them and then edit them. Because right now if you open them they're not human readable, and its hard for me to work on them if they're not...
I tried this thinking i could do the same thing...
java -jar "/Users/brybam/Desktop/repackage/AXMLPrinter2.jar" main.xml > main.xml.bk
Just get a blank file and a console erorr when trying to use the AXMLPrinter2.jar on the layout xml files...
java.lang.ArrayIndexOutOfBoundsException: 67
at android.content.res.StringBlock.getShort(StringBlock.java:231)
at android.content.res.StringBlock.getString(StringBlock.java:91)
at android.content.res.AXmlResourceParser.getName(AXmlResourceParser.java:140)
at test.AXMLPrinter.main(AXMLPrinter.java:56)
So, I think my whole issue is based around these XML files not being converted to human readable before i try and re-package....
EDIT:::
Ok, so I found a site that talks about the error I'm getting but it's in chinese, and even after translating the page...I'm still not well versed with terminal and this stuff to get it.
It reads:
"Error.
Final conclusion:
In minSdkVersion <= 7, AXMLPrinter2.jar can normally decompile xml file
Greater than 7 can not be normal decompile xml file (AndroidManifest.xml except)
Give way to share a batch decompile xml file:
First, create a *. Txt file
Stresses inside the content authoring
for / r layout%% a in (*. xml) do @ java-jar AXMLPrinter2.jar "%% a" >> "%% a". txt
Then this txt file extension into bat form, and this BAT the file and AXMLPrinter2.jar on the same directory will be decompiled xml into the layout directory
Decompilation results can be generated by executing the bat file multiple xml files."
- http://hi.baidu.com/ghcghc/item/ecbaa1ce997cb225a0b50ac2
Maybe someone with more know-how could explain what they're explaining? I get that he's saying the issue im seeing appears when you're using minSdK <=7 but I need to use minSdk 8. Does anyone understand this work around? And how I might go about it on a Mac with terminal?
I wish adobe would make it easy to remove the "air." from the package name. If they want to convert old Native devs to AIR devs...the transition needs to be seamless. But now I'm about to have to go back to Native because I can't update an app I already have out on the market with an air app.Hello~
I also tried to remove "air." package name in air application. And i encounter the same problem.
I do not find any solution to decode the xml inside res folder by AXMLPrinter2.jar. And those xml inside is compressed which is unreadable.
However, what you can do is copying the structure of res folder. And go to your air sdk file path - adobeair-sdk-folder/lib/android/lib/resources/
Replace those file exists in your res folder. And copy "values" folder to your res folder.
Hope this solve your problem~ -
Difficult to get good package names with ojspc in automated build
If I understand the documentation for "ojspc" correctly, there is an aspect of its functionality that makes it difficult to have a convenient automated build which can also get good package names for the generated Java source files.
If you don't specify the "-packageName" option, ojspc will build a package name relative to the current directory, including sub-directories. However, specifying "-packageName" will ONLY use that package, and will not create sub-packages associated with sub-directories.
If you don't use the "-packageName" option, then you have to run the build from the root directory of your JSP files. When you're running an automated build with ANT, it's not convenient to do this.
The likely result of this is that I would have to make sure that all of my JSP files are named differently, even if they're in different directories, and use the "-packageName" option to specify a particular package name for all of the generated source files.After more careful reading, I realized that using the "-appRoot" option (without using "-packageName") makes it possible for an ANT build to generate good package names (with directories).
The following note, however, in the ojspc documentation is kind of odd:
"It is advisable that you run ojspc once for each directory of your JSP application, so files in different directories can be given different package names, as appropriate."
I assume this is referring to using the "-packageName" option. If you don't need to use "-packageName", especially if you have multiple directories of JSP pages, it is much easier to just let ojspc pick the package names.
Maybe you are looking for
-
I own a 13" MacBook Pro and a 27" iMac and I have different iPhoto libraries for each one of them. How can I copy the iPhoto library from the MacBook to the iMac without losing the pictures I have on the iMac library? Is it possible to merge the libr
-
To view the flash technology content in this pdf file please install this version of flash player
I am getting an error while opening a pdf file I am using Windows 7 with adobe 10.1.7 installed error message " to view the flash technology content in this pdf file please install this version of flash player"
-
I can't use a decimal number in a update routine
Hi, I want to use a decimal number in a udate routine (in a updating rule). I've a code similar to this: IF COMM_STRUCTURE-/BIC/ZSATIAUX1 LT 1,5. RESULT = 'GOOD'. And when I save the routine I get the following error: E:Comma without preceding colo
-
How can I use an older Pages template in a new version (5.2.2)?
Is there a workaround or fix that will enable me to open an older template in Pages 2013 (5.2.2)?
-
All those buttons worked fine until I updated Firefox from v.16 to v.17. Now, I can't get any of the above mentioned buttons on the toolbar to work anymore. Links inside an HTML page still work, but not the buttons noted above. This v.17 BUG appeared