Ant task to create jax-rpc xml types from schema
I need to create xml-rpc types from given xml schema files. It seems we can do this using options in weblogic workshop. However, I need an ant task to do same. Which ant task should I be using to do this? It will be great if you can also share an example on using this ant task.
Hi Johan,
You're correct that support for derivation of simple types by restriction is optional. The reason the JAX-RPC specification is saying so little about both the type mapping and validation issues is that longer term this will presumably be covered by JAX-B. Having said this, you can typically find support for both extensive type mappings and validation in products supporting JAX-RPC - such as jBroker Web (http://www.silverstream.com/Website/app/en_US/JBrokerWeb).
- Bjarne.
Similar Messages
-
Error in writing an Ant task for creating a new connection pool.
I have written the following ant task to create a new connection pool in weblogic 10.3.
<target name="pool.dev">
<wlconfig url="http://localhost:7001/" username="weblogic" password="weblogic">
<query domain="C:/weblogic/rtg-L0" name="myserver"/>
<create type="JDBCConnectionPool" name="OneSourceConnectionPool">
<set attribute="DriverName"
value="oracle.jdbc.OracleDriver"/>
<set attribute="InitialCapacity" value="1"/>
<set attribute="MaxCapacity" value="5"/>
<set attribute="Password" value="rating"/>
<set attribute="Properties" value="user=rating"/>
<set attribute="RefreshMinutes" value="0"/>
<set attribute="ShrinkPeriodMinutes" value="15"/>
<set attribute="ShrinkingEnabled" value="true"/>
<set attribute="TestConnectionsOnRelease" value="true"/>
<set attribute="TestConnectionsOnReserve" value="true"/>
<set attribute="TestConnectionsOnCreate" value="true"/>
<set attribute="TestTableName" value="SQL SELECT 1 FROM DUAL"/>
<set attribute="URL"
value="jdbc:oracle:thin:@xyz.com:1522:oradvl"/>
<set attribute="Targets" value="myserver"/>
</create>
</wlconfig>
</target>
When I run it, I see the following error:
BUILD FAILED
C:\ganymede\eclipse\workspace1\RtgSvr\build.xml:286: Failed to connect to the server: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.io.EOFException]
Can anybody please help me regarding this...
Thank you,
SowmyaHi everybody,
Thank you very much for your replies....actually I added weblogic.jar to the classpath of the target. So, now I dont see that error. But, I have another problem which is as follows:
<target name="initJDBC">
<wlconfig url="t3://${host}:${port}" username="${username}" password="${password}">
<query domain="domain.name" type="Server" name="${target.server}" property="${target.server}"/>
<create type="JDBCConnectionPool" name="TestConnectionPool">
<set attribute="DriverName" value="oracle.jdbc.OracleDriver"/>
<set attribute="Password" value="welcome"/>
<set attribute="Properties" value="user=welcome"/>
<set attribute="URL" value="jdbc:oracle:thin:@test.com:1522:oradvl"/>
<set attribute="Targets" value=""/>
<set attribute="TestTableName" value="SQL SELECT 1 FROM DUAL"/>
<set attribute="TestConnectionsOnRelease" value="false"/>
<set attribute="TestConnectionsOnReserve" value="true"/>
</create>
<create type="JDBCDataSource" name="TestDataSource">
<set attribute="JNDIName" value="TestDataSource"/>
<set attribute="PoolName" value="TestConnectionPool"/>
<set attribute="Targets" value=""/>
</create>
</wlconfig>
</target>
I am not knowing what to give in the value field of <set attribute="Targets" value=""/>. The following is my build.properties file:
target.server=myserver
host=127.0.0.1
port=7001
username=weblogic
password=weblogic
domain.name=testDomain
If I give <set attribute="Targets" value="${myserver}"/>, I get the following error:
BUILD FAILED
C:\ganymede\eclipse\workspace1\TestSvr\build.xml:290: Property not set: ${myserver}
When I set myserver=myserver in build.properties, I get the following error:
BUILD FAILED
C:\ganymede\eclipse\workspace1\TestSvr\build.xml:290: Error invoking MBean command: java.lang.IllegalArgumentException: Property Name and value not valid for the MBean. Value myserver for parameter[Targets].java.lang.IllegalArgumentException: Unable to convert the argument valuemyserver to class javax.management.ObjectName.java.lang.reflect.InvocationTargetException
Can someone plzz help me in this regard.
Thank you,
Sowmya -
Ant tasks for creating ADF Library
Created an ADF declarative component, exported it as an ADF library and got it working fine. The ADF Library jar was created within JDeveloper by setting up a Deployment profile. The created ADF Library file has the TLD file and TagHandler / Component class files created on the fly and packaged.
Not sure of how We could get the same ADF library created by an Ant task. Are there Ant tasks for creating ADF library available? http://www.connotea.org/user/jdeveloper/tag/ant has some details on the JDeveloper based ant tasks but doesn't have details on creating ADF library.You can use the ojdeply executable to create and deploy your ADF Library from the commandline:
<Jdev-install-location>/jdeveloper/jdev/bin/ojdeploy -workspace /mydirectory/yourworkspace.jws -profile yourprofile -project yourproject.jpr -
Help with creating a new XML file from an existing DOM tree!!
i want to create a new XML file from an existing DOM tree
i used this code to create a new document:
static public Document createDocument(String fileName) throws ParserConfigurationException//,IOException,SAXException
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setIgnoringComments(true);
factory.setIgnoringElementContentWhitespace(true);
factory.setValidating(true);
DocumentBuilder builder =factory.newDocumentBuilder();
return builder.newDocument();
// handle exception creating DocumentBuilder
catch ( ParserConfigurationException parserError ) {
throw new ParserConfigurationException();
}then i used this code to transform the DOM :
public void exportDocument(Document document) {
try {
Source xmlSource = new DOMSource( document );
Result result = new StreamResult( System.out );
TransformerFactory transformerFactory =
TransformerFactory.newInstance();
Transformer transformer =transformerFactory.newTransformer();
transformer.setOutputProperty( "indent", "yes" );
transformer.transform( xmlSource, result );
//then catching the exceptions
But the file was not created and i didn't find where can i specify the DTD that the XML file should use and where can i enter the name of the XML file itself
Another questoin can i write a DTD file dynamically during the execution of the program??Cross-post: http://forum.java.sun.com/thread.jspa?threadID=784467&messageID=4459240#4459240
-
How to create JAX-RPC WS manually
I have a static WSDL file. Do you have any step by step instructions that show how to generate a JAX-RPC artifacts manually please? I can't do it using JDeveloper because my WSDL file is big so I got out of memory error when I tried to use JDev even though I increased the VM memory for JDev to 1024M already.
That's why I have no choice but to generate the JAX-RPC artifacts manually.
I'm using 10.3.1 WL.
ThanksOk just as I expected. So I guess I am left with the following two options
1) either I switched to using JAXB in my apps instaed of xmlbeans....
2) or if I still wanna use the old JAX-RPC web services to deploy on the Weblogic 10gR3 server i will have to create my own ant task jwsc directly......as shown below in your docs
Programming Web Services for WebLogic Server (ant tasks)
http://download.oracle.com/docs/cd/E13222_01/wls/docs92/webserv/anttasks.html
Getting Started With WebLogic Web Services Using JAX-RPC
http://download.oracle.com/docs/cd/E12840_01/wls/docs103/webserv_rpc/index.html
Will OEPE be supporting the old JAX-RPC anytime in the near future release? or have to create own build ant task to call jwsc ant task directly to compile JAX-RPC web services?? -
Wsdlc Ant Task - Problem creating java files in the correct package
In eclipse, for weblogic 9.2
Using the wsdlc WebLogic Web Services Ant Task, I am trying to auto-generate the java files for the web service based on the WSDL. I have specified the packageName as one of the parameters. However the java files are being created and packaged based on the TargetNameSpace of the WSDL rather then under the package name specified. Following is part of my build.xml
autogen.src.dir=../code/java/beaAutoGen
base.dest=../../../var/build/wsmToPlmWS
bea.build.dir=beaBuild
<target name="generate-from-wsdl" depends="prepare">
<delete dir="${src.dir}" includeemptydirs="true" />
<delete dir="${autogen.src.dir}" includeemptydirs="true" />
<wsdlc srcWsdl="../config/sourceWSDL/MRPBindingPort.wsdl"
destJwsDir="${base.dest}/${bea.build.dir}/compiledWsdl" destImplDir="${base.dest}/${bea.build.dir}/impl"
packageName="com.lmco.iplm.webservices.wsmtoplm" debug="on"
srcServiceName="WSPlmMto_Service"
debugLevel="DEBUG" autoDetectWrapped="true" jaxRPCWrappedArrayStyle="true"
verbose="on" classpathref="bea-classpath" />
<!-- unjar to get the all the details so we can tokenize -->
<unjar dest="${autogen.src.dir}"
src="${base.dest}/${bea.build.dir}/compiledWsdl/MRPBindingPort_wsdl.jar" />
<!-- copy over the impl file -->
<copy todir="../code/java/src">
<fileset dir="${base.dest}/${bea.build.dir}/impl" />
</copy>
</target>In eclipse, for weblogic 9.2
Using the wsdlc WebLogic Web Services Ant Task, I am trying to auto-generate the java files for the web service based on the WSDL. I have specified the packageName as one of the parameters. However the java files are being created and packaged based on the TargetNameSpace of the WSDL rather then under the package name specified. Following is part of my build.xml
autogen.src.dir=../code/java/beaAutoGen
base.dest=../../../var/build/wsmToPlmWS
bea.build.dir=beaBuild
<target name="generate-from-wsdl" depends="prepare">
<delete dir="${src.dir}" includeemptydirs="true" />
<delete dir="${autogen.src.dir}" includeemptydirs="true" />
<wsdlc srcWsdl="../config/sourceWSDL/MRPBindingPort.wsdl"
destJwsDir="${base.dest}/${bea.build.dir}/compiledWsdl" destImplDir="${base.dest}/${bea.build.dir}/impl"
packageName="com.lmco.iplm.webservices.wsmtoplm" debug="on"
srcServiceName="WSPlmMto_Service"
debugLevel="DEBUG" autoDetectWrapped="true" jaxRPCWrappedArrayStyle="true"
verbose="on" classpathref="bea-classpath" />
<!-- unjar to get the all the details so we can tokenize -->
<unjar dest="${autogen.src.dir}"
src="${base.dest}/${bea.build.dir}/compiledWsdl/MRPBindingPort_wsdl.jar" />
<!-- copy over the impl file -->
<copy todir="../code/java/src">
<fileset dir="${base.dest}/${bea.build.dir}/impl" />
</copy>
</target> -
Ant task for creating a new weblogic domain in weblogic 10.3
Hi,
Can anybody help me in writing an ant task in build.xml for creating a new weblogic domain in weblogic 10.3, like as in <target name="new-domain">
<echo message=""/>
<echo message="Attempting to create new domain:"/>
<delete dir="C:\bea\user_projects\domains" />
<mkdir dir="C:\bea\user_projects\domains"/>
<wlserver dir="C:\bea\user_projects\domains" domainname="mydomain"
host="127.0.0.1" port="7001"
generateConfig="true" servername="AdminServer" username="weblogic"
password="weblogic" action="start"/>
</target>
Please suggest me adding something to the above in order to create the domain successfully.Hi,
Can anybody help me in writing an ant task in build.xml for creating a new weblogic domain in weblogic 10.3, like as in <target name="new-domain">
<echo message=""/>
<echo message="Attempting to create new domain:"/>
<delete dir="C:\bea\user_projects\domains" />
<mkdir dir="C:\bea\user_projects\domains"/>
<wlserver dir="C:\bea\user_projects\domains" domainname="mydomain"
host="127.0.0.1" port="7001"
generateConfig="true" servername="AdminServer" username="weblogic"
password="weblogic" action="start"/>
</target>
Please suggest me adding something to the above in order to create the domain successfully. -
Where do I find the ANT task for creating ear file in WLI
Hi friends
I was trying to create an ear file out of my process definitions and deploy on weblogic instead of deploying it from Workshop. I heard that there are ANT tasks available that do this but I couldn't find much detail.
I was wondering if somebody can point me to any documentation or anything that'll help me achieve this.
Thanks.
BijanThis may help
-
Calling One Jax RPC Web Service from another in Oracle AS 10.1.3
We have a number of services residing in the same Oracle 10.1.3 app server container. These are deployed as Jax RPC Web Services
I am trying to figure out what are the different options to have once web service invoke an operation on another (without directly linking to the Java code). The reason we want to keep separation as far as possible is that these services may later migrate to different app servers and in the spirit of SOA all we want to change when a service migrates is address and would like everything else to remain the same.
So for example, if Web Service A needs to invoke an operation X in web service B,
One way to do this seems to be to generate a proxy for web service B, include the proxy in Web Service A and then simply do B.X() from Web Service A.
Is this is the best way to do it ?
Are there other alternative approaches available ? Such as using the built in ESB features of Oracle App Server 10.1.3?
Any pointers will be greatly appreciated.
Thanks
RRFound document of 10.1.3.1.0 how to Creating a Custom Identity Service Plug-in
Oracle® BPEL Process Manager Administrator's Guide
10g (10.1.3.1.0)
Part Number B28982-03
http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28982/plugin.htm
But may be no help. -
Creating multiple XML files from Schema
We are extracting data from Oracle DB into XML using ODI. We are successful in generating the XML file, using command "create xmlfile <file name> from schema <Schema Name>, but the entire data comes in Single file.
Our database schema is relatively Huge and we would like to generate multiple XML files. We want to generate one file per particular number of records. Can anyone help to do this.one solution i can think of is to use SQLX operator instead of dbms_xmlgen.
here is a sample example.
declare
l_xmltype xmltype;
l_deptno emp.deptno%type;
begin
for i in (select * from emp order by deptno)
loop
select xmlconcat(
xmlelement("ename", i.ename)
,xmlelement("sal", i.sal)
,xmlelement("detpno", i.deptno))
into l_xmltype from dual;
dbms_output.put_line(l_xmltype.GetClobVal());
end loop;
end;
/Now here you can open the query once, keep writing to the file till the deptno
is same, when the deptno changes, close the file and open a new file with new
deptno and start writing.
Note : in this way you will have to add the xmlprolog manually to each of the file which should not be an issue. after opening the file add the prolog string manually.
Hope this helps. -
I am trying to create an external content type for a specific list. The problem is that there are so many columns (more than 200) that I get the error:
The operation(s) generation creates an SQL query which exceeds the length limit in Business Data
Connectivity Metadata Store. The operation(s) will not be generated. Recreate
the operation(s) with less number of columns in the configuration.
I tried turning off a dozen columns and I am still getting this error. I am nearing the limit of the "extra" columns I can eliminate.
What is the actual limit on number of columns?
Thank you.Hi,
From my research, it seems to be the limitation in response TTL and response size. To confirm
it, would you please check the detailed errors logged in ULS log? <o:p></o:p>
If you identified the threshold has be reached, you may follow this link to increase
the threshold according to your business requirement.<o:p></o:p>
http://blogs.msdn.com/b/bcs/archive/2010/02/16/bcs-powershell-introduction-and-throttle-management.aspx
Miles LI TechNet Community Support -
Calling One Jax/rpc web service from another.
We have a number of services residing in the same Oracle 10.1.3 app server container. These are deployed as Jax RPC Web Services
I am trying to figure out what are the different options to have once web service invoke an operation on another (without directly linking to the Java code). The reason we want to keep separation as far as possible is that these services may later migrate to different app servers and in the spirit of SOA all we want to change when a service migrates is address and would like everything else to remain the same.
So for example, if Web Service A needs to invoke an operation X in web service B,
One way to do this seems to be to generate a proxy for web service B, include the proxy in Web Service A and then simply do B.X() from Web Service A.
Is this is the best way to do it ?
Are there other alternative approaches available ? Such as using the built in ESB features of Oracle App Server 10.1.3?
Any pointers will be greatly appreciated.
Thanks
RRHi all,
I've managed to get this working by using the following property settings:
System.getProperties().setProperty("http.proxyHost", "Proxy_Hostname");
System.getProperties().setProperty("http.proxyPort", "8080");
System.getProperties().setProperty("http.nonProxyHosts", "localhost,hostbox09");
And solving the authentication problem using this property setting on the java cmd line:
-Dweblogic.net.proxyAuthenticatorClassName=com.mycompany.MyProxyAuthenticator
This class is an impl class of weblogic.common.ProxyAuthenticator interface.
The other thing to note is that MyProxyAuthenticator needs to be in the server pre_classpath.
Then I just call JAX-RPC or JAX-WS web service client calls as normal.
Regards,
Paul -
Create a large XML extract from relational tables - 10g
The Oracle 10g documentation recommends using the various SQL functions such as XMLAGG,XMLELEMENT or DBMS_XMLGEN under chapter "16 Generating XML Data from the Database" for generating a XML extract file. The DBMS_XMLDOM seems like a useful structured package to create a XML formatted extract. Any idea why Oracle does not recommend the use of XMLDOM API ? Are there performance issues or likely de-support ?
Whats the best way to produce a large XML extract?
Thanks.mdrake wrote:
No reason not to use it. It just tends to require a lot more coding than the other methods. Underneath the covers they all map into the same code-line. In general, to generate a given XML document you wlll write far fewer lines of code using the SQL/XML operators. Less Code written = less code to maintan = faster time to market.Less code to parse...? -
Creating datetime in XML format from ABAP
Hello All:
I have a ABAP program that creates an XML file and everything is fine. I just need one date field in XML to conform to W3CC standard (EX: 2006-12-01T10:53:05.2170000). I need datetime in the format "2006-12-01T10:53:05.2170000". How do I acheive this in ABAP?
Thanks.
MithunThat seems to be easy:
DATA:
lv_timestamp TYPE timestampl,
lv_xml_date TYPE string.
GET TIME STAMP FIELD lv_timestamp.
CONCATENATE lv_timestamp+0(4)
lv_timestamp+4(2)
lv_timestamp+6(2)
INTO lv_xml_date
SEPARATED BY '-'.
CONCATENATE lv_xml_date
'T'
INTO lv_xml_date.
CONCATENATE lv_timestamp+8(2)
lv_timestamp+10(2)
lv_timestamp+12(2)
INTO lv_xml_date+12(8)
SEPARATED by ':'.
CONCATENATE lv_xml_date
lv_timestamp+5(7)
INTO lv_timestamp
SEPARATED BY '.'.
Reward points, if reply is applicable
Edited by: Mike Schernbeck on Jan 30, 2008 9:24 PM -
How can I influence the JAX-RPC response message from a void method
Hello,
I used WSDL2Java to create a web service. This service seems to work but the xsi:type="somename" attributes are not included in the response. I want to get them in. Or, otherwise, I want the push webservice just to send an acknowledge message. Because, our client that's pushing the webservice message to us gets error messages.
But, while the webservice is a push service I don't know how to influence the returning soap envelope. This is the webservice method I mean:
public void putDatex2Data(eu.datex2.schema._1_0._1_0.holders.D2LogicalModelHolder body) throws java.rmi.RemoteException {
//the code
Furthermore, has someone good examples of implementations that help to get the real incoming XML message data in a easy way.
Thanks.No, that's not a feature of the phone.
You can submit feedback to Apple requesting such a feature here:
http://www.apple.com/feedback
Maybe you are looking for
-
My husband has retrieved emails from my exchange email account. I deleted them from the trash bin. How is he doing this?
-
Itunes library on an external hard drive for the Ipad?
Does anyone know of a way that I can access an iTunes library through an external hard drive on the ipad? Currently, I have an external hard drive connected through an airport base station. From my ipad, I can connect to this hard drive and see all
-
Why won't Front Row play movies located in my iPhoto Library?
I currently have a little over 300 short movies from my digital cameras. I keep them in subfolders located at /Users/shared/Shared Movies/digital camera movies/ and Front Row plays them just fine under each user account since each user has an alias t
-
Convert iphoto slide show to mov format?
hello, I just want to ask that, can I convert iphoto slide show into mov format??? I tried to select all pics, and export them as a mov, but the problem is, in the iphoto slide show, the pics can be moved and fit the screen size, but when I i export
-
Transfer of all items reserved by previous user
Hi, I have a request to transfer of all items reserved by previous user (who has left the org and his ID is also deleted) to a new user. How can I do this ? Thank You, SB.