Java Shapefile Converter in 11g

I am looking for documentation on how to compile and run the Java Shapefile Converter that is supposedly included with Oracle 11g Spatial (referenced here: http://www.oracle.com/technology/software/products/spatial/index.html).
I haven't been able to find anything about it other than this post: Updated "Oracle Java Shapefile Converter"? which only pretty much says it is included and no longer a separate download. The readme that is mentioned at the end of the thread (http://www.oracle.com/technology/software/products/spatial/files/text_files/shape2sdojava_readme.txt) is only for 10g and I haven't been able to adapt it for 11g.
I also found a sample ShapefileToSDO file here: http://www.oracle.com/technology/sample_code/products/spatial/htdocs/sdoapi_samples/sdoapi_samples_readme.html#2
which may work but I am unable to get it to compile. The command it mentions is:
javac sample/*.java sample/adapter/*.java
but it isn't finding a lot of packages needed. I am not sure what classpath to use. I tried putting ojdbc6.jar, sdooutl.jar and sdoapi.jar in the classpath and compiling but the same package error messages came up:
"C:\sdoapi_samples>javac -classpath C:\JC_CLASSPATH\ojdbc14.jar;C:\JC_CLASSPATH\sdooutl.jar;C:\JC_CLASSPATH\sdoapi.jar C:\sdoapi_samples\sample/*.java C:\sdoapi_samples\sample/adapter/*.java
sample\SampleShapefileToSDO.java:7: package oracle.sql does not exist
import oracle.sql.STRUCT;
^
sample\SampleShapefileToSDO.java:8: package oracle.jdbc.driver does not exist
import oracle.jdbc.driver.*;
^
sample\SampleShapefileToSDO.java:9: package oracle.sdoapi does not exist
import oracle.sdoapi.OraSpatialManager;
^
sample\SampleShapefileToSDO.java:10: package oracle.sdoapi.geom does not exist
import oracle.sdoapi.geom.*;
^
sample\SampleShapefileToSDO.java:11: package oracle.sdoapi.adapter does not exis
t
import oracle.sdoapi.adapter.GeometryAdapter;
^
sample\adapter\AdapterShapefile.java:6: package oracle.sdoapi does not exist
import oracle.sdoapi.OraSpatialManager;
^
sample\adapter\AdapterShapefile.java:7: package oracle.sdoapi.adapter does not e
xist
import oracle.sdoapi.adapter.*;
^
sample\adapter\AdapterShapefile.java:8: package oracle.sdoapi.geom does not exis
t
import oracle.sdoapi.geom.*;
^
sample\adapter\AdapterShapefile.java:9: package oracle.sdoapi.sref does not exis
t
import oracle.sdoapi.sref.*;
^"...................................................
it goes on and on with 100 errors total. I am not sure what I am missing.
Thanks a lot!
Edited by: user12055867 on Oct 26, 2009 5:18 AM
Edited by: user12055867 on Oct 26, 2009 5:24 AM

After setting up my classpath with sdoutl.jar, sdoapi.jar and ojdbc6.jar, I ran the command:
java -cp %CLASSPATH% oracle.spatial.util.SampleShapefileToJGeomFeature -h host -p port -s orcl -u username -d password -t table -f filename -r 8307
It worked successfully, the data was entered into the DB. Unfortunately, something is wrong with it. In uDig I cannot view it due to some rendering problem and after running some validation tests on it, I saw the errors:
1. 'Geometry is required to be a LineString' for all the object names in the table
I next opened mapbuilder and loaded the same shapefile into the database under the same SRID using mapbuilder's shapefile import. in uDig, this table displayed correctly with no problems!
I followed the usage instructions for SampleShapefileToJGeom and don't see any other options which would fix this. Am I doing something wrong?
Edited by: user12055867 on Oct 28, 2009 6:26 AM
Edited by: user12055867 on Oct 28, 2009 6:26 AM
Edited by: user12055867 on Oct 28, 2009 6:55 AM

Similar Messages

  • Java Shapefile Converter Charset | NLS_LANG | Encoding-Problem

    Hi Forum,
    I tried to use the Java Shapefile Converter and it works fine except of a small, decisive detail.
    I use a Oracle 11 database.
    I'm from Germany and we use characters like ä, ö and ü in our language.
    In the Shapefile, which I'd like to import to the database, are these characters, too.
    So I tried to set the NLS_LANG to 'GERMAN_GERMANY.UTF8' or 'GERMAN_GERMANY.WE8ISO8859P1' but it doesn't work.
    In the table the characters after the import look like a rotated question mark.
    Has anyone an idea?
    Kind regards from Germany
    Edited by: 910195 on 25.01.2012 06:40
    Hi,
    it works with -Dfile.encoding=ISO-8859-1
    Edited by: 910195 on 30.01.2012 06:37

    What is the characterset of your database ?
    What is the column datatype in which you are storing your data ?
    While selecting the data (after insertion) did you set your NLS_LANG ?
    Are you able to view your data properly via any Unicode tool such as SQL developer ?

  • Java Shapefile Converter error ORA-13050

    Hi,
    i'm trying to convert a shape with the java converter and following the documention i make these steps:
    In our installation of ORACLE 11g we don't have the folder "[ORACLE_HOME]/md/". Then i've downloaded from here http://www.oracle.com/technetwork/database/options/spatialandgraph/downloads/software/sp-download-distlic-522138.html the required .jars
    I launch the java program with the next cmdline: java -classpath %ORACLE_HOME%\jdbc\lib\ojdbc6.jar;Y:\oracle11_libs\sdoutl.jar;Y:\oracle11_libs\sdoapi.jar oracle.spatial.util.SampleShapefileToJGeomFeature -h %HOST% -p %PORT% -s %SID% -u GISTEST -d GISTESTPRE -t edificis_area -f gis_edificacio_perimetre_base_polygon -r 23031 -g geom -o 0.0001
    While with points and lines there is no problem, with polygons it returns the next result:
    db_username: GISTEST
    db_password: GISTESTPRE
    db_tablename: edificis_area
    shapefile_name: .\historic_20020103\20020103_expHistoCarto\01_Global\EPSG23031\SHAPE\gis_edificacio_perimetre_base_polygon
    SRID: 23031
    db_geometry_column: geom
    tolerance: 0.0001
    Connecting to Oracle10g using...
    GISTEST, GISTESTPRE, edificis_area, .\historic_20020103\20020103_expHistoCarto\01_Global\EPSG23031\SHAPE\gis_edificacio_perimetre_base_polygon, null, 23031
    Dropping old table...
    java.sql.SQLSyntaxErrorException: ORA-00942: la tabla o vista no existe
    Creating new table...
    java.sql.SQLException: ORA-13050: no se ha podido construir el objeto espacial
    ORA-06512: en "MDSYS.SDO_MIGRATE", línea 316
    ORA-06512: en "MDSYS.SDO_MIGRATE", línea 597
    Record #1 not converted.
    java.sql.SQLException: ORA-13050: no se ha podido construir el objeto espacial
    ORA-06512: en "MDSYS.SDO_MIGRATE", línea 316
    ORA-06512: en "MDSYS.SDO_MIGRATE", línea 597
    The first thing that i found strange is the print of 'Oracle10g' and then we found the use of MDSYS.SDO_MIGRATE in the trace's error that it mean's the conversion between different versions of Oracle.
    Does anyone know where the problem is?

    If anyone else could take a look at this: It seems to be depending on the version. We are running into the exact same problem when using 11.2.0.3.0, but when using
    11.2.0.2.0 we can import the shape file without a problem. Both versions are the 64-bits version, btw.
    When trying a different approach using SQL Loader, we found that apparently there is an ordinate not quite right:
    Record 1: Rejected - Error on table "WOZ"."C_IMPORTED_DATA", column "GEOMETRY".SDO_ORDINATES.SDO_ORDINATES.
    error converting data
    ORA-01722: invalid number
    It is strange that one version can deal with this, but the other cannot. Is there anyone from Oracle who can take a look at this? We are now changing our strategy, but would prefer not to have to :-)
    Regards
    Stefan

  • Slow to convert Oracle 11g XMLType into Java String or Document

    After retrieving a result set from an Oracle 11g database, it takes roughly 75 seconds to convert the XMLType (this is a structured XML Storage, registered with an xsd) into either a java String or Document. I'm using Java 1.6, have the xdb.jar and xmlparserv2.jar
    This xsd is <100 lines and the xml document is also <100 lines.
    Sample code:
    oracle.xdb.XMLType xml = oracle.xdb.XMLType.createXML((oracle.sql.OPAQUE)rset.getObject("XMLDATA"));
    the other way, but still took just as long:
    XMLType xml = (XMLType)rset.getObject("XMLDATA");
    xml.getStringVal();
    or
    org.w3c.dom.Document doc = xml.getDocument();
    either way of the above ways takes just as long.

    If I put this value into the database table, I can
    see only the date. Time part is missing. Is this the
    problem with java.sql.Date or Oracle datatype Date?This is not a problem, this is the defined behaviour of the Date type. RTFAPI and have a look at Timestamp, while you're at it.

  • 3DES - Php crypto codes 2 Java codes convertion problem

    I give all php and java codes I convert one by one but I didnt get same result where is my mistake and what shall I do. Thanks for all.
    Php Code
    $key = "db9ca45ee012dcabaff193ca";
    $input = sha1("MehmetKaraman");
    $td = mcrypt_module_open('tripledes', '', 'ecb', '');
    $iv = mcrypt_create_iv (mcrypt_enc_get_iv_size($td), MCRYPT_RAND);
    mcrypt_generic_init($td, $key, $iv);
    $encrypted_data = mcrypt_generic($td, $input);
    mcrypt_generic_deinit($td);
    mcrypt_module_close($td);
    echo sha1(bin2hex($encrypted_data));
    Output : d7eaa53ab43683a1323cfae877a24efb4a918411
    Java Code :
    String message= “MehmetKaraman”;
    byte[] input = MessageDigest.getInstance("SHA1").digest(message.getBytes("utf-8"));
         final Cipher cipher = Cipher.getInstance("DESede/ECB/NoPadding");
         final SecretKey key = new SecretKeySpec("db9ca45ee012dcabaff193ca".getBytes("utf-8"), "DESede");
    cipher.init(Cipher.ENCRYPT_MODE, key );
    if( input.length % 8 != 0){
         byte [] in2 = new byte[input.length+ 8- input.length%8];
         for(int i = 0;i<input.length;i++){
         in2=input[i];
         input = in2;
         final byte[] encrypted_data = cipher.doFinal(input);
         System.out.println(bin2hex(MessageDigest.getInstance("SHA1").digest(bin2hex(encrypted_data).getBytes())));
    Output : 626b61642ec4ba8f7467933832619d492a6fdde1

    Either you need$input = sha1("MehmetKaraman", true);or in your Java you need to hex encode your sha1 digest before encrypting. When I do either of these and emulate your Java bin2hex() method I get a match.
    I don't understand why people seem unable to do simple debugging. If you had read the PHP documentation for the sha1() function and had printed out the results at each stage it would have been obvious.
    P.S. The zero padding implemented by your codeif( input.length % 8 != 0){
    byte [] in2 = new byte[input.length+ 8- input.length%8];
    for(int i = 0;i<input.length;i++){
    in2=input[i];
    input = in2;
    }can be replaced by 1 line using one of the methods in class java.util.Arrays.
    Edited by: sabre150 on Sep 15, 2010 3:10 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to Handle Multiple Thread in JAVA Callout with OSB 11g

    Hi Team,
    With My OSB 11g, I want create a static Thread when Java callout.
    Java code as below.
         private static Thread thread;
    static {
              * lazy load thread and with thread-safe ensure
              if(thread == null){
                   synchronized (HornetQConnectionHelper.class) {
                        thread = new ConnectionRecoveryThread();
                        // Daemon thread, JVM level, Won't be interrupted, Safe!
                        thread.setDaemon(true);
                        thread.start();
    When this class was first called in OSB, the thread start run. while when I redeploy it, the old Thread is still running, if call the class again, it will create a new Thread. The two threads will run at the same time.
    Any body know how do configure it, so that there is only one static Thread in the Weblogic JVM.
    Thanks.
    Best Regards,
    Raysen Jia

    Hi Raysen Jia,
    Create a weblogic startup class... See the references bellow...
    Hope this is helpful...
    http://jagadesh4java.blogspot.com.au/2010/05/working-with-weblogic-startup-shutdown.html
    http://docs.oracle.com/cd/E23943_01/upgrade.1111/e10126/basic_upgrade.htm#FUPAS464
    Cheers,
    Vlad

  • Error Null Databinding context encountered -WSDL to Java webservice convert

    HI,
    I have been trying to generate service and client from WSDL using Jdeveloper11 and im unable to progress on this particular WSDL, i was succesfull in creating the client and service for a sample Apache WSDL using the Jdeveloper. If anyone can point out the issue in this WSDL or is there a bug in Jdeveloper when handling complex type? i attach the WSDL that i used, now note that the WSDL calls for another WSDL import witin it, if i comment out the import and its bindings im able to proceed,
    WSDL-1
    <!-- Tigerstripe : Operations relating to Alarm -->
    <wsdl:operation name="getAlarmsByKeys">
    <wsdl:input name="getAlarmsByKeysRequest" message="fmWS-v1-0:getAlarmsByKeysRequest" />
    <wsdl:output name="getAlarmsByKeysResponse" message="fmWS-v1-0:getAlarmsByKeysResponse" />
    <wsdl:fault name="getAlarmsByKeysException" message="fmWS-v1-0:getAlarmsByKeysException" />
    </wsdl:operation>
    <wsdl:operation name="getAlarmsByTemplate">
    <wsdl:input name="getAlarmsByTemplateRequest" message="fmWS-v1-0:getAlarmsByTemplateRequest" />
    <wsdl:output name="getAlarmsByTemplateResponse" message="fmWS-v1-0:getAlarmsByTemplateResponse" />
    <wsdl:fault name="getAlarmsByTemplateException" message="fmWS-v1-0:getAlarmsByTemplateException" />
    </wsdl:operation>
    <wsdl:operation name="queryAlarms">
    <wsdl:input name="queryAlarmsRequest" message="fmWS-v1-0:queryAlarmsRequest" />
    <wsdl:output name="queryAlarmsResponse" message="fmWS-v1-0:queryAlarmsResponse" />
    <wsdl:fault name="queryAlarmsException" message="fmWS-v1-0:queryAlarmsException" />
    </wsdl:operation>
    <!-- Tigerstripe : Operations for Interface artifact methods ( JVTAlarmCreationSession ) -->
    <wsdl:operation name="getAlarmSpecificInfoTypes">
    <wsdl:input
    name="getAlarmSpecificInfoTypesRequest"
    message="fmWS-v1-0:getAlarmSpecificInfoTypesRequest" />
    <wsdl:output
    name="getAlarmSpecificInfoTypesResponse"
    message="fmWS-v1-0:getAlarmSpecificInfoTypesResponse" />
    <wsdl:fault
    name="getAlarmSpecificInfoTypesException"
    message="fmWS-v1-0:getAlarmSpecificInfoTypesException" />
    </wsdl:operation>
    <wsdl:operation name="getVersion">
    <wsdl:input
    name="getVersionRequest"
    message="fmWS-v1-0:getVersionRequest" />
    <wsdl:output
    name="getVersionResponse"
    message="fmWS-v1-0:getVersionResponse" />
    <wsdl:fault
    name="getVersionException"
    message="fmWS-v1-0:getVersionException" />
    </wsdl:operation>
    <wsdl:operation name="createAlarms">
    <wsdl:input
    name="createAlarmsRequest"
    message="fmWS-v1-0:createAlarmsRequest" />
    <wsdl:output
    name="createAlarmsResponse"
    message="fmWS-v1-0:createAlarmsResponse" />
    <wsdl:fault
    name="createAlarmsException"
    message="fmWS-v1-0:createAlarmsException" />
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="JVTAlarmCreationSessionSoapBinding"
    type="fmWS-v1-0:JVTAlarmCreationSessionWSPort">
    <soap:binding style="document"
    transport="http://schemas.xmlsoap.org/soap/http" />
    <!-- Tigerstripe : Bindings relating to Alarm -->
    <wsdl:operation name="getAlarmsByKeys">
    <soap:operation soapAction="getAlarmsByKeys" style="document" />
    <wsdl:input>
    <soap:body parts="parameters" use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body parts="parameters" use="literal" />
    </wsdl:output>
    <wsdl:fault name="getAlarmsByKeysException">
    <soap:fault name="getAlarmsByKeysException" use="literal" />
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="getAlarmsByTemplate">
    <soap:operation soapAction="getAlarmsByTemplate" style="document" />
    <wsdl:input>
    <soap:body parts="parameters" use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body parts="parameters" use="literal" />
    </wsdl:output>
    <wsdl:fault name="getAlarmsByTemplateException">
    <soap:fault name="getAlarmsByTemplateException" use="literal" />
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="queryAlarms">
    <soap:operation soapAction="queryAlarms" style="document" />
    <wsdl:input>
    <soap:body parts="parameters" use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body parts="parameters" use="literal" />
    </wsdl:output>
    <wsdl:fault name="queryAlarmsException">
    <soap:fault name="queryAlarmsException" use="literal" />
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="getAlarmSpecificInfoTypes">
    <soap:operation soapAction="getAlarmSpecificInfoTypes" style="document" />
    <wsdl:input>
    <soap:body parts="parameters" use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body parts="parameters" use="literal" />
    </wsdl:output>
    <wsdl:fault name ="getAlarmSpecificInfoTypesException">
    <soap:fault name ="getAlarmSpecificInfoTypesException" use="literal"/>
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="getVersion">
    <soap:operation soapAction="getVersion" style="document" />
    <wsdl:input>
    <soap:body parts="parameters" use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body parts="parameters" use="literal" />
    </wsdl:output>
    <wsdl:fault name ="getVersionException">
    <soap:fault name ="getVersionException" use="literal"/>
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="createAlarms">
    <soap:operation soapAction="createAlarms" style="document" />
    <wsdl:input>
    <soap:body parts="parameters" use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body parts="parameters" use="literal" />
    </wsdl:output>
    <wsdl:fault name ="createAlarmsException">
    <soap:fault name ="createAlarmsException" use="literal"/>
    </wsdl:fault>
    </wsdl:operation>
    </wsdl:binding>
    <!-- Binding for the Notification Producer -->
    <!-- <wsdl:binding name="NotificationProducerSoapBinding" type="wsnt:NotificationProducer">
    <soap:binding style="document"
    transport="http://schemas.xmlsoap.org/soap/http" />-->
    <!-- =========== NotificationProducer Specific ============== -->
    <!-- <wsdl:operation name="Subscribe">
    <soap:operation soapAction="Subscribe" style="document"/>
    <wsdl:input>
    <soap:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    <wsdl:fault name="ResourceUnknownFault">
    <soap:fault name="ResourceUnknownFault" use="literal"/>
    </wsdl:fault>
    <wsdl:fault name="SubscribeCreationFailedFault">
    <soap:fault name="SubscribeCreationFailedFault" use="literal"/>
    </wsdl:fault>
    <wsdl:fault name="TopicExpressionDialectUnknownFault">
    <soap:fault name="TopicExpressionDialectUnknownFault" use="literal"/>
    </wsdl:fault>
    <wsdl:fault name="InvalidFilterFault">
    <soap:fault name="InvalidFilterFault" use="literal"/>
    </wsdl:fault>
    <wsdl:fault name="InvalidTopicExpressionFault">
    <soap:fault name="InvalidTopicExpressionFault" use="literal"/>
    </wsdl:fault>
    <wsdl:fault name="TopicNotSupportedFault">
    <soap:fault name="TopicNotSupportedFault" use="literal"/>
    </wsdl:fault>
    <wsdl:fault name="InvalidProducerPropertiesExpressionFault">
    <soap:fault name="InvalidProducerPropertiesExpressionFault" use="literal"/>
    </wsdl:fault>
    <wsdl:fault name="InvalidMessageContentExpressionFault">
    <soap:fault name="InvalidMessageContentExpressionFault" use="literal"/>
    </wsdl:fault>
    <wsdl:fault name="UnacceptableInitialTerminationTimeFault">
    <soap:fault name="UnacceptableInitialTerminationTimeFault" use="literal"/>
    </wsdl:fault>
    <wsdl:fault name="UnrecognizedPolicyRequestFault">
    <soap:fault name="UnrecognizedPolicyRequestFault" use="literal"/>
    </wsdl:fault>
    <wsdl:fault name="UnsupportedPolicyRequestFault">
    <soap:fault name="UnsupportedPolicyRequestFault" use="literal"/>
    </wsdl:fault>
    <wsdl:fault name="NotifyMessageNotSupportedFault">
    <soap:fault name="NotifyMessageNotSupportedFault" use="literal"/>
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="GetCurrentMessage">
    <soap:operation soapAction="GetCurrentMessage" style="document" />
    <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    <wsdl:fault name="ResourceUnknownFault">
    <soap:fault name="ResourceUnknownFault" use="literal" />
    </wsdl:fault>
    <wsdl:fault name="TopicExpressionDialectUnknownFault">
    <soap:fault name="TopicExpressionDialectUnknownFault" use="literal" />
    </wsdl:fault>
    <wsdl:fault name="InvalidTopicExpressionFault">
    <soap:fault name="InvalidTopicExpressionFault" use="literal" />
    </wsdl:fault>
    <wsdl:fault name="TopicNotSupportedFault">
    <soap:fault name="TopicNotSupportedFault" use="literal" />
    </wsdl:fault>
    <wsdl:fault name="NoCurrentMessageOnTopicFault">
    <soap:fault name="NoCurrentMessageOnTopicFault" use="literal" />
    </wsdl:fault>
    <wsdl:fault name="MultipleTopicsSpecifiedFault">
    <soap:fault name="MultipleTopicsSpecifiedFault" use="literal" />
    </wsdl:fault>
    </wsdl:operation>
    </wsdl:binding>-->
    <!-- Binding for the SubscriptionManager -->
    <!-- <wsdl:binding name="SubscriptionManagerSoapBinding" type="wsnt:PausableSubscriptionManager">
    <soap:binding style="document"
    transport="http://schemas.xmlsoap.org/soap/http" />-->
    <!-- ========= SubscriptionManager specific operations ====== -->
    <!-- <wsdl:operation name="PauseSubscription">
    <soap:operation soapAction="PauseSubscription" style="document" />
    <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    <wsdl:fault name="ResourceUnknownFault">
    <soap:fault name="ResourceUnknownFault" use="literal" />
    </wsdl:fault>
    <wsdl:fault name="PauseFailedFault">
    <soap:fault name="PauseFailedFault" use="literal" />
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="Renew">
    <soap:operation soapAction="Renew" style="document" />
    <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    <wsdl:fault name="ResourceUnknownFault">
    <soap:fault name="ResourceUnknownFault" use="literal" />
    </wsdl:fault>
    <wsdl:fault name="UnacceptableTerminationTimeFault">
    <soap:fault name="UnacceptableTerminationTimeFault" use="literal" />
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="Unsubscribe">
    <soap:operation soapAction="Unsubscribe" style="document" />
    <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    <wsdl:fault name="ResourceUnknownFault">
    <soap:fault name="ResourceUnknownFault" use="literal" />
    </wsdl:fault>
    <wsdl:fault name="UnableToDestroySubscriptionFault">
    <soap:fault name="UnableToDestrySubscriptionFault" use="literal" />
    </wsdl:fault>
    </wsdl:operation>
    <wsdl:operation name="ResumeSubscription">
    <soap:operation soapAction="ResumeSubscription" style="document" />
    <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    <wsdl:fault name="ResourceUnknownFault">
    <soap:fault name="ResourceUnknownFault" use="literal" />
    </wsdl:fault>
    <wsdl:fault name="ResumeFailedFault">
    <soap:fault name="ResumeFailedFault" use="literal" />
    </wsdl:fault>
    </wsdl:operation>
    </wsdl:binding>-->
    <wsdl:service name="JVTAlarmCreationSessionWebService">
    <wsdl:port name="JVTAlarmCreationSessionWSPort"
    binding="fmWS-v1-0:JVTAlarmCreationSessionSoapBinding">
    <soap:address location="http://localhost/JVTAlarmCreationSessionWebService/JVTAlarmCreationSession" />
    </wsdl:port>
    <!--wsdl:port name="NotificationProducerPort" binding="wsnt:NotificationProducerSoapBinding">
    <soap:address location="http://localhost/JVTAlarmCreationSessionWebService/NotificationProducer"/>
    </wsdl:port>
    <wsdl:port name="SubscriptionManagerPort" binding="wsnt:SubscriptionManagerSoapBinding">
    <soap:address location="http://localhost/JVTAlarmCreationSessionWebService/SubscriptionManager"/>
    </wsdl:port-->
    </wsdl:service>
    </wsdl:definitions>
    WSDL-2 imported in the above WSDL
    <?xml version="1.0" encoding="utf-8"?>
    <!--
    OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users of this specification, can be obtained from the OASIS Executive Director.
    OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director.
    Copyright (C) OASIS Open (2004-2006). All Rights Reserved.
    This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate it into languages other than English.
    The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.
    This document and the information contained herein is provided on an "AS IS" basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
    -->
    <wsdl:definitions name="WS-BaseNotification"
    targetNamespace="http://docs.oasis-open.org/wsn/bw-2"
    xmlns:wsntw="http://docs.oasis-open.org/wsn/bw-2"
    xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"
    xmlns:wsa="http://www.w3.org/2005/08/addressing"
    xmlns:wsrf-rw="http://docs.oasis-open.org/wsrf/rw-2"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <!-- ========================== Imports =========================== -->
    <wsdl:import
    namespace="http://docs.oasis-open.org/wsrf/rw-2"
    location="rw-2.wsdl"/>
    <!-- ===================== Types Definitions ====================== -->
    <wsdl:types>
    <xsd:schema elementFormDefault="qualified">
    <xsd:import
    namespace="http://docs.oasis-open.org/wsn/b-2"
    schemaLocation="b-2.xsd"/>
    </xsd:schema>
    </wsdl:types>
    <!-- ================ NotificationConsumer::Notify ================
    Notify(
    NotificationMessage
    (SubscriptionReference, TopicExpression, ProducerReference,
    Message)*
    returns: n/a (one way)
    -->
    <wsdl:message name="Notify">
    <wsdl:part name="Notify" element="wsnt:Notify"/>
    </wsdl:message>
    <!-- ============== NotificationProducer::Subscribe ===============
    Subscribe(
    (ConsumerEndpointReference, [Filter], [SubscriptionPolicy],
    [InitialTerminationTime])
    returns: WS-Resource qualified EPR to a Subscription
    -->
    <wsdl:message name="SubscribeRequest" >
    <wsdl:part name="SubscribeRequest"
    element="wsnt:Subscribe"/>
    </wsdl:message>
    <wsdl:message name="SubscribeResponse">
    <wsdl:part name="SubscribeResponse"
    element="wsnt:SubscribeResponse"/>
    </wsdl:message>
    <wsdl:message name="SubscribeCreationFailedFault">
    <wsdl:part name="SubscribeCreationFailedFault"
    element="wsnt:SubscribeCreationFailedFault" />
    </wsdl:message>
    <wsdl:message name="TopicExpressionDialectUnknownFault">
    <wsdl:part name="TopicExpressionDialectUnknownFault"
    element="wsnt:TopicExpressionDialectUnknownFault" />
    </wsdl:message>
    <wsdl:message name="InvalidFilterFault">
    <wsdl:part name="InvalidFilterFault"
    element="wsnt:InvalidFilterFault" />
    </wsdl:message>
    <wsdl:message name="InvalidProducerPropertiesExpressionFault">
    <wsdl:part name="InvalidProducerPropertiesExpressionFault"
    element="wsnt:InvalidProducerPropertiesExpressionFault" />
    </wsdl:message>
    <wsdl:message name="InvalidMessageContentExpressionFault">
    <wsdl:part name="InvalidMessageContentExpressionFault"
    element="wsnt:InvalidMessageContentExpressionFault" />
    </wsdl:message>
    <wsdl:message name="UnrecognizedPolicyRequestFault">
    <wsdl:part name="UnrecognizedPolicyRequestFault"
    element="wsnt:UnrecognizedPolicyRequestFault" />
    </wsdl:message>
    <wsdl:message name="UnsupportedPolicyRequestFault">
    <wsdl:part name="UnsupportedPolicyRequestFault"
    element="wsnt:UnsupportedPolicyRequestFault" />
    </wsdl:message>
    <wsdl:message name="NotifyMessageNotSupportedFault">
    <wsdl:part name="NotifyMessageNotSupportedFault"
    element="wsnt:NotifyMessageNotSupportedFault" />
    </wsdl:message>
    <wsdl:message name="UnacceptableInitialTerminationTimeFault">
    <wsdl:part name="UnacceptableInitialTerminationTimeFault"
    element="wsnt:UnacceptableInitialTerminationTimeFault"/>
    </wsdl:message>
    <!-- ========== NotificationProducer::GetCurrentMessage ===========
    GetCurrentMessage(topicExpression)
    returns: a NotificationMessage (xsd:any)
    -->
    <wsdl:message name="GetCurrentMessageRequest">
    <wsdl:part name="GetCurrentMessageRequest"
    element="wsnt:GetCurrentMessage"/>
    </wsdl:message>
    <wsdl:message name="GetCurrentMessageResponse">
    <wsdl:part name="GetCurrentMessageResponse"
    element="wsnt:GetCurrentMessageResponse"/>
    </wsdl:message>
    <wsdl:message name="InvalidTopicExpressionFault">
    <wsdl:part name="InvalidTopicExpressionFault"
    element="wsnt:InvalidTopicExpressionFault" />
    </wsdl:message>
    <wsdl:message name="TopicNotSupportedFault">
    <wsdl:part name="TopicNotSupportedFault"
    element="wsnt:TopicNotSupportedFault" />
    </wsdl:message>
    <wsdl:message name="MultipleTopicsSpecifiedFault">
    <wsdl:part name="MultipleTopicsSpecifiedFault"
    element="wsnt:MultipleTopicsSpecifiedFault" />
    </wsdl:message>
    <wsdl:message name="NoCurrentMessageOnTopicFault">
    <wsdl:part name="NoCurrentMessageOnTopicFault"
    element="wsnt:NoCurrentMessageOnTopicFault" />
    </wsdl:message>
    <!-- ========== PullPoint::GetMessages ===========
    GetMessages(MaximumNumber)
    returns: NotificationMessage list
    -->
    <wsdl:message name="GetMessagesRequest">
    <wsdl:part name="GetMessagesRequest"
    element="wsnt:GetMessages"/>
    </wsdl:message>
    <wsdl:message name="GetMessagesResponse">
    <wsdl:part name="GetMessagesResponse"
    element="wsnt:GetMessagesResponse"/>
    </wsdl:message>
    <wsdl:message name="UnableToGetMessagesFault">
    <wsdl:part name="UnableToGetMessagesFault"
    element="wsnt:UnableToGetMessagesFault"/>
    </wsdl:message>
    <!-- ========== PullPoint::DestroyPullPoint ===========
    DestroyPullPoint()
    returns: void
    -->
    <wsdl:message name="DestroyPullPointRequest">
    <wsdl:part name="DestroyPullPointRequest"
    element="wsnt:DestroyPullPoint"/>
    </wsdl:message>
    <wsdl:message name="DestroyPullPointResponse">
    <wsdl:part name="DestroyPullPointResponse"
    element="wsnt:DestroyPullPointResponse"/>
    </wsdl:message>
    <wsdl:message name="UnableToDestroyPullPointFault">
    <wsdl:part name="UnableToDestroyPullPointFault"
    element="wsnt:UnableToDestroyPullPointFault"/>
    </wsdl:message>
    <!-- ========== PullPoint::CreatePullPoint ===========
    CreatePullPoint()
    returns: PullPoint (wsa:EndpointReference)
    -->
    <wsdl:message name="CreatePullPointRequest">
    <wsdl:part name="CreatePullPointRequest"
    element="wsnt:CreatePullPoint"/>
    </wsdl:message>
    <wsdl:message name="CreatePullPointResponse">
    <wsdl:part name="CreatePullPointResponse"
    element="wsnt:CreatePullPointResponse"/>
    </wsdl:message>
    <wsdl:message name="UnableToCreatePullPointFault">
    <wsdl:part name="UnableToCreatePullPointFault"
    element="wsnt:UnableToCreatePullPointFault"/>
    </wsdl:message>
    <!-- ================ SubscriptionManager::Renew ==================
    Renew( Duration | AbsoluteTime)
    returns: (New Termination Time [CurrentTime])
    -->
    <wsdl:message name="RenewRequest">
    <wsdl:part name="RenewRequest"
    element="wsnt:Renew"/>
    </wsdl:message>
    <wsdl:message name="RenewResponse">
    <wsdl:part name="RenewResponse"
    element="wsnt:RenewResponse"/>
    </wsdl:message>
    <wsdl:message name="UnacceptableTerminationTimeFault">
    <wsdl:part name="UnacceptableTerminationTimeFault"
    element="wsnt:UnacceptableTerminationTimeFault" />
    </wsdl:message>
    <!-- ============== SubscriptionManager::Unsubscribe ===============
    Unsubscribe()
    returns: empty
    -->
    <wsdl:message name="UnsubscribeRequest">
    <wsdl:part name="UnsubscribeRequest"
    element="wsnt:Unsubscribe"/>
    </wsdl:message>
    <wsdl:message name="UnsubscribeResponse">
    <wsdl:part name="UnsubscribeResponse"
    element="wsnt:UnsubscribeResponse"/>
    </wsdl:message>
    <wsdl:message name="UnableToDestroySubscriptionFault">
    <wsdl:part name="UnableToDestroySubscriptionFault"
    element="wsnt:UnableToDestroySubscriptionFault" />
    </wsdl:message>
    <!-- ========== SubscriptionManager::PauseSubscription ============
    PauseSubscription()
    returns: empty
    -->
    <wsdl:message name="PauseSubscriptionRequest">
    <wsdl:part name="PauseSubscriptionRequest"
    element="wsnt:PauseSubscription"/>
    </wsdl:message>
    <wsdl:message name="PauseSubscriptionResponse">
    <wsdl:part name="PauseSubscriptionResponse"
    element="wsnt:PauseSubscriptionResponse"/>
    </wsdl:message>
    <wsdl:message name="PauseFailedFault">
    <wsdl:part name="PauseFailedFault"
    element="wsnt:PauseFailedFault" />
    </wsdl:message>
    <!-- ========= SubscriptionManager::ResumeSubscription ============
    ResumeSubscription()
    returns: empty
    -->
    <wsdl:message name="ResumeSubscriptionRequest">
    <wsdl:part name="ResumeSubscriptionRequest"
    element="wsnt:ResumeSubscription"/>
    </wsdl:message>
    <wsdl:message name="ResumeSubscriptionResponse">
    <wsdl:part name="ResumeSubscriptionResponse"
    element="wsnt:ResumeSubscriptionResponse"/>
    </wsdl:message>
    <wsdl:message name="ResumeFailedFault">
    <wsdl:part name="ResumeFailedFault"
    element="wsnt:ResumeFailedFault" />
    </wsdl:message>
    <!-- =================== PortType Definitions ===================== -->
    <!-- ========= NotificationConsumer PortType Definition =========== -->
    <wsdl:portType name="NotificationConsumer">
    <wsdl:operation name="Notify">
    <wsdl:input message="wsntw:Notify" />
    </wsdl:operation>
    </wsdl:portType>
    <!-- ========= NotificationProducer PortType Definition =========== -->
    <wsdl:portType name="NotificationProducer">
    <wsdl:operation name="Subscribe">
    <wsdl:input message="wsntw:SubscribeRequest" />
    <wsdl:output message="wsntw:SubscribeResponse" />
    <wsdl:fault name="ResourceUnknownFault"
    message="wsrf-rw:ResourceUnknownFault" />
    <wsdl:fault name="InvalidFilterFault"
    message="wsntw:InvalidFilterFault"/>
    <wsdl:fault name="TopicExpressionDialectUnknownFault"
    message="wsntw:TopicExpressionDialectUnknownFault"/>
    <wsdl:fault name="InvalidTopicExpressionFault"
    message="wsntw:InvalidTopicExpressionFault" />
    <wsdl:fault name="TopicNotSupportedFault"
    message="wsntw:TopicNotSupportedFault" />
    <wsdl:fault name="InvalidProducerPropertiesExpressionFault"
    message="wsntw:InvalidProducerPropertiesExpressionFault"/>
    <wsdl:fault name="InvalidMessageContentExpressionFault"
    message="wsntw:InvalidMessageContentExpressionFault"/>
    <wsdl:fault name="UnacceptableInitialTerminationTimeFault"
    message="wsntw:UnacceptableInitialTerminationTimeFault"/>
    <wsdl:fault name="UnrecognizedPolicyRequestFault"
    message="wsntw:UnrecognizedPolicyRequestFault"/>
    <wsdl:fault name="UnsupportedPolicyRequestFault"
    message="wsntw:UnsupportedPolicyRequestFault"/>
    <wsdl:fault name="NotifyMessageNotSupportedFault"
    message="wsntw:NotifyMessageNotSupportedFault"/>
    <wsdl:fault name="SubscribeCreationFailedFault"
    message="wsntw:SubscribeCreationFailedFault"/>
    </wsdl:operation>
    <wsdl:operation name="GetCurrentMessage">
    <wsdl:input message="wsntw:GetCurrentMessageRequest"/>
    <wsdl:output message="wsntw:GetCurrentMessageResponse"/>
    <wsdl:fault name="ResourceUnknownFault"
    message="wsrf-rw:ResourceUnknownFault" />
    <wsdl:fault name="TopicExpressionDialectUnknownFault"
    message="wsntw:TopicExpressionDialectUnknownFault"/>
    <wsdl:fault name="InvalidTopicExpressionFault"
    message="wsntw:InvalidTopicExpressionFault" />
    <wsdl:fault name="TopicNotSupportedFault"
    message="wsntw:TopicNotSupportedFault" />
    <wsdl:fault name="NoCurrentMessageOnTopicFault"
    message="wsntw:NoCurrentMessageOnTopicFault" />
    <wsdl:fault name="MultipleTopicsSpecifiedFault"
    message="wsntw:MultipleTopicsSpecifiedFault" />
    </wsdl:operation>
    </wsdl:portType>
    <!-- ========== PullPoint PortType Definition ===================== -->
    <wsdl:portType name="PullPoint">
    <wsdl:operation name="GetMessages">
    <wsdl:input name="GetMessagesRequest"
    message="wsntw:GetMessagesRequest" />
    <wsdl:output name="GetMessagesResponse"
    message="wsntw:GetMessagesResponse" />
    <wsdl:fault name="ResourceUnknownFault"
    message="wsrf-rw:ResourceUnknownFault" />
    <wsdl:fault name="UnableToGetMessagesFault"
    message="wsntw:UnableToGetMessagesFault" />
    </wsdl:operation>
    <wsdl:operation name="DestroyPullPoint">
    <wsdl:input name="DestroyPullPointRequest"
    message="wsntw:DestroyPullPointRequest" />
    <wsdl:output name="DestroyPullPointResponse"
    message="wsntw:DestroyPullPointResponse" />
    <wsdl:fault name="ResourceUnknownFault"
    message="wsrf-rw:ResourceUnknownFault"/>
    <wsdl:fault name="UnableToDestroyPullPointFault"
    message="wsntw:UnableToDestroyPullPointFault" />
    </wsdl:operation>
    <wsdl:operation name="Notify">
    <wsdl:input message="wsntw:Notify"/>
    </wsdl:operation>
    </wsdl:portType>
    <!-- ========== CreatePullPoint PortType Definition =============== -->
    <wsdl:portType name="CreatePullPoint">
    <wsdl:operation name="CreatePullPoint">
    <wsdl:input name="CreatePullPointRequest"
    message="wsntw:CreatePullPointRequest" />
    <wsdl:output name="CreatePullPointResponse"
    message="wsntw:CreatePullPointResponse" />
    <wsdl:fault name="UnableToCreatePullPointFault"
    message="wsntw:UnableToCreatePullPointFault" />
    </wsdl:operation>
    </wsdl:portType>
    <!-- ========== SubscriptionManager PortType Definition =========== -->
    <wsdl:portType name="SubscriptionManager">
    <wsdl:operation name="Renew">
    <wsdl:input name="RenewRequest"
    message="wsntw:RenewRequest" />
    <wsdl:output name="RenewResponse"
    message="wsntw:RenewResponse" />
    <wsdl:fault name="ResourceUnknownFault"
    message="wsrf-rw:ResourceUnknownFault" />
    <wsdl:fault name="UnacceptableTerminationTimeFault"
    message=
    "wsntw:UnacceptableTerminationTimeFault" />
    </wsdl:operation>
    <wsdl:operation name="Unsubscribe">
    <wsdl:input name="UnsubscribeRequest"
    message="wsntw:UnsubscribeRequest" />
    <wsdl:output name="UnsubscribeResponse"
    message="wsntw:UnsubscribeResponse" />
    <wsdl:fault name="ResourceUnknownFault"
    message="wsrf-rw:ResourceUnknownFault" />
    <wsdl:fault name="UnableToDestroySubscriptionFault"
    message=
    "wsntw:UnableToDestroySubscriptionFault" />
    </wsdl:operation>
    </wsdl:portType>
    <!-- ====== PausableSubscriptionManager PortType Definition ======= -->
    <wsdl:portType name="PausableSubscriptionManager">
    <!-- ============== Extends: SubscriptionManager ============ -->
    <wsdl:operation name="Renew">
    <wsdl:input name="RenewRequest"
    message="wsntw:RenewRequest" />
    <wsdl:output name="RenewResponse"
    message="wsntw:RenewResponse" />
    <wsdl:fault name="ResourceUnknownFault"
    message="wsrf-rw:ResourceUnknownFault" />
    <wsdl:fault name="UnacceptableTerminationTimeFault"
    message=
    "wsntw:UnacceptableTerminationTimeFault" />
    </wsdl:operation>
    <wsdl:operation name="Unsubscribe">
    <wsdl:input name="UnsubscribeRequest"
    message="wsntw:UnsubscribeRequest" />
    <wsdl:output name="UnsubscribeResponse"
    message="wsntw:UnsubscribeResponse" />
    <wsdl:fault name="ResourceUnknownFault"
    message="wsrf-rw:ResourceUnknownFault" />
    <wsdl:fault name="UnableToDestroySubscriptionFault"
    message=
    "wsntw:UnableToDestroySubscriptionFault" />
    </wsdl:operation>
    <!-- === PausableSubscriptionManager specific operations === -->
    <wsdl:operation name="PauseSubscription">
    <wsdl:input message="wsntw:PauseSubscriptionRequest"/>
    <wsdl:output message="wsntw:PauseSubscriptionResponse"/>
    <wsdl:fault name="ResourceUnknownFault"
    message="wsrf-rw:ResourceUnknownFault" />
    <wsdl:fault name="PauseFailedFault"
    message="wsntw:PauseFailedFault" />
    </wsdl:operation>
    <wsdl:operation name="ResumeSubscription">
    <wsdl:input message="wsntw:ResumeSubscriptionRequest"/>
    <wsdl:output message="wsntw:ResumeSubscriptionResponse"/>
    <wsdl:fault name="ResourceUnknownFault"
    message="wsrf-rw:ResourceUnknownFault" />
    <wsdl:fault name="ResumeFailedFault"
    message="wsntw:ResumeFailedFault" />
    </wsdl:operation>
    </wsdl:portType>
    </wsdl:definitions>
    And the error i get is [fatal error] null databinding context encountered when creating service.
    Steps i followed:
    1. Created a new project in Jdev
    2. Right clicked on project to expand Business Tier - Web Services nodes. Selected the Java web Service from WSDL.
    3. Selected WSDL to convert
    ---Says it is Fetching WSDL
    ---then says building model
    --and pops error : [fatal error] null databinding context encountered.
    Any suggestions? I'm unable to get this issue fixed for a long time.

    Hey guys,
    I couldnt get this fixed in jdeveloper, i finally gave up on using Jdeveloper for Web service creation.
    I went back to my eclipse3.2.2 and used the Eclipse WTP 1.5.4 and guess what, it had no issues generating the service and client for my WSDL.
    I am not sure Jdeveloper can compete with Eclipse functionality and ease.

  • Need expert's view on java object convertion

    Hello,
    I have my aplication on NW AS Java  which will call ABAP Web Services on SAP ERP System. For that I am using java proxies for web service call.
    The problem is every time what ever change i do, i have to touch my java code to regenerate java proxy which will call ABAP Web Service.
    Now, i am planning to use XI in between so that I do everything in XI. At least i don't need to touch my java code in future. From XI, i call ABAP web service using SOAP adapter.
    Now, the question is how can i convert my java(proxy) objects in XI. The out object i am sending is very complex, i am using some other objects in the out Object to call ABAP web service.
    Do i need to put my objects in File or Database ot Message queue... in order to use them in XI. What is the better option in this case...
    Thanks,

    Hi Sri,
    you're approaching it wrongly. You shouldn't use WSDL from XI.
    Instead, do it like this:
    1. create data type, message type and a outbound interface containing all the fields you may wanna use (for example, containing all objects that you may have in java).
    2. then, create a java proxy for this interface in IB (EJB); you'll have to get the EJB code into NWDS, create the EAR, deploy it in XI and activate the proxy*;
    3. from now on, call this EJB from your java code.
    Now, in XI part:
    4. import ABAP function as RFC;
    5. develop a mapping between your outbound interface and the RFC;
    Now configure a simple scenario from your outbound interface into the RFC interface. You just need a communication channel for the RFC, no need for it in sender java proxy.
    If you choose to use abap proxy in the receiver side, then it's even simpler. Define an inbound interface and use it in your configuration instead of RFC.
    Just to make it easier, you could even create 2 interfaces (1 inbound and 1 outbound) for the same data/message types, and define a mapping between them just to decide which fields to map; you could disable the fields you dont need right now in the target message. Just make sure to define the fields you want to disable as optional in the data type, or the abap proxy in receiver side will throw a default exception because of missing mandatory fields.
    Regards,
    Henrique.
    reference for java proxy: http://help.sap.com/saphelp_nw70/helpdata/en/97/7d5e3c754e476ee10000000a11405a/frameset.htm

  • JAVA Mapping: Convert a W3C DOM into OutputStream

    hi everybody,
    how do I convert a org.w3c.dom.Document into outputStream as needed in JAVA mapping?
    Thanks regards
    Mario

    Hi Mario,
    even if you already found the solution, I think the information may be useful to others.
    You could do something like:
    import org.w3c.dom.Document;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerConfigurationException;
    import javax.xml.transform.TransformerException;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    Document doc;
    try {
         TransformerFactory tf = TransformerFactory.newInstance();
         Transformer trans = tf.newTransformer();
         trans.transform(new DOMSource(doc), new StreamResult(out));
    } catch (TransformerConfigurationException e) {
         // Implement exception handling
    } catch (TransformerException e) {
         // Implement exception handling
    Regards,
    Henrique.

  • How to root out memory leak with  Java JNI & Native BDB 11g ?

    We are testing a web application using the 32-bit compiled native 11g version of BDB (with replication) under 32-bit IBM 1.5 JVM via JNI under 64-bit RedHat Linux. We are experiencing what appears to be a memory leak without a commensurate increase in Java heap size. Basically the process size continues to grow until the max 32-process size is reached (4Gb) and eventually stops running (no core). Java heap is set to 2Gb min/max. GCs are nominal, so the leak appears to be native and outside Java bytecode.
    We need to determine whether there is a memory leak in BDB, or the IBM JVM or simply a mis-use of BDB in the Java code. What tools/instrumentation/db statistic should be used to help get to root cause? Do you recommend using System Tap (with some particular text command script)? What DB stats should we capture to get to the bottom of this memory leak? What troubleshooting steps can you recommend?
    Thanks ahead of time.
    JE.
    Edited by: 787930 on Aug 12, 2010 5:42 PM

    That's troublesome... DB itself doesn't have stats that track VM in any useful way. I am not familiar with SystemTap but a quick look at it seems to imply that it's better for kernel monitoring than user space. It's pretty hard to get DB to leak significant amounts of memory. The reason is that it mostly uses shared memory carved from the environment. Also if you are neglecting to close or delete some object DB generally complains about it somewhere.
    I don't see how pmap would help if it's a heap leak but maybe I'm missing something.
    One way to rule DB out is to replace its internal memory allocation functions with your own that are instrumented to track how much VM has been allocated (and freed). This is very easy to do using the interfaces:
    db_env_set_func_malloc()
    db_env_set_func_free()
    These are global to your process and your functions will be used where DB would otherwise call malloc() and free(). How you get usage information out of the system is an exercise left to the reader :-) If it turns out DB is the culprit then there is more thinking to do to isolate the problem.
    Other ideas that can provide information if not actual smoking guns:
    -- accelerate reproduction of the problem by allocating nearly all of the VM to the JVM and the DB cache (or otherwise limit the allowable VM in your process)
    -- change the VM allocated to the JVM in various ways
    Regards,
    George

  • Java callouts from bpel  - 11g

    I had Oracle Soa Suite 10.1.3 with Toplink/WSIF. I used to generate classes using bpel/schemac and place them in systems/classes directory.
    But we migrated to Oracle Soa suite 11g. In 11g we don't see bpel folder. Are there any examples to handle the above in 11g?
    Questions are:
         Where is schemac located?
         Where should the generated classes go?
         How can I use java callouts from bpel?
         Where can I examples?

    Hello globo,
    if you have a synchronous process you simple use
    NormalizedMessage nmRet = deliveryService.request(processName, processMethod, normalizedMessage);
    nmRet.getPayload();
    And here you have the payload of your return.
    For callbacks and values from an asynchronous process have a look at clemens' blog:
    http://clemensblog.blogspot.com/2006/04/bpel-implementing-async-callback-with.html
    Greets Jens

  • No ocijdbc12 in java.library.path -- Oracle 11g client on machine - 4.1 EA

    no ocijdbc12 in java.library.path when trying to open a connection SQL Developer 4.1 EA version
    My 32-bit machine has an 11g cllient.
    Connections should work with 11g client as well.
    Not planning on 12c client until we  start migrating to new releases/

    If you do not have Tools > Preferences > Database > Advanced > Use OCI/Thick driver checked, that message will not appear whether the client is 11g or 12c.  If you want to use OCI/Thick in conjunction with 11g, then make sure Advanced > Use Oracle Client is checked and points to your installed 11g client.  Run the Test... button in the Configure panel and make sure any other requirements are also met.

  • Help~ Java Encoding Converting Program...!

    Dear Sir
    I would like to write a Encoding convert program from Big5 to UNICODE by JAVA. but there is a problem that java can only display the String in unicode format, I cannot display the char after 128... (most of the char display as "?" mark).
    below is my ascii test program.
    class test{
         public static void main(String args[]){
              for(int i =1 ; i<256 ; i++){
                   System.out.println((char)i);
    Best Regards
    Art Hung

    You should be able to write such a program rather easily with java.io.InputStreamReader and java.io.OutputStreamWriter. They perform all of the conversions for you (look at the constructors which let you specify a character set).

  • How do you install and run Java HTML converter 1.2?

    Hi,
    I just downloaded the Java plugin HTML converter (version 1.2) and after I unzipped the file, there was no exe file to run. Am I supposed to move all the files and directories somewhere else and run something at the command prompt?
    I wish they had better documentaion about this. I've searched all over java.sun.com and couldn't find a thing.
    Thanks all

    There is a new converter ver 1.3. Its written in Java so it needs the JRE to run. It comes with a BAT file to run it. It should be located here.
    C:\Program Files\HTML_Converter\converter\classes\HTMLConverter.bat
    The contents of the BAT file are the following:
    java -classpath %CLASSPATH%;. HTMLConverter %1 %2 %3 %4 %5 %6 %7 %8 %9
    I hope that helps.

  • Java Currency converter

    I am a beginning Java developer and I have a question regarding a little "tryout" applet I'm writing. This is my code so far:
    //Applet 01 - Euro Converter - Build_001
    import java.applet.*;
    import java.awt.*;
    public class Euro extends Applet
         TextField invoerbedrag;
         TextField koers;
         Button eurogulden;
         Button guldeneuro;
         Label uitvoer;
         String
         public void paint (Graphics pen)
              invoerbedrag.setBounds(100,30,100,25);
              koers.setBounds(250,30,100,25);
              eurogulden.setBounds(125,100,100,25);
              guldeneuro.setBounds(225,100,100,25);
              uitvoer.setBounds(150,150,100,25);
              pen.drawString("Invoer:",100,20);
              pen.drawString("Koers:",250,20);
              pen.setColor(Color.black);
         public void init()
              uitvoer=new Label("");
              add(uitvoer);
              invoerbedrag=new TextField("");
              add(invoerbedrag);
              koers=new TextField("2.20371");
              add(koers);
              eurogulden=new Button("Euro > Gulden");
              add(eurogulden);
              guldeneuro= new Button("Gulden > Euro");
              add(guldeneuro);
    }It's all in Dutch, but it only is the layout. Now I have to make the number in the "invoer" textbox be dived by the number in the "koers"
    textbox when I click on button "guldeneuro" and I have to make to number in the "invoer" textbox be multiplied by the number in the
    "koers" textbox when I click on the button "eurogulden". The result of a click should be displayed in the "uitvoer" label. An other thing that is important is that the numbers could be both decimal and non decimal. Could someone write me a piece of code that does the job and explain me the working?
    Thanks for your help.

    Okay I have made some progress:
    //Applet 01 - Euro Converter - Build_001
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    public class Euro extends Applet
         TextField invoer;
         TextField koers;
         Button eurogulden;
         Button guldeneuro;
         Label uitvoer;
         public void paint (Graphics pen)
              invoer.setBounds(100,30,100,25);
              koers.setBounds(250,30,100,25);
              eurogulden.setBounds(125,100,100,25);
              guldeneuro.setBounds(225,100,100,25);
              uitvoer.setBounds(150,150,100,25);
              pen.drawString("Invoer:",100,20);
              pen.drawString("Koers:",250,20);
              pen.setColor(Color.black);
         public void init()
              guldeneuro.addActionListener(this);
              eurogulden.addActionListener(this);
              uitvoer=new Label("");
              add(uitvoer);
              invoer=new TextField("");
              add(invoer);
              koers=new TextField("2.20371");
              add(koers);
              eurogulden=new Button("Euro > Gulden");
              add(eurogulden);
              guldeneuro=new Button("Gulden > Euro");
              add(guldeneuro);
         public void actionPerformed(ActionEvent actionevent)
              actionevent.getSource();
                 String s = actionevent.getActionCommand();
                if(s.equals("Euro > Gulden"))
                    if(invoer.getText() != "")
                        Double double1 = new Double(invoer.getText());
                        double d = double1.doubleValue() / koers.getText();
                        Double double3 = new Double(d);
                        uitvoer.setText(double3.toString());
                        return;
                } else
                if(s.equals("Gulden > Euro") && invoer.getText() != "")
                    Double double2 = new Double(invoer.getText());
                    double d1 = double2.doubleValue() * koers.getText();
                    Double double4 = new Double(d1);
                    uitvoer.setText(double4.toString());
    }But when compiling I get some error's:
    C:\Program Files\Java\Java Development Kit\bin\Euro.java:35: addActionListener(java.awt.event.ActionListener) in java.awt.Button cannot be applied to (Euro)
              guldeneuro.addActionListener(this);
              ^
    C:\Program Files\Java\Java Development Kit\bin\Euro.java:36: addActionListener(java.awt.event.ActionListener) in java.awt.Button cannot be applied to (Euro)
              eurogulden.addActionListener(this);
              ^
    C:\Program Files\Java\Java Development Kit\bin\Euro.java:64: operator / cannot be applied to double,java.lang.String
    double d = double1.doubleValue() / koers.getText();
    ^
    C:\Program Files\Java\Java Development Kit\bin\Euro.java:70: cannot find symbol
    symbol : variable Invoer
    location: class Euro
    if(s.equals("Gulden > Euro") && Invoer.getText() != "")
    ^
    C:\Program Files\Java\Java Development Kit\bin\Euro.java:73: operator * cannot be applied to double,java.lang.String
    double d1 = double2.doubleValue() * koers.getText();
    ^
    5 errors
    Any ideas??

Maybe you are looking for

  • Report Painter- Restricting Business Transactions

    Hi, I'm creating a report using report painter & would like to prevent Actual Overhead Distribution data (business transaction RKIV) from being reflected in this report. I can add business transactions in the report through Edit -> General Selection

  • I can no longer edit information for streaming files in Get Info.

    I can no longer edit information for streaming files in Get Info.

  • How to get the index of subform in dynamic Forms??

    We are creating a Dynamic Form in which there is a field "PAN number" in a block. With the Script, we are replicating the blocks. Suppose there are 10 blocks (hence 10 PAN number fields will be there) and if the user wants to enter the PAN number in

  • Error code U43M1D207

    I am having trouble installing Photoshop Camera Raw 7.4 Update due to error code U43M1D207.  What needs to be done to resolve this issue?

  • Re-open a Change Request in Solman 7.1

    It is the first time that I am working with Solman Does anyone know if it is possible to open a ticket in Solman once it has been closed? And, in this case, can I put the ticket in the status that I prefer or it has to be the previous status before b