Java Class Web Service

Which the best way to make a webservice based on a java class in JDeveloper 10.1.2?
I need to make a webservice that make some queries in views of BPEL's dehydration DB, but I would not like that this webservice was a BPEL process in the Process Manager, with gone off instances being to each query. Therefore I intend to make a java class that it executes the queries and it returns the results.
However it would like a structuralized payload, instead of returning a primitive and soap-serialized type, I would like to return a complex type.
Example of return message:
... SOAP Message ...
<payload>
<sensors>
<sensor>
<date>2006-sep-11</date>
<activity>invoke partner</activity>
</sensor>
<sensor>
<date>2006-sep-11</date>
<activity>receive partner</activity>
</sensor>
</sensors>
</payload>
... SOAP Message ...
Well, JDeveloper 10.1.2 can't make this work easiest for me ... the wizard can't work with classes returning complex types.
I tried many ways to do this: top-down and bottom-up approach's, but without success.
Also tried made a wsdl and using schemac generate facades classes, write a deploy file and, and after some difficult made the deploy in my OC4J. But invoking the webservice the server returns this message:
"javax.servlet.ServletException: WSDL Generation exception: java.lang.Exception org.collaxa.thirdparty.dom4j.Namespace is not a java bean: must have a default constructor"
Well, sorry, but I'm a java newbie and I have no idea about what can I do in this case. But I think that the error isn't in my class. :-(
Ok, also tried to do this, for test, in JDeveloper 10.1.3, but without success too.
Following some examples and tutorials, I tried to use the wizard "Create J2EE webservice" using WSIF, but doesn't works for me.
I read the blog posts:
"Revisiting Java and WSIF"
http://blogs.oracle.com/reynolds/2006/08/10#a112
"Using Java from BPEL"
http://blogs.oracle.com/reynolds/discuss/msgReader$10?mode=day
And many others...
But, in fact, the things doesn't works like in the tutorials...
Someone can help-me?
Thanks for help and sorry for my rusted english.

As far as I can tell, the SOAPContext is not magically there in Oracle Web services so you have to revert to Oracle SOAP (which is where the OracleSOAPContext comes from and is pretty much Apache SOAP 2.3.1 with fixes and a couple things to make it work in our environment - e.g. like a slightly updated SOAPContext class).
We ship Oracle SOAP with our distribution in the soap.ear file located in the <oc4J_home>\soap\webapps directory. Just add this line (tailored to your config) to your server.xml:
<application name="soap" path="../../../soap/webapps/soap.ear" auto-start="true" />
and the line:
<web-app application="soap" name="soap" root="/soap" />
to your http-web-site.xml and your Oracle SOAP environment should be set up with an endpoint of:
http://127.0.0.1:8888/soap/servlet/soaprouter
Then build your Web service and in your method add the SOAPContext parameter. Here is a simple method that should print out the remote IP, after casting to the OracleSOAPContext:
public String sayHello( SOAPContext ctx, String test)
OracleSOAPContext octx = (OracleSOAPContext)ctx;
System.out.println("Remote address: " + octx.getRemoteAddress());
return "Hello: " + test;
For completeness, the dd file looks like:
<?xml version = '1.0' encoding = 'windows-1252'?>
<isd:service
id="mypackage3.Class1"
xmlns:isd="http://xml.apache.org/xml-soap/deployment">
<isd:provider
type="java"
methods="sayHello"
scope="Request">
<isd:java class="mypackage3.Class1" static="false"/>
</isd:provider>
<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListener>
</isd:service>
Mike.

Similar Messages

  • JDev's Java class web service....

    Hi,
    I am deploying a java class as a web service via JDeveloper. I was wondering, if this class/web_service is residing on an Oracle AS, will it support concurrent calls from multiple consumers?
    I guess what I am asking is will every consumers who calls the web service instantiate their own web service object and have their own stack frame etc... or will they all be sharing the same memory hence all hell breaking lose?
    Thank you in advance

    As far as I can tell, the SOAPContext is not magically there in Oracle Web services so you have to revert to Oracle SOAP (which is where the OracleSOAPContext comes from and is pretty much Apache SOAP 2.3.1 with fixes and a couple things to make it work in our environment - e.g. like a slightly updated SOAPContext class).
    We ship Oracle SOAP with our distribution in the soap.ear file located in the <oc4J_home>\soap\webapps directory. Just add this line (tailored to your config) to your server.xml:
    <application name="soap" path="../../../soap/webapps/soap.ear" auto-start="true" />
    and the line:
    <web-app application="soap" name="soap" root="/soap" />
    to your http-web-site.xml and your Oracle SOAP environment should be set up with an endpoint of:
    http://127.0.0.1:8888/soap/servlet/soaprouter
    Then build your Web service and in your method add the SOAPContext parameter. Here is a simple method that should print out the remote IP, after casting to the OracleSOAPContext:
    public String sayHello( SOAPContext ctx, String test)
    OracleSOAPContext octx = (OracleSOAPContext)ctx;
    System.out.println("Remote address: " + octx.getRemoteAddress());
    return "Hello: " + test;
    For completeness, the dd file looks like:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <isd:service
    id="mypackage3.Class1"
    xmlns:isd="http://xml.apache.org/xml-soap/deployment">
    <isd:provider
    type="java"
    methods="sayHello"
    scope="Request">
    <isd:java class="mypackage3.Class1" static="false"/>
    </isd:provider>
    <isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListener>
    </isd:service>
    Mike.

  • Problem generating stubs for Java EJB web service deployed in OAS

    I created an EJB web service and I've successfully deployed it in my Oracle App Server. Some of the methods work fine but others produce the ff error:
    org.apache.soap.SOAPException - java.lang.IllegalArgumentException: No Serializer found to serialize [classname] using encoding style [encoding]It seems that the objects specified as parameters in the web service methods exposed are the only ones that had stubs generated for them. Other objects I use, which are usually wrapped inside a Vector, did not have generated stubs.
    Example:
         public String loginUser(UserDTO userDTO) throws RemoteException, NamingException, SQLException;
    public String addItems (Vector vecItems) throws RemoteException, NamingException, SQLException; // where vecItems is a collection of ItemDTO objects     In this scenario, stubs were generated for the UserDTO class, but not for the ItemDTO class. In effect, calling the addItems method resulted to the exception I mentioned above.
    I did a workaround wherein I declared a dummy method which accepted all the types of objects I needed as parameters so all the necessary stubs can be generated, but this fix doesn't feel like it's the proper solution to my problem.
    If anyone can help me, it would be greatly appreciated. Thanks!

    Crossposted:
    Problem generating stubs for Java EJB web service deployed in OAS

  • [Integrated SOA Gateway] Publish Java based web service

    Welcome!
    Lately I have been trying to publish Java based web service through Integrated SOA Gateway. The documentation states that:
    +"Custom interface definitions can be created for various interface types including custom interface definitions for XML Gateway Map, Business Event, PL/SQL, Concurrent Program, Business Service Object, Java (except for Java APIs for Forms subtype) and Composite Service for BPEL type."+ (Integrated SOA Gateway Developer's Guide Release 12.1, "Creating and Using Custom Integration Interfaces")
    After familiarizing myself with $FND_TOP/bin/irep_parser.pl and $FND_TOP/bin/FNDLOAD tools, I have started coding my POJOs. Initially I have come up with three classes - request/response objects and service implementation. Service implementation has been annotated with "@rep:X" descriptors according to "Java Annotations" section of the documentation. While invoking $FND_TOP/bin/irep_parser.pl I have received errors about class resolution. My solution was to transform request and response types to static inner classes. This way I ended up with one *.java source file (see below).
    * Sample ISG Service.
    * @rep:scope public
    * @rep:product AP
    * @rep:displayname My Custom ISG Service.
    public class MyService {
    public static class Request {
    private String id;
    public void setId(String id) {
    this.id = id;
    public String getId() {
    return id;
    public static class Response {
    private String data;
    public void setData(String data) {
    this.data = data;
    public String getData() {
    return data;
    * Sample operation.
    * @param request Request Object.
    * @return Return Object.
    * @rep:displayname Test operation.
    * @rep:category BUSINESS_ENTITY SAMPLE_SERVICE
    public MyService.Response testOperation(MyService.Request request) {
    MyService.Response response = new MyService.Response();
    response.setData("Some Data");
    return response;
    ILDT file has been successfully created and uploaded. However, I could not see the "Generate WSDL" button on Integrated Repository website. Is there any particular interface or superclass that my service implementation should extend? I have reviewed "PurchaseOrderSDO" example posted in the developer's guide (page 407), but I couldn't come up with a working solution. Could you provide me with more detailed tutorial/example? Which documentation sections should I read again?
    After searching through forum, I have spotted $FND_TOP/bin/soagenerate.sh script, and thought that lack of "Generate WSDL" button was an EBS defect. After running the script, I have received an error:
    Error in Service Generation.
    ServiceGenerationError: Interface Type (JAVA) Interface SubType (null) is not supported.
    oracle.apps.fnd.soa.util.SOAException: ServiceGenerationError: Interface Type (JAVA) Interface SubType (null) is not supported.
         at oracle.apps.fnd.soa.provider.wsdl.ArtifactsFactory.getArtifactsGenerator(ArtifactsFactory.java:55)
         at oracle.apps.fnd.soa.provider.wsdl.WSDLGenerator.generateServiceWSDL(WSDLGenerator.java:128)
         at oracle.apps.fnd.soa.provider.wsdl.ServiceGenerator.generateSOAService(ServiceGenerator.java:75)
         at oracle.apps.fnd.soa.provider.wsdl.ServiceGenerator.generateSingleService(ServiceGenerator.java:88)
         at oracle.apps.fnd.soa.provider.wsdl.ServiceGenerator.main(ServiceGenerator.java:419)
    I would be grateful for any suggestions. Has anyone published Java based web service through ISG?
    Best regards,
    Lukasz

    I tried the following as per Oracle support and able to generate the wsdl though, but not invoke the webservices.
    1. Applied the patch 8607523
    2. Took the translator.jar file from the patch 8857799 and replaced the current translator.jar file
    3. Deploy the adapters.
    $FND_TOP/bin/txkrun.pl -script=CfgOC4JApp -applicationname=pcapps
    -oc4jpass=welcome -runautoconfig=No

  • Issues in creating Java based web services with JAXB 1.0 in Jdeveloper 10 g

    Hi All,
    I am trying out a simple java based web service creation exercise using Jdeveloper 10.1.3.3.0.3 and JAXB 1.0. Here is what I am trying to do.
    1. I have a XSD file called Status.xsd, which has three complex types in it.
    2. Using Jdeveloper Tools --> JAXB Compilation, I have created Jaxb classes for the above XSD files. For each of the complex type the jaxb class generator generated on IMPL clas and one abstract class.
    3. Now I have created one simple java class called Class1.java and created one method that takes the StatusImpl as input and as output for that method. Here is the code for Class1.java
    public class Class1 {
    public Class1() {
    public StatusImpl getstatus (StatusImpl in) {
    StatusImpl out;
    out = in;
    return out;
    4. Now, I trying to create a web service for this java class from jedeveloper. I have right clicked this class and went thru the wizard Create J2EE web services.
    5. At the end, the web service project got created successfully and I am trying to run this project from jdeveloper. When I run this project, I am getting the following kind of error message in the browser
    It looks like when the runtime deployment classes are trying to instantiate the abstract classes instead of the impl class. and for all the complex types they trow that error and the web service could not be even invoked.
    What could be the issue? Is the jaxb based web services supported with jdeveloper 10g?
    Thanks,
    Renga

    Hi All,
    I am trying out a simple java based web service creation exercise using Jdeveloper 10.1.3.3.0.3 and JAXB 1.0. Here is what I am trying to do.
    1. I have a XSD file called Status.xsd, which has three complex types in it.
    2. Using Jdeveloper Tools --> JAXB Compilation, I have created Jaxb classes for the above XSD files. For each of the complex type the jaxb class generator generated on IMPL clas and one abstract class.
    3. Now I have created one simple java class called Class1.java and created one method that takes the StatusImpl as input and as output for that method. Here is the code for Class1.java
    public class Class1 {
    public Class1() {
    public StatusImpl getstatus (StatusImpl in) {
    StatusImpl out;
    out = in;
    return out;
    4. Now, I trying to create a web service for this java class from jedeveloper. I have right clicked this class and went thru the wizard Create J2EE web services.
    5. At the end, the web service project got created successfully and I am trying to run this project from jdeveloper. When I run this project, I am getting the following kind of error message in the browser
    It looks like when the runtime deployment classes are trying to instantiate the abstract classes instead of the impl class. and for all the complex types they trow that error and the web service could not be even invoked.
    What could be the issue? Is the jaxb based web services supported with jdeveloper 10g?
    Thanks,
    Renga

  • 2 Java ME Web Service Errors of "Not Compliant with JSR-172"

    This happened when I use Microsoft's ASMX-based WSDL file on a Java ME WS client.
    Say I had a test.asmx WSDL. Then I use NetBeans, and I go to New > Java ME Web Service Client
    I tried to import from running web service, URL "http://www.testhost.com/wspackage/test.asmx?WSDL"
    and then the popup validation error told me "Reference in element is not supported by this version of stub compiler"
    also the X logo error told me "testasmx.wsdl is not compliant with Java ME Web Services specification (JSR-172)"
    I wondered what's going on? Is there any data types not supported by JSR-172? Which is it?
    When I "Validate XML" this ASMX file, it pops this:
    "Error: src-resolve: Cannot resolve the name 's:schema' to a(n) 'element declaration' component."
    The "types" section of my WSDL are like this:
    <?xml version="1.0" encoding="utf-8"?>
    <wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://tempuri.org/MMWebServices/Coverage"
    xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    targetNamespace="http://tempuri.org/MMWebServices/Coverage" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/MMWebServices/Coverage">
    <s:import namespace="http://www.w3.org/2001/XMLSchema" />
    <s:element name="ViewListDoctor">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="iUserId" type="s:int" />
    <s:element minOccurs="1" maxOccurs="1" name="iASchId" type="s:int" />
    <s:element minOccurs="0" maxOccurs="1" name="sSearchKeyword" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dsView">
    <s:complexType>
    <s:sequence>
    <s:element ref="s:schema" /> // <<error occured on this line, and every time the ref="s:schema" shows up <<
    Anyone have experienced this?

    Yes, thx u. I didn't realized I was posting on the wrong section (Enterprise) so I posted again to the J2ME/MIDP section since it was all about mobility. Please delete the first post.

  • Use OWB with java or web service

    Instead of using Oracle warehouse builder GUI design and control center, may I use Java or Web services to access the functionality of warehouse builder.
    where can I find these Java or web services API document.
    Thanks

    I think I can answser my own question by some investigation now. Javadoc is here:
    http://download-west.oracle.com/docs/html/B12155_01/index.html
    but looks like this never been metioned. does it means code to Java API is not recommanded?
    also, still not able to find any tutorial about using this APIs except javadoc

  • 2-java clients communicate with java based web-service

    I'm new 2 web-services.
    I need to create 2-java clients(a game like chess) & communicate them through a java based web-service.
    I can create the web service.(using Netbeans getting started tutorial.only the basic stuff)
    when we create the 2-clients are those should be web-clients or are they should be normal java
    applications.
    (clients should be GUI based)
    ??

    I'm new 2 web-services.
    I need to create 2-java clients(a game like chess) & communicate them through a java based web-service.
    I can create the web service.(using Netbeans getting started tutorial.only the basic stuff)
    when we create the 2-clients are those should be web-clients or are they should be normal java
    applications.
    (clients should be GUI based)
    ??

  • Problem with java based Web Services in ADF-.

    I have developed a Web service based on the Java class generated through Business components. Steps are as below:-
    1)     Created a Read only View Object with EmpDeptViewObj name and has following query:-
    “select e.EMPLOYEE_ID,e.FIRST_NAME,e.LAST_NAME,e.EMAIL,e.JOB_ID, d.DEPARTMENT_ID,d.DEPARTMENT_NAME
    from HR.EMPLOYEES e,HR.DEPARTMENTS d where e.department_id=d.department_id
    and d.DEPARTMENT_NAME=:1”
    2)     Created an AM. Added the above created View Object in it and then added the following custom method it in:-
    public String[] getEmpDetailsAsString(String deptName)
    EmpDeptViewObjImpl empDeptVOObj=this.getEmpDeptViewObj1();
    empDeptVOObj.setWhereClauseParams(null);
    empDeptVOObj.setWhereClauseParam(0,deptName);
    empDeptVOObj.executeQuery();
    int fetchedRowCount = empDeptVOObj.getRowCount();
    EmpDeptViewObjRowImpl[] rows = new EmpDeptViewObjRowImpl[fetchedRowCount];
    String[] temp=new String[fetchedRowCount];
    RowSetIterator rowIter = empDeptVOObj.createRowSetIterator("rowIter");
    if (fetchedRowCount > 0)
    rowIter.setRangeStart(0);
    rowIter.setRangeSize(fetchedRowCount);
    for (int count = 0; count < fetchedRowCount; count++)
    rows[count]=(EmpDeptViewObjRowImpl)rowIter.getRowAtRangeIndex(count);
    temp[count]=rows[count].getFirstName();
    rowIter.closeRowSetIterator();
    return temp;
    public EmpDeptViewObjRowImpl[] getEmpDetailsAsRowImplObj(String deptName)
    EmpDeptViewObjRowImpl[] rows=null;
    if(deptName!=null)
    EmpDeptViewObjImpl empDeptVOObj=this.getEmpDeptViewObj1();
    empDeptVOObj.setWhereClauseParams(null);
    empDeptVOObj.setWhereClauseParam(0,deptName);
    empDeptVOObj.executeQuery();
    int fetchedRowCount = empDeptVOObj.getRowCount();
    rows = new EmpDeptViewObjRowImpl[fetchedRowCount];
    RowSetIterator rowIter = empDeptVOObj.createRowSetIterator("rowIter");
    if (fetchedRowCount > 0)
    rowIter.setRangeStart(0);
    rowIter.setRangeSize(fetchedRowCount);
    for (int count = 0; count < fetchedRowCount; count++)
    rows[count]=(EmpDeptViewObjRowImpl)rowIter.getRowAtRangeIndex(count);
    rowIter.closeRowSetIterator();
    return rows;
    public EmpDeptBean[] getEmpDetailsBasedOnBean(String deptName)
    EmpDeptViewObjImpl empDeptVOObj=this.getEmpDeptViewObj1();
    empDeptVOObj.setWhereClauseParams(null);
    empDeptVOObj.setWhereClauseParam(0,deptName);
    empDeptVOObj.executeQuery();
    int fetchedRowCount = empDeptVOObj.getRowCount();
    EmpDeptBean empDeptRow[]=new EmpDeptBean[fetchedRowCount];
    EmpDeptViewObjRowImpl[] rows = new EmpDeptViewObjRowImpl[fetchedRowCount];
    RowSetIterator rowIter = empDeptVOObj.createRowSetIterator("rowIter");
    if (fetchedRowCount > 0)
    rowIter.setRangeStart(0);
    rowIter.setRangeSize(fetchedRowCount);
    for (int count = 0; count < fetchedRowCount; count++)
    rows[count]=(EmpDeptViewObjRowImpl)rowIter.getRowAtRangeIndex(count);
    empDeptRow[count].setDEPARTMENTID(rows[count].getDepartmentId());
    empDeptRow[count].setDEPARTMENTNAME(rows[count].getDepartmentName());
    empDeptRow[count].setFIRSTNAME(rows[count].getFirstName());
    empDeptRow[count].setLASTNAME(rows[count].getLastName());
    empDeptRow[count].setJOBID(rows[count].getJobId());
    empDeptRow[count].setEMPLOYEEID(rows[count].getEmployeeId());
    empDeptRow[count].setEMAIL(rows[count].getEmail());
    rowIter.closeRowSetIterator();
    return empDeptRow;
    3)     And then generated the Web Service from Application module.
    Problem here is I am unable to return multiple columns to the xml generated. And only getEmpDetailsAsString and getEmpDetailsAsRowImplObj. And getEmpDetailsBasedOnBean method is not even getting published in end point.
    Please help me to solve this problem.
    Thanks in Advance
    ~Vikram
    Message was edited by:
    Vikram

    Could you please paste your WSDL?

  • Java Client Web Service In Platform Eclipse

    Hi All
    I have created a server Web Service called LoanCalcService in VS.NET 2005, the folder contains LoanInfo.asmx that when run creates the Web Service, WSDL. Which works good.
    Now i need to send a request to the Web Service server and get a response from the LoanCalcService that it provides. To do this i must create a client in another language. I am doing this in JAVA in the Eclipse platform.
    I have tested the WSDL with the web service explorer that comes with eclipse and the program works good. But when i run the Java code in Eclipse i get this
    Error
    HTTP Status 404 - /WebServiceProject/WEB-INF/classes/localhost/LoanCalcService/LoanInfo_asmx/LoanInfoLocator.java
    type Status report
    message /WebServiceProject/WEB-INF/classes/localhost/LoanCalcService/LoanInfo_asmx/LoanInfoLocator.java
    description The requested resource (/WebServiceProject/WEB-INF/classes/localhost/LoanCalcService/LoanInfo_asmx/LoanInfoLocator.java) is not available
    Can anyone tell me please what i am missing please.
    Thank You beforehand

    You are a novice to Java and yet you expect to start out writing services?
    Good luck with that*
    *Trademark, 2006- yawmark, All Rights Reserved.                                                                                                                                                                                                                                                                                                   

  • User authentication error with Proxy Java Calling web Service in XI

    Hello,
    I have deploy a Web Service in SAP XI 3.0. within a SOAP sender adapter.
    I have also created the Proxy Java Class to access the webservice in the Developer Studio and a Plain Java Class (only with a method main) which uses the proxy classes to consume the web service.
    But when I launch the program a get the next error message:
    java.rmi.RemoteException: Service call exception; nested exception is:
         com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized.
         at com.everis.serviciosweb.xi.MI_OUT_STATUSBindingStub.MI_OUT_STATUS(MI_OUT_STATUSBindingStub.java:73)
         at com.everis.llamadas.invocacionWSStatus.main(invocacionWSStatus.java:76)
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized.
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage
    Where MI_OUT_STATUSBindingStub is my Stub Class.
    I have tried to set USERNAME_PROPERTY and PASSWORD_PROPERTY at runtime from my Stub class to the values that I use to access SAP XI (Integration Repository & Integration Directory) but it still doesn't´t work.
    Have anyone a solution?
    Thanks.

    Hi,
        finally I have fixed it.
    The root of the problem was on the way that I proceed with the generation of wsdl in Integration Directory.
    The second step in the wizard for generation of wsdl ask for a url to call the web service and gives you an option to complete the url automatic. I have use this option and it have proposed my an url of type http://<host>:<port>/sap/xi/engine?entry=.......
    But the SOAP adapter call is in the form http://<host>:<port>/XISOAPAdapter/MessageServlet?channel=<party>:<business service>:<channel>
    So using this type of url in the generation of wsld solves all the problems.
    Regards,
    Antonio.

  • Java 6 web services and Tomcat?

    I recently installed Java SE 6 and want to know how to use the web services that come with it with Tomcat 5.5.
    Searching the internet yields no answers.
    Specifically, I need to know what needs to go into the web.xml file to publish the web service, whether another xml file is needed, whether Tomcat should have any jars added to its internal directories, etc.
    I realize that some of these questions are Tomcat-specific, and I plan to post on a Tomcat-related forum as well, but these are all Java SE 6 -related questions, so I'm hoping that posting here should yield some answers too.
    Thanks in advance,
    Inna

    Thanks for your reply.
    I found how to do this, though it took a lot of searching.
    I'm including the info in this post in case it can help anyone in the future.
    This info was found on: http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=51&t=004355 and is copied almost verbatim below.
    The steps are:
    Download and unpack the jax-ws (use https://jax-ws.dev.java.net/jax-ws-20-fcs/)
    Copy all *.jar from the lib dir into $CATALINA_HOME/shared/lib
    Create a directoy for the service under $CATALINA_HOME/webapps
    Copy the class structure from the web service into WEB-INF/classes in that directory
    Create a sun-jaxws.xml in WEB-INF
    Create web.xml in WEB-INF
    Start tomcat. Done
    The web.xml should look something like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
    <web-app>
      <listener>
        <listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener
        </listener-class>
      </listener>
    <servlet>
      <servlet-name>HelloService</servlet-name>
      <servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-class>
      <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
      <servlet-name>HelloService</servlet-name>
      <url-pattern>/hello</url-pattern>
    </servlet-mapping>
    <session-config>
      <session-timeout>60</session-timeout>
    </session-config>
    </web-app>The sun-jaxws.xml can look like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <endpoints xmlns="http://java.sun.com/xml/ns/jax-ws/ri/runtime" version="2.0">
      <endpoint  name="HelloService"        implementation="com.techyatra.hellows.HelloServer" url-pattern="/hello" />
    </endpoints>After starting tomcat you can access the service under
    http://localhost:8080/HelloService/helloHope this helps someone.
    Inna

  • Java API (web services) for  exportMetadata and importMetadata

    We ususally use WLST command : exportMetadata and importMetadata to export/import MDS. is there any corresponding web services or Java API avalaible for the similar purpose?
    Thanks

    Hi,
    U can expose a EJB or a java class as a webservice in webdynpro and u can use it in webdynpro directly and if u want to use it through Portal u need to create proxies and do it.
    U can go through this weblog which helps u in creating a Bean as a webservice.
    /people/sap.user72/blog/2005/09/15/creating-a-web-service-and-consuming-it-in-web-dynpro
      And u can expose the services created in XI also as webservices.
    Regards,
    Sirisha.

  • XI 3.0 and external Java client/web service

    Hello,
    I'm desperately tryin' to get an external system to work together with XI 3.0.
    The setup is quite simple:
    The external system is nothing but a simple Java program sending SOAP-based requests to a webservice. It is based on AXIS and is running satisfyingly when connecting directly to an appropriate Tomcat/AXIS-based web service, see the following communication.
    -- local request
    POST /axis/VAPService.jws HTTP/1.0
    Content-Type: text/xml; charset=utf-8
    Accept: application/soap+xml, application/dime, multipart/related, text/*
    User-Agent: Axis/1.1
    Host: 192.168.1.2:8080
    Cache-Control: no-cache
    Pragma: no-cache
    SOAPAction: "http://localhost/SOAPRequest"
    Content-Length: 422
    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
      <SOAPRequest soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
       <SOAPDataIn xsi:type="xsd:string">890000001</SOAPDataIn>
      </SOAPRequest>
    </soapenv:Body>
    </soapenv:Envelope>
    -- local response
    HTTP/1.1 200 OK
    Set-Cookie: JSESSIONID=DFD7A00A244C18A058FCB52A8321A167; Path=/axis
    Content-Type: text/xml;charset=utf-8
    Date: Mon, 23 Aug 2004 06:52:47 GMT
    Server: Apache-Coyote/1.1
    Connection: close
    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
      <SOAPRequestResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
       <SOAPRequestReturn xsi:type="xsd:int">1</SOAPRequestReturn>
      </SOAPRequestResponse>
    </soapenv:Body>
    </soapenv:Envelope>
    Now I have designed and configured simple business scenarios with XI 3.0 (synchronous as well as asynchronous). The only response I get from XI when the Java client connects ist the following:
    -- remote request
    POST /sap/xi/engine?type=entry HTTP/1.0
    Content-Type: text/xml; charset=utf-8
    Accept: application/soap+xml, application/dime, multipart/related, text/*
    User-Agent: Axis/1.1
    Host: <host>:<port>
    Cache-Control: no-cache
    Pragma: no-cache
    SOAPAction: "http://soap.org/soap"
    Content-Length: 424
    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
      <SOAPRequest soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
       <SOAPDataIn xsi:type="xsd:string">890000001</SOAPDataIn>
      </SOAPRequest>
    </soapenv:Body>
    </soapenv:Envelope>
    -- remote response
    HTTP/1.0 500 HTTP standard status code
    content-type: text/xml
    content-length: 1493
    content-id: <[email protected]>
    server: SAP Web Application Server (1.0;640)
    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP:Header>
    </SOAP:Header>
    <SOAP:Body>
    <SOAP:Fault xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:wsu="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsse="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" SOAP:mustUnderstand="1">
       <SOAP:faultcode>Client</SOAP:faultcode>
       <SOAP:faultstring></SOAP:faultstring>
       <SOAP:faultactor>http://sap.com/xi/XI/Message/30</SOAP:faultactor>
       <SOAP:faultdetail>
          <SAP:Error xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:wsu="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsse="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" SOAP:mustUnderstand="1">
             <SAP:Category>XIProtocol</SAP:Category>
             <SAP:Code area="PARSER">UNEXSPECTED_VALUE</SAP:Code>
             <SAP:P1>Main/@versionMajor</SAP:P1>
             <SAP:P2>000</SAP:P2>
             <SAP:P3>003</SAP:P3>
             <SAP:P4></SAP:P4>
             <SAP:AdditionalText></SAP:AdditionalText>
             <SAP:ApplicationFaultMessage namespace=""></SAP:ApplicationFaultMessage>
             <SAP:Stack>XML tag Main/@versionMajor has the incorrect value 000. Value 003 expected
             </SAP:Stack>
          </SAP:Error>
       </SOAP:faultdetail>
    </SOAP:Fault>
    </SOAP:Body>
    </SOAP:Envelope>
    I made sure the business service in the integration directory is named SOAPRequest and is using SOAP as the communication channel. As the adapter engine I chose the integration server, since it is the only option, although the SOAP adapter framework is installed (according to the SLD) and deactivated any options like header and attachment.
    Upon facing the above response I also tried any kind of derivative with inserting the described tag/attribute/element versionMajor, but to no avail.
    My questions are:
    What do I have to do additionally to get the whole thing running, i.e. configure my external systems in the SLD, providing proxy settings?
    Do I have to create web services within the Web AS (which provide some kind of facade to the XI engine using the proxy generation) and connect to these instead of directly addressing the integration engine (I'm using the URL http://<host>:<port>/sap/xi/engine?type=entry, but I also tried http://<host>:<port>/XISOAPAdapter/MessageServlet?channel=:SOAPRequest:SOAPIn, this led to a 404 not found error)?
    What settings do I have to provide to see the messages the client is sending, when looking into the runtime workbench it seems as if there are no messages at all - at least from my client?
    Hopefully somebody might help me out or least provide some information to get me going.
    Thanks in advance.
    Best regards,
    T.Hrastnik

    Hello Oliver,
    all information I gathered so far derives from the online help for XI 3.0, to be found under http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm. There You'll find - in the last quarter of the navigation bar on the left side - sections describing the adapter engine alonside the SOAP adapter.
    Additionally I went through almost all postings in this forum.
    This alonside the mandatory trial-and-error approach (I did a lot of it up to date) led me to my current status, i.e. so far I haven't found any kind of (simple) tutorial or demo saying "If You want to establish a web service based connection via SOAP between external applications and XI first do this, then that ...", sadly enough :-(.
    Hope that helps, any questions are always welcome, I'll try my best to answer them ;-).
    Best regards,
    Tomaz

  • Heap analysis with a Java based Web Service

    Hello everybody!!
    I have tried some of the JDK's Monitoring and troubleshooting tools (JConsole,,jmap and jhat). I have used them to analyze a .jar application. But I would like to analyze the performance of a web service which is built in Java and it is located on a Tomcat server.
    Is there a way to analyze the heap in this case or any other tools for web services?
    Thank you in advance,
    Anonima.

    java.lang.UnsupportedClassVersionError: Test (Unsupported major.minor version 49.0)
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.access$100(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Exception in thread "main"
    When executing the program an error occurs.how to solve it?

Maybe you are looking for

  • Can I re-download iPod Games that I've purchased?

    I bought all the games that were available when they first came out, transferred them to my iPod (5th Generation) using iTunes for Windows, and everything was peachy. Until I deleted my old Windows XP partition and decided to go with Windows Vista fu

  • Message No.: GLT2201

    Hi I am getting an error while entering Amended Quantities in ARE-1 and ARE-3 documents. *Balancing field "profit centre" in the line item not filled", Message No.: GLT2201 Deipatch qty: 25 Amended Qty: 23 Differencial Qty: 2 Excise duty for differen

  • IPod has different dates than iCal

    I have a problem with how my 4th Gen iPod and Nano sync with iCal. Some - not all - of the appointments get moved around. I have a series of recurring appointments on Thursday in iCal that show up on Wednesday on both iPods. I have synce'ed the iPods

  • Export PDF conversion process

    Where does the conversion take place for Export PDF?  PC or website?  If website are document copies cleanly removed on completion?

  • Possible attack on my network, fire wall is disabled and I can't turn back on!

    I called iPhone customer service because my phones wi-fi is greyed out and they transferred me to a "network specialist" that said my computer's firewall has been disabled via a network attack and it would cost $1200 for him to fix remotely?  I calle